ChangeLog.29 70 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352
  1. 2018-05-01 Werner Lemberg <wl@gnu.org>
  2. * Version 2.9.1 released.
  3. =========================
  4. Tag sources with `VER-2-9-1'.
  5. * docs/VERSION.TXT: Add entry for version 2.9.1.
  6. * docs/CHANGES: Updated.
  7. * README, Jamfile (RefDoc), builds/windows/vc2005/freetype.vcproj,
  8. src/base/ftver.rc, builds/windows/vc2005/index.html,
  9. builds/windows/vc2008/freetype.vcproj,
  10. builds/windows/vc2008/index.html,
  11. builds/windows/vc2010/freetype.vcxproj,
  12. builds/windows/vc2010/index.html,
  13. builds/windows/visualc/freetype.dsp,
  14. builds/windows/visualc/freetype.vcproj,
  15. builds/windows/visualc/index.html,
  16. builds/windows/visualce/freetype.dsp,
  17. builds/windows/visualce/freetype.vcproj,
  18. builds/windows/visualce/index.html,
  19. builds/wince/vc2005-ce/freetype.vcproj,
  20. builds/wince/vc2005-ce/index.html,
  21. builds/wince/vc2008-ce/freetype.vcproj,
  22. builds/wince/vc2008-ce/index.html: s/2.9/2.9.1/, s/29/291/.
  23. * include/freetype/freetype.h (FREETYPE_PATCH): Set to 1.
  24. * builds/unix/configure.raw (version_info): Set to 22:1:16.
  25. * CMakeLists.txt (VERSION_PATCH): Set to 1.
  26. * include/freetype/ftgasp.h: Use FT_BEGIN_HEADER and FT_END_HEADER.
  27. 2018-04-26 Werner Lemberg <wl@gnu.org>
  28. Another fix for handling invalid format 2 cmaps.
  29. Sigh.
  30. Reported as
  31. https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=8003
  32. * src/sfnt/ttcmap.c (tt_cmap2_char_next): Adjust condition to avoid
  33. an endless loop.
  34. 2018-04-24 Ben Wagner <bungeman@google.com>
  35. [base] Avoid undefined behaviour in lcd filtering code (#53727).
  36. * src/base/ftlcdfil.c (ft_lcd_filter_fir, _ft_lcd_filter_legacy):
  37. Ensure `height > 0'.
  38. 2018-04-22 Werner Lemberg <wl@gnu.org>
  39. * src/base/ftoutln.c (FT_Outline_Decompose): Improve error tracing.
  40. 2018-04-22 Alexei Podtelezhnikov <apodtele@gmail.com>
  41. [base] Fix bitmap emboldening.
  42. Bug introduced after release 2.8.
  43. * src/base/ftbitmap.c (ft_bitmap_assure_buffer): We use
  44. `FT_QALLOC_MULT', which doesn't zero out the buffer. Adjust the
  45. bitmap copying code to take care of this fact.
  46. 2018-04-22 Werner Lemberg <wl@gnu.org>
  47. Another fix for handling invalid format 2 cmaps.
  48. The previous commit was incomplete.
  49. Reported as
  50. https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=7928
  51. * src/sfnt/ttcmap.c (tt_cmap2_char_next): Adjust condition to avoid
  52. an endless loop.
  53. 2018-04-19 Werner Lemberg <wl@gnu.org
  54. [autofit] Add support for Georgian Mtavruli characters.
  55. This will be part of the forthcoming Unicode 11.0.
  56. * src/autofit/afblue.dat: Add blue zone data for Mtavruli.
  57. * src/autofit/afblue.c, src/autofit/afblue.h: Regenerated.
  58. * src/autofit/afscript.h: Add Mtavruli standard character.
  59. 2018-04-18 Werner Lemberg <wl@gnu.org>
  60. Fix handling of invalid format 2 cmaps.
  61. The problem was introduced after the last release.
  62. Reported as
  63. https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=7828
  64. * src/sfnt/ttcmap.c (tt_cmap2_char_next): Avoid endless loop.
  65. 2018-04-17 Werner Lemberg <wl@gnu.org>
  66. [truetype] Integer overflow issues.
  67. Reported as
  68. https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=7739
  69. * src/truetype/ttinterp.c (Ins_CEILING): Use FT_PIX_CEIL_LONG.
  70. 2018-04-16 Werner Lemberg <wl@gnu.org>
  71. [truetype] Integer overflow issues.
  72. Reported as
  73. https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=7718
  74. * src/truetype/ttinterp.c (Ins_MIRP): Use ADD_LONG.
  75. 2018-04-15 Alexei Podtelezhnikov <apodtele@gmail.com>
  76. [build] Use `info' function of make 3.81.
  77. * configure, docs/INSTALL, docs/INSTALL.CROSS, docs/INSTALL.GNU,
  78. docs/INSTALL.UNIX, docs/MAKEPP: Bump make version requirements.
  79. * builds/detect.mk (std_setup): Replace `echo' with `info'.
  80. (dos_setup): Removed.
  81. * builds/unix/install.mk, builds/modules.mk, builds/dos/detect.mk,
  82. builds/windows/detect.mk, builds/os2/detect.mk: Updated.
  83. * builds/newline: No longer needed.
  84. 2018-04-15 Werner Lemberg <wl@gnu.org>
  85. [truetype]: Limit `SLOOP' bytecode argument to 16 bits.
  86. This fixes
  87. https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=7707
  88. * src/truetype/ttinterp.c (Ins_SLOOP): Do it.
  89. 2018-04-14 Werner Lemberg <wl@gnu.org>
  90. [truetype] Integer overflow issues.
  91. Reported as
  92. https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=7652
  93. * src/truetype/ttinterp.c (Ins_MDAP): Use SUB_LONG.
  94. 2018-04-14 Werner Lemberg <wl@gnu.org>
  95. [autofit] Update to Unicode 11.0.0.
  96. But no support new scripts (volunteers welcomed).
  97. * src/autofit/afranges.c (af_arab_nonbase_uniranges,
  98. af_beng_nonbase_uniranges, af_cakm_nonbase_uniranges,
  99. af_deva_nonbase_uniranges, af_geor_uniranges,
  100. af_gujr_nonbase_uniranges, af_mlym_nonbase_uniranges,
  101. af_nkoo_nonbase_uniranges, af_telu_nonbase_uniranges,
  102. af_hani_uniranges): Add new data.
  103. 2018-04-10 Nikolaus Waxweiler <madigens@gmail.com>
  104. * CMakeLists.txt, builds/cmake/FindHarfBuzz.cmake: Extensive
  105. modernization measures.
  106. This brings up the minimum required CMake version to 2.8.12.
  107. The installation paths follow the GNU defaults now, e.g. installing on a
  108. 64 bit host will place binaries into the lib64/ folder on e.g. Fedora.
  109. Symbols are hidden by default (e.g. `-fvisibility=hidden' on GCC).
  110. CMake will no longer look for a C++ compiler.
  111. Library and .so version now match the Autotools build.
  112. Comments in the build file and informational messages now use platform
  113. agnostic example commands.
  114. ftoption.h and ftconfig.h are written directly without a redundant `-new'
  115. copy.
  116. External dependencies are expressed as option()s and will turn up as such
  117. in cmake-gui.
  118. Internal: Properties such as dependencies and include directories are now
  119. privately set on the freetype library instead of globally.
  120. The CPack definitions have been cleaned up, the `make dist' has been
  121. removed. Source packages generated with CPack don't contain Autotools
  122. files and aren't used by the maintainers anyway.
  123. On Windows, src/base/ftver.rc is compiled to decorate the library with
  124. version and copyright information.
  125. A pkg-config file is now generated and installed.
  126. 2018-04-09 Werner Lemberg <wl@gnu.org>
  127. [truetype] Integer overflow issues.
  128. Reported as
  129. https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=7453
  130. * src/truetype/ttinterp.c (Round_Super, Round_Super_45): Use
  131. ADD_LONG and SUB_LONG.
  132. 2018-04-06 Alexei Podtelezhnikov <apodtele@gmail.com>
  133. [windows, wince] Clean up legacy project files.
  134. * builds/wince/vc2005-ce/freetype.vcproj,
  135. builds/wince/vc2008-ce/freetype.vcproj,
  136. builds/windows/vc2005/freetype.vcproj,
  137. builds/windows/vc2008/freetype.vcproj,
  138. builds/windows/visualce/freetype.vcproj,
  139. builds/windows/visualce/freetype.dsp,
  140. builds/windows/visualc/freetype.vcproj,
  141. builds/windows/visualc/freetype.dsp: Remove per-file compile flags.
  142. 2018-04-04 Werner Lemberg <wl@gnu.org>
  143. [cff, type1] Sanitize `BlueFuzz' and `BlueShift'.
  144. Reported as
  145. https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=7371
  146. * src/cff/cffload.c (cff_load_private_dict): Sanitize
  147. `priv->blue_shift' and `priv->blue_fuzz' to avoid overflows later
  148. on.
  149. * src/type1/t1load.c (T1_Open_Face): Ditto.
  150. 2018-04-04 Ben Wagner <bungeman@google.com>
  151. * src/truetype/ttobjs.c (trick_names): Add 3 tricky fonts (#53554),
  152. `DFHei-Md-HK-BF', `DFKaiShu-Md-HK-BF' and `DFMing-Bd-HK-BF'.
  153. (tt_check_trickyness_sfnt_ids): Add checksums for 3 tricky fonts
  154. in above.
  155. 2018-04-01 Werner Lemberg <wl@gnu.org>
  156. * builds/toplevel.mk (work): Use $(SEP).
  157. This fixes the `make refdoc' using Cygwin: $(CAT) is `type' on this
  158. platform, and this program only understands backslashes in paths.
  159. Reported by Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>.
  160. 2018-03-30 Werner Lemberg <wl@gnu.org>
  161. [truetype] Fix memory leak (only if tracing is on).
  162. * src/truetype/ttgxvar.c (TT_Get_MM_Var) [FT_DEBUG_LEVEL_TRACE}: Fix
  163. it.
  164. 2018-03-23 Ben Wagner <bungeman@google.com>
  165. [sfnt] Correctly handle missing bitmaps in sbix format (#53404).
  166. * src/sfnt/ttfsbit.c (tt_face_load_sbix_image): Fix return value.
  167. 2018-03-23 Ben Wagner <bungeman@google.com>
  168. [truetype] Fix advance of empty glyphs in bitmap fonts (#53393).
  169. * src/truetype/ttgload.c (TT_Load_Glyph): Apply scaling to metrics
  170. for empty bitmaps.
  171. 2018-03-22 Werner Lemberg <wl@gnu.org>
  172. Remove `ftlcdfil.c' and `ftfntfmt.c' from build files (#53415).
  173. builds/amiga/makefile, builds/amiga/makefile.os4,
  174. builds/amiga/smakefile, builds/mac/FreeType.m68k_cfm.make.txt,
  175. builds/mac/FreeType.m68k_far.make.txt,
  176. builds/mac/FreeType.ppc_carbon.make.txt,
  177. builds/mac/FreeType.ppc_classic.make.txt,
  178. builds/symbian/freetype.mmp, builds/wince/vc2005-ce/freetype.vcproj,
  179. builds/wince/vc2008-ce/freetype.vcproj,
  180. builds/windows/vc2005/freetype.vcproj,
  181. builds/windows/vc2008/freetype.vcproj,
  182. builds/windows/vc2010/freetype.vcxproj,
  183. builds/windows/vc2010/freetype.vcxproj.filters,
  184. builds/windows/visualc/freetype.dsp,
  185. builds/windows/visualc/freetype.vcproj,
  186. builds/windows/visualce/freetype.dsp,
  187. builds/windows/visualce/freetype.vcproj, vms_make.com: Do it.
  188. 2018-03-13 Werner Lemberg <wl@gnu.org>
  189. * src/sfnt/ttcmap.c (tt_cmap2_validate): Fix potential numeric
  190. overflow.
  191. 2018-03-13 Werner Lemberg <wl@gnu.org>
  192. Fix cmap format 2 handling (#53320).
  193. The patch introduced for #52646 was not correct.
  194. * src/sfnt/ttcmap.c (tt_cmap2_char_next): Adjust condition.
  195. 2018-03-10 Nikolaus Waxweiler <madigens@gmail.com>
  196. * CMakeLists.txt (BASE_SRCS): Update to changes from 2018-03-05.
  197. 2018-03-09 Chun-wei Fan <fanc999@yahoo.com.tw>
  198. * CMakeLists.txt [win32]: Allow MSVC DLL builds (#53287).
  199. Do not limit DLL builds to MinGW, since we already have
  200. `__declspec(dllexport)' directives in `ftconfig.h'.
  201. Also suppress more warnings for POSIX functions.
  202. 2018-03-08 Hugh McMaster <hugh.mcmaster@outlook.com>
  203. Make installation of `freetype-config' optional (#53093).
  204. * builds/unix/configure.raw: Add option `--enable-freetype-config'
  205. and set `INSTALL_FT2_CONFIG'.
  206. * builds/unix/unix-def.in (INSTALL_FT2_CONFIG): Define.
  207. * builds/unix/install.mk (install): Handle it.
  208. 2018-03-05 Werner Lemberg <wl@gnu.org>
  209. Make `ftlcdfil.c' part of the `base' module.
  210. `ftobjs.c' needs `ft_lcd_padding'.
  211. Problem reported by duhuanpeng <548708880@qq.com>.
  212. * modules.cfg (BASE_EXTENSIONS): Don't include `ftlcdfil.c'.
  213. * src/base/ftbase.c: Include `ftlcdfil.c'.
  214. * src/base/rules.mk (BASE_SRC): Add `ftlcdfil.c'.
  215. * src/base/Jamfile (_sources): Adjusted.
  216. * docs/INSTALL.ANY: Updated.
  217. 2018-03-05 Werner Lemberg <wl@gnu.org>
  218. Make `ftfntfmt.c' part of the `base' module.
  219. `ftobjs.c' needs `FT_Get_Font_Format'.
  220. Problem reported by duhuanpeng <548708880@qq.com>.
  221. * modules.cfg (BASE_EXTENSIONS): Don't include `ftfntfmt.c'.
  222. * src/base/ftbase.c: Include `ftfntfmt.c'.
  223. * src/base/rules.mk (BASE_SRC): Add `ftfntfmt.c'.
  224. * src/base/Jamfile (_sources): Adjusted.
  225. * docs/INSTALL.ANY: Updated.
  226. 2018-03-01 Werner Lemberg <wl@gnu.org>
  227. * src/truetype/ttinterp.c (TT_RunIns): Fix tracing arguments.
  228. 2018-02-23 Werner Lemberg <wl@gnu.org>
  229. * builds/unix/configure.raw: Need HarfBuzz 1.3.0 or newer.
  230. Problem reported by Alan Coopersmith <alan.coopersmith@oracle.com>.
  231. 2018-02-17 Werner Lemberg <wl@gnu.org>
  232. [sfnt] Prefer `CBDT'/`CBLC' over `glyf' table (#53154).
  233. 2018-02-06 Werner Lemberg <wl@gnu.org>
  234. [truetype] Integer overflow issues.
  235. Reported as
  236. https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=6027
  237. * src/truetype/ttinterp.c (Ins_MSIRP, Ins_MIAP, Ins_MIRP): Use
  238. SUB_LONG; avoid FT_ABS.
  239. 2018-02-04 Alexei Podtelezhnikov <apodtele@gmail.com>
  240. [unix] Use -fvisibility=hidden.
  241. It is now widely recommended that ELF shared libraries hide symbols
  242. except those with explicit __attribute__((visibility("default"))).
  243. This is supported by all major compilers and should rather be an
  244. option in libtool.
  245. * builds/unix/configure.raw: Add -fvisibility=hidden to CFLAGS.
  246. * builds/unix/ftconfig.in, builds/vms/ftconfig.h,
  247. include/freetype/config/ftconfig.h (FT_EXPORT): Use visibility
  248. attribute.
  249. 2018-01-27 Werner Lemberg <wl@gnu.org>
  250. [truetype] Better protection against invalid VF data.
  251. Reported as
  252. https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=5739
  253. Bug introduced in commit 08cd62deedefe217f2ea50e392923ce8b5bc7ac7.
  254. * src/truetype/ttgxvar.c (TT_Set_Var_Design): Always initialize
  255. `normalizedcoords'.
  256. 2018-01-27 Werner Lemberg <wl@gnu.org>
  257. * src/truetype/ttinterp.c (Ins_GETVARIATION): Avoid NULL reference.
  258. Reported as
  259. https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=5736
  260. 2018-01-27 Werner Lemberg <wl@gnu.org>
  261. * src/truetype/ttgxvar.c (tt_set_mm_blend): Minor.
  262. 2018-01-27 Werner Lemberg <wl@gnu.org>
  263. [truetype] Better trace VF instances.
  264. * src/truetype/ttgxvar.c (ft_var_to_normalized): Don't emit number
  265. of coordinates.
  266. (TT_Get_MM_Var): Trace instance indices names.
  267. (TT_Set_Var_Design): Updated.
  268. 2018-01-27 Werner Lemberg <wl@gnu.org>
  269. [truetype] Beautify tracing of VF axis records.
  270. * src/truetype/ttgxvar.c (TT_Get_MM_Var): Show axis records in a
  271. table-like manner.
  272. 2018-01-26 Ben Wagner <bungeman@google.com>
  273. [truetype] Fix multiple calls of `FT_Get_MM_Var' (#52955).
  274. * src/truetype/ttgxvar.c (TT_Get_MM_Var): Set
  275. `face->blend->num_axis' in case we have to initialize the
  276. `face->blend'.
  277. 2018-01-23 Alexei Podtelezhnikov <apodtele@gmail.com>
  278. [apinames] Anonymous version map for GNU linker.
  279. * src/tools/apinames.c (PROGRAM_VERSION): Set to 0.3.
  280. (OutputFormat): Add `OUTPUT_GNU_VERMAP'.
  281. (names_dump): Handle it.
  282. (usage): Updated.
  283. (main): Handle new command line flag `-wL'.
  284. 2018-01-21 Alexei Podtelezhnikov <apodtele@gmail.com>
  285. [unix] Call libtool to clean up.
  286. * builds/unix/install.mk (clean_project_unix, distclean_project_unix):
  287. Use libtool.
  288. * builds/freetype.mk: Minor.
  289. 2018-01-18 Alexei Podtelezhnikov <apodtele@gmail.com>
  290. * src/base/ftver.rc: Fix mingw-w64 compilation.
  291. 2018-01-18 Alexei Podtelezhnikov <apodtele@gmail.com>
  292. [build] Enable VERSIONINFO resource for Cygwin/MinGW.
  293. * builds/unix/configure.raw: Check for resource compiler.
  294. * builds/unix/unix-cc.in: Conditionally set up resource compiler.
  295. * builds/freetype.mk: Add conditional rule for `ftver.rc'.
  296. * src/base/ftver.rc: Copyright notice and year update.
  297. 2018-01-18 Alexei Podtelezhnikov <apodtele@gmail.com>
  298. [build] Move VERSIONINFO resource.
  299. * builds/windows/vc2010/freetype.vcxproj: Updated.
  300. * builds/windows/ftver.rc: Move file from here...
  301. * src/base/ftver.rc: ... to here.
  302. 2018-01-12 Alexei Podtelezhnikov <apodtele@gmail.com>
  303. [build] Expand dllexport/dllimport to Cygwin/MinGW.
  304. * include/freetype/config/ftconfig.h: Respect DLL_EXPORT,
  305. s/_MSC_VER/_WIN32/.
  306. * builds/unix/ftconfig.in: Replicate here.
  307. * builds/vms/ftconfig.h: Replicate here.
  308. 2018-01-12 Alexei Podtelezhnikov <apodtele@gmail.com>
  309. [build] Improve and document MSVC build.
  310. * include/freetype/config/ftconfig.h: Guard dllexport/dllimport
  311. attributes with _DLL and FT2_DLLIMPORT.
  312. * builds/windows/vc2010/index.html: Update documentation.
  313. 2018-01-10 Steve Robinson <ssrobins@gmail.com>
  314. * CMakeLists.txt [win32]: Suppress warnings for POSIX functions.
  315. 2018-01-10 Ewald Hew <ewaldhew@gmail.com>
  316. [psaux] Correctly handle Flex features (#52846).
  317. * src/psaux/psintrp.c (cf2_interpT2CharString) <cf2_cmdVMOVETO,
  318. cf2_cmdHMOVETO>: Do not move if doing Flex.
  319. 2018-01-09 Alexei Podtelezhnikov <apodtele@gmail.com>
  320. * builds/windows/vc2010/freetype.sln: Synchronize with the project.
  321. 2018-01-08 Werner Lemberg <wl@gnu.org>
  322. * Version 2.9 released.
  323. =======================
  324. Tag sources with `VER-2-9'.
  325. * docs/VERSION.TXT: Add entry for version 2.9.
  326. * README, Jamfile (RefDoc), builds/windows/vc2005/freetype.vcproj,
  327. builds/windows/vc2005/index.html,
  328. builds/windows/vc2008/freetype.vcproj,
  329. builds/windows/vc2008/index.html,
  330. builds/windows/vc2010/freetype.vcxproj,
  331. builds/windows/vc2010/index.html,
  332. builds/windows/visualc/freetype.dsp,
  333. builds/windows/visualc/freetype.vcproj,
  334. builds/windows/visualc/index.html,
  335. builds/windows/visualce/freetype.dsp,
  336. builds/windows/visualce/freetype.vcproj,
  337. builds/windows/visualce/index.html,
  338. builds/windows/ftver.rc,
  339. builds/wince/vc2005-ce/freetype.vcproj,
  340. builds/wince/vc2005-ce/index.html,
  341. builds/wince/vc2008-ce/freetype.vcproj,
  342. builds/wince/vc2008-ce/index.html: s/2.8.1/2.9/, s/281/29/.
  343. * include/freetype/freetype.h (FREETYPE_MINOR): Set to 9.
  344. (FREETYPE_PATCH): Set to 0.
  345. * builds/unix/configure.raw (version_info): Set to 22:0:16.
  346. * CMakeLists.txt (VERSION_PATCH): Set to 0.
  347. 2018-01-07 Werner Lemberg <wl@gnu.org>
  348. Add check for librt, needed for `ftbench' (#52824).
  349. * builds/unix/configure.raw (LIB_CLOCK_GETTIME): Define; this will
  350. hold `-lrt' if necessary.
  351. * builds/unix/unix-cc.in (LIB_CLOCK_GETTIME): New variable.
  352. 2018-01-07 Ewald Hew <ewaldhew@gmail.com>
  353. [psaux] Fix Type 1 glyphs with too many stem hints.
  354. According to the CFF specification, charstrings can have up to 96 stem
  355. hints. Due to hint replacement routines in Type 1 charstrings, some
  356. glyphs are rejected by the Adobe engine, which implements the above
  357. limit. This fix turns off hinting for such glyphs.
  358. * src/psaux/pshints.c (cf2_hintmap_build): Reset the error from calling
  359. `cf2_hintmask_setAll' on a problematic Type 1 charstring and turn off
  360. hinting.
  361. 2018-01-06 Werner Lemberg <wl@gnu.org>
  362. Add `FT_Done_MM_Var'.
  363. This is necessary in case the application's memory routines differ
  364. from FreeType. A typical example is a Python application on Windows
  365. that calls FreeType compiled as a DLL via the `ctypes' interface.
  366. * include/freetype/ftmm.h, src/base/ftmm.c (FT_Done_MM_Var): Declare
  367. and define.
  368. * docs/CHANGES: Updated.
  369. 2018-01-03 Werner Lemberg <wl@gnu.org>
  370. [truetype] Round offsets of glyph components only if hinting is on.
  371. * src/truetype/ttgload.c (TT_Process_Composite_Component): Implement
  372. it.
  373. 2018-01-03 Werner Lemberg <wl@gnu.org>
  374. * src/truetype/ttgxvar.c (ft_var_to_design): Remove dead code.
  375. This is a better fix than the previous commit, which is now
  376. reverted.
  377. 2018-01-03 Alexei Podtelezhnikov <apodtele@gmail.com>
  378. Move internal LCD-related declarations.
  379. * include/freetype/ftlcdfil.h (ft_lcd_padding, ft_lcd_filter_fir):
  380. Move from here...
  381. * include/freetype/internal/ftobjs.h: ... to here.
  382. 2018-01-03 Alexei Podtelezhnikov <apodtele@gmail.com>
  383. * include/freetype/config/ftconfig.h (FT_EXPORT, FT_EXPORT_DEF)
  384. [_MSC_VER]: Limit Visual C++ attributes.
  385. 2018-01-03 Werner Lemberg <wl@gnu.org>
  386. [truetype] Make blend/design coordinate round-tripping work.
  387. Behdad reported that setting blend coordinates, then getting design
  388. coordinates did incorrectly return the default instance's
  389. coordinates.
  390. * src/truetype/ttgxvar.c (tt_set_mm_blend): Fix it.
  391. 2017-12-31 Werner Lemberg <wl@gnu.org>
  392. * src/sfnt/ttcmap.c (tt_cmap2_char_next): Fix endless loop.
  393. Reported as
  394. https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=4838
  395. 2017-12-31 Werner Lemberg <wl@gnu.org>
  396. Synchronize other Windows project files.
  397. * builds/windows/*: Add missing files.
  398. 2017-12-31 Werner Lemberg <wl@gnu.org>
  399. Update Visual C 2010 project files.
  400. Problem reported by Hin-Tak.
  401. * builds/windows/vc2010/freetype.vcxproj: Add files `ftbdf.c' and
  402. `ftcid.c'.
  403. Sort entries.
  404. * builds/windows/vc2010/freetype.vcxproj.filter: Ditto.
  405. Fix members of `FT_MODULE' group.
  406. 2017-12-30 Werner Lemberg <wl@gnu.org>
  407. * builds/vms/ftconfig.h: Synchronize with unix `ftconfig.in' file.
  408. 2017-12-28 Werner Lemberg <wl@gnu.org>
  409. * builds/unix/ftconfig.in: Synchronize with main `ftconfig.h' file.
  410. Reported by Nikolaus.
  411. 2017-12-27 Werner Lemberg <wl@gnu.org>
  412. Fix compiler warnings.
  413. * src/base/ftbitmap.c (ft_bitmap_assure_buffer): Make `pitch' and
  414. `new_pitch' unsigned.
  415. * src/base/ftpsprop.c: Include FT_INTERNAL_POSTSCRIPT_PROPS_H.
  416. 2017-12-27 Werner Lemberg <wl@gnu.org>
  417. Fixes for `make multi'.
  418. * include/freetype/internal/ftpsprop.h: Use `FT_BASE_CALLBACK'.
  419. (ps_property_get): Harmonize declaration with corresponding
  420. function typedef.
  421. * include/freety[e/internal/fttrace.h: Add `trace_psprops'.
  422. * src/base/ftpsprop.c: Include necessary header files.
  423. (FT_COMPONENT): Define.
  424. (ps_property_set): Tag with `FT_BASE_CALLBACK_DEF'.
  425. (ps_property_get): Tag with `FT_BASE_CALLBACK_DEF'.
  426. Harmonize declaration with corresponding function typedef.
  427. 2017-12-27 Werner Lemberg <wl@gnu.org>
  428. Provide support for intra-module callback functions.
  429. This is needed especially for `make multi' with C++.
  430. * include/freetype/config/ftconfig.h (FT_BASE_CALLBACK,
  431. FT_BASE_CALLBACK_DEF): New macros.
  432. 2017-12-25 Ewald Hew <ewaldhew@gmail.com>
  433. Move PostScript drivers' property handlers to `base'.
  434. This reduces the amount of duplicated code across PostScript
  435. drivers.
  436. * src/cff/cffdrivr.c, src/cid/cidriver.c, src/type1/t1driver.c
  437. ({cff,cid,t1}_property_{get,set}): Moved to...
  438. * include/freetype/internal/ftpsprop.h: ...this new file.
  439. (ps_property_{get,set}): New functions to replace moved ones.
  440. * src/base/ftpsprop.c: New file that implements above functions.
  441. * include/freetype/internal/internal.h
  442. (FT_INTERNAL_POSTSCRIPT_PROPS_H): New macro.
  443. * src/cff/cffdrivr.c, src/cid/cidriver.c, src/type1/t1driver.c:
  444. Updated.
  445. * src/base/Jamfile, src/base/rules.mk (BASE_SRC), src/base/ftbase.c:
  446. Updated.
  447. 2017-12-20 Werner Lemberg <wl@gnu.org>
  448. Speed up FT_Set_Var_{Design,Blend}_Coordinates if curr == new.
  449. We exit early if the current design or blend coordinates are
  450. identical to the new ones.
  451. * src/truetype/ttgxvar.c (tt_set_mm_blend, TT_Set_Var_Design):
  452. Implement it, returning internal error code -1 if there will be no
  453. variation change.
  454. * src/type1/t1load.c (t1_set_mm_blend): Ditto.
  455. * src/base/ftmm.c (FT_Set_Var_Design_Coordinates,
  456. FT_Set_MM_Blend_Coordinates, FT_Set_Var_Blend_Coordinates): Updated.
  457. 2017-12-18 Werner Lemberg <wl@gnu.org>
  458. [sfnt] Fix charmap type 2 iterator (#52646).
  459. The subsetted demo font of the report that exhibits the bug has a
  460. very unusual type 2 cmap for Unicode(!): It contains only two
  461. sub-headers, one for one-byte characters (covering the range 0x20 to
  462. 0xFA), and a second one for higher byte 0x01 (just for character
  463. code U+0131).
  464. Before this commit, the iterator wasn't able to correctly handle a
  465. sub-header for higher byte 0x01.
  466. * src/sfnt/ttcmap.c (tt_cmap2_char_next): Fix character increment
  467. for outer loop.
  468. 2017-12-18 Matthias Clasen <matthias.clasen@gmail.com>
  469. [truetype] Fix clamping, minor tracing code beautification.
  470. * src/truetype/ttgxvar.c (ft_var_to_normalized): Trace number of
  471. design coordinates.
  472. Use clamped value.
  473. 2017-12-18 Werner Lemberg <wl@gnu.org>
  474. * src/*/*: Only use `ft_' and `FT_' variants of stdc library stuff.
  475. 2017-12-18 Werner Lemberg <wl@gnu.org>
  476. * src/truetype/ttgxvar.c (tt_face_vary_cvt): Add size guard (#52688).
  477. 2017-12-18 Werner Lemberg <wl@gnu.org>
  478. [truetype] Fix previous commit.
  479. * src/truetype/ttgload.c (TT_Process_Simple_Glyph): Correctly handle
  480. unhinted phantom points, which must be properly scaled.
  481. 2017-12-18 Werner Lemberg <wl@gnu.org>
  482. [truetype] Don't apply HVAR and VVAR deltas twice (#52683).
  483. * src/truetype/ttgload.c (TT_Process_Simple_Glyph): Always adjust
  484. `pp1' to `pp4', except if we have an HVAR and/or VVAR table.
  485. * src/truetype/ttgxvar.c (TT_Vary_Apply_Glyph_Deltas): Handle
  486. alternative code branch identically w.r.t. presence of an HVAR
  487. and/or VVAR table.
  488. 2017-12-17 Jonathan Kew <jfkthame@gmail.com>
  489. [truetype] Correctly handle variation font phantom points (#52683).
  490. * src/truetype/ttgxvar.c (TT_Vary_Apply_Glyph_Deltas): Fix phantom
  491. point indices.
  492. 2017-12-17 Jonathan Kew <jfkthame@gmail.com>
  493. Fix incorrect advance width scaling (#52683).
  494. * src/base/ftadvance.c (FT_Get_Advances): Always respect the
  495. FT_LOAD_NO_SCALE flag if present.
  496. 2017-12-16 Alexei Podtelezhnikov <apodtele@gmail.com>
  497. * builds/windows/vc2010/freetype.vcxproj: AfterBuild copy.
  498. * objs/.gitignore: Ignore almost everything.
  499. 2017-12-11 Werner Lemberg <wl@gnu.org>
  500. Fix compiler warning (#52640).
  501. * src/base/ftbitmap.c (ft_bitmap_assure_buffer): Remove unused
  502. variable.
  503. 2017-12-08 Azzuro <azzuro@team-mediaportal.com>
  504. * builds/windows/vc2010/freetype.vcxproj: Adjust output directory.
  505. This allows builds with different configurations in parallel.
  506. 2017-12-08 Werner Lemberg <wl@gnu.org>
  507. Fix `make setup dos', second try (#52622).
  508. * builds/detect.mk (dos_setup): Don't use literal `>' character at
  509. all. Mixing the different escaping rules from make, dos, and
  510. windows is too fragile.
  511. 2017-12-08 Werner Lemberg <wl@gnu.org>
  512. [docmaker] Fix code section parsing.
  513. Stuff like
  514. {
  515. <bla>
  516. }
  517. confused the parser, which incorrectly treated `<bla>' as a markup
  518. tag.
  519. * src/tools/docmaker/content.py (ContentProcessor::process_content):
  520. Apply `re_markup_tags' only outside of code sections.
  521. 2017-12-08 Werner Lemberg <wl@gnu.org>
  522. New `ftdriver.h' file, covering all driver modules.
  523. This reduces redundancy and increases synergy; it also reduces the
  524. number of header files.
  525. * include/freetype/config/ftheader.h (FT_DRIVER_H): New macro.
  526. (FT_AUTOHINTER_H, FT_CFF_DRIVER_H, FT_TRUETYPE_DRIVER_H,
  527. FT_PCF_DRIVER_H, FT_TYPE1_DRIVER_H): Make them aliases to
  528. FT_DRIVER_H.
  529. * include/freetype/ftautoh.h, include/freetype/ftcffdrv.h,
  530. include/freetype/ftpcfdrv.h, include/freetype/ftt1drv.h,
  531. include/freetype/ftttdrv.h: Replaced with...
  532. * include/freetype/ftdriver.h: ...this new file.
  533. (FT_CFF_HINTING_ADOBE, FT_T1_HINTING_ADOBE): Renamed to...
  534. (FT_HINTING_ADOBE): ... this new macro.
  535. (FT_CFF_HINTING_FREETYPE, FT_T1_HINTING_FREETYPE): Renamed to...
  536. (FT_HINTING_FREETYPE): ... this new macro.
  537. * src/*/*: Updated accordingly.
  538. 2017-12-08 Werner Lemberg <wl@gnu.org>
  539. Move `ftdriver.h' to `ftdrv.h'.
  540. * include/freetype/internal/ftdriver.h: Renamed to...
  541. * include/freetype/internal/ftdrv.h: ... this name.
  542. * include/freetype/internal/internal.h (FT_INTERNAL_DRIVER_H):
  543. Updated.
  544. 2017-12-08 Werner Lemberg <wl@gnu.org>
  545. Fix access to uninitalized memory (#52613).
  546. Also reported as
  547. https://bugs.chromium.org/p/chromium/issues/detail?id=791317
  548. * src/base/ftbitmap.c (ft_bitmap_assure_buffer): If increasing the
  549. bitmap size needs a larger bitmap buffer, assure that the new memory
  550. areas are initialized also.
  551. 2017-12-08 Werner Lemberg <wl@gnu.org>
  552. Fix `make setup dos' (#52622).
  553. * builds/detect.mk (dos_setup): Properly escape literal `>'
  554. character.
  555. 2017-12-07 Werner Lemberg <wl@gnu.org>
  556. Fix C++ compilation.
  557. * src/psaux/psauxmod.h: Use FT_CALLBACK_TABLE macro where necessary.
  558. * src/smooth/ftsmooth.c (ft_smooth_render_generic): Fix warning.
  559. 2017-12-07 Werner Lemberg <wl@gnu.org>
  560. Fix `make multi'.
  561. * include/freetype/internal/fttrace.h: Remove unused tracing macros.
  562. s/pshalgo2/pshalgo/.
  563. Add `trace_cffdecode'.
  564. * src/pshinter/pshalgo.c (FT_COMPONENT): Updated.
  565. * src/cff/cffload.c: Include FT_INTERNAL_POSTSCRIPT_AUX_H.
  566. * src/cff/cffobjs.c: Include FT_SERVICE_METRICS_VARIATIONS_H and
  567. FT_SERVICE_CFF_TABLE_LOAD_H.
  568. * src/cid/cidriver.c: Include FT_INTERNAL_POSTSCRIPT_AUX_H.
  569. * src/psaux/cffdecode.c: Include FT_FREETYPE_H and
  570. FT_INTERNAL_DEBUG_H.
  571. (FT_COMPONENT): Define.
  572. * src/psaux/cffdecode.h: Include FT_INTERNAL_POSTSCRIPT_AUX_H.
  573. * src/psaux/psauxmod.h: Include FT_INTERNAL_POSTSCRIPT_AUX_H.
  574. Declare `cff_builder_funcs' and `ps_builder_funcs'.
  575. * src/psaux/psft.c: Include `psobjs.h' and `cffdecode.h'.
  576. * src/psaux/psobjs.c : Include `psauxmod.h'.
  577. 2017-12-07 Werner Lemberg <wl@gnu.org>
  578. * include/freetype/config/ftheader.h: Some clean-up.
  579. This commit removes documentation of deprecated macros and does some
  580. minor streamlining.
  581. 2017-12-06 Werner Lemberg <wl@gnu.org>
  582. * builds/symbian/bld.inf: Updated.
  583. 2017-12-06 Werner Lemberg <wl@gnu.org>
  584. New header file `ftparams.h' that collects all parameter tags.
  585. * include/freetype/config/ftheader.h (FT_PARAMETER_TAGS_H): New
  586. macro.
  587. (FT_TRUETYPE_UNPATENTED_H, FT_UNPATENTED_HINTING_H): Define it to
  588. `ftparams.h'.
  589. * include/freetype/ftautoh.h, include/freetype/ftcffdrv.h,
  590. include/freetype/ftincrem.h, include/freetype/ftlcdfil.h,
  591. include/freetype/ftsnames.h, include/freetype/ftt1drv.h: Include
  592. FT_PARAMETER_TAGS_H.
  593. Move FT_PARAM_TAG_XXX definitions to...
  594. * include/freetype/ftparams.h: ...this new file.
  595. * include/freetype/ttunpat.h: Remove. No longer needed.
  596. 2017-12-05 Werner Lemberg <wl@gnu.org>
  597. Improve tracing messages by using singular and plural forms.
  598. * src/*/*.c: Implement it.
  599. 2017-12-04 Werner Lemberg <wl@gnu.org>
  600. [truetype] Allow shared points in `cvar' table (#52532).
  601. * src/truetype/ttgxvar.c (tt_face_vary_cvt): Implement it by copying
  602. and adjusting the corresponding code from
  603. `TT_Vary_Apply_Glyph_Deltas'.
  604. 2017-11-28 Werner Lemberg <wl@gnu.org>
  605. [truetype] Improving tracing of composite glyphs.
  606. * src/truetype/ttgload.c (TT_Load_Composite_Glyph)
  607. [FT_DEBUG_LEVEL_TRACE]: Show composite glyph information.
  608. 2017-11-27 Werner Lemberg <wl@gnu.org>
  609. [type1] Allow (again) `/Encoding' with >256 elements (#52464).
  610. In version 2.6.1, this has been disallowed to better reject
  611. malformed fonts; however, this restriction was too strong. This
  612. time, we only take the first 256 elements into account, since
  613. encoding arrays are always accessed with a 8bit integer, according
  614. to the PostScript Language Reference.
  615. * src/type1/t1load.c (parse_encoding): Implement it.
  616. 2017-11-27 Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
  617. Fix last commit (#52522).
  618. * builds/freetype.mk: Set `FT_OPTION_H' and `FTOPTION_FLAG'
  619. properly if we have `ftoption.h' in `BUILD_DIR'.
  620. 2017-11-24 Werner Lemberg <wl@gnu.org>
  621. [unix] Install a massaged `ftoption.h' file (#51780).
  622. * builds/unix/configure.raw (ftoption_set, ftoption_unset): New
  623. auxiliary functions to construct...
  624. (FTOPTION_H_SED): ... this new variable.
  625. Apply it as a sed argument while copying `ftoption.h' to the
  626. `builds/unix' directory (using `AC_CONFIG_FILES').
  627. Simplify code of test that checks cpp's computation of bit length
  628. (the test previously created an empty `ftoption.h' file and deleted
  629. it immediately afterwards); without this change, it can happen on my
  630. GNU/Linux box that `configure's execution of `config.status' doesn't
  631. create `ftoption.h' (no idea why this happens).
  632. * builds/unix/install.mk (install): Install
  633. `builds/unix/ftoption.h'.
  634. * builds/unix/unix-def.in (DISTCLEAN): Updated.
  635. * builds/unix/.gitignore: Updated.
  636. 2017-11-23 Tor Andersson <tor.andersson@artifex.com>
  637. Silence unused function warnings (#52465).
  638. Some static function declarations cause unused function warnings if
  639. certain config options are turned off via `ftoption.h'.
  640. * src/base/ftbase.h, src/base/ftrfork.c, src/sfnt/ttbdf.h,
  641. src/truetype/ttgxvar.h: Add #ifdef guards around these sections.
  642. 2017-11-22 Ewald Hew <ewaldhew@gmail.com>
  643. * src/psaux/psft.c (cf2_setGlyphWidth): Check format before setting.
  644. Reported as
  645. https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=4377
  646. 2017-11-22 Ewald Hew <ewaldhew@gmail.com>
  647. [psaux] Fix CFF advance widths. (#52466)
  648. Glyph advance widths were being written to the new `PS_Decoder' but not
  649. saved to the underlying format specific decoder. This caused pure CFF
  650. fonts to have bad advance width.
  651. * include/freetype/internal/psaux.h (PS_Decoder): Change `glyph_width'
  652. field to pointer.
  653. Remove unused fields.
  654. * src/psaux/psobjs.c (ps_decoder_init): Change `glyph_width' from copy
  655. to reference.
  656. Remove unused.
  657. * src/psaux/psft.c (cf2_setGlyphWidth): Update code.
  658. 2017-11-15 Vlad Tsyrklevich <vtsyrklevich@google.com>
  659. * include/freetype/ftrender.h: Fix `FT_Renderer_RenderFunc' type.
  660. 2017-11-14 Nikolaus Waxweiler <madigens@gmail.com>
  661. Use Adobe hinting engine for `light' hinting of both CFF and Type 1.
  662. Since Ewald Hew factored the Adobe hinting engine out of the CFF
  663. driver code, we can now use it on Type 1 (and CID) font formats, as
  664. both have the same hinting philosophy.
  665. This change activates the Adobe hinter when in LIGHT mode, and
  666. therefore always unless explicitly asking for the auto-hinter. This
  667. makes LIGHT behavior consistent with CFF fonts. As of this commit,
  668. the hinting engine table looks as follows.
  669. LIGHT NORMAL
  670. -------------------------
  671. TrueType Auto v40
  672. CFF Adobe Adobe
  673. Type 1 Adobe Adobe
  674. 2017-11-10 Yuri Levchenko <yuri_levchenko@boolat.com>
  675. * CMakeLists.txt: Add `DISABLE_FORCE_DEBUG_PREFIX' option.
  676. 2017-11-06 Alexei Podtelezhnikov <apodtele@gmail.com>
  677. * src/base/ftobjs.c (FT_Load_Glyph): Relocate condition.
  678. 2017-11-06 Alexei Podtelezhnikov <apodtele@gmail.com>
  679. * src/smooth/ftgrays.c (gray_set_cell): Fix uninitialized variables.
  680. 2017-11-03 Ewald Hew <ewaldhew@gmail.com>
  681. [psaux] Fix PostScript interpreter rewinding in Type 1 mode. (#52251)
  682. The interpreter in Type 1 mode rewinds the charstring after collecting
  683. all hints for building the initial hintmap (commit d52dd7f). However,
  684. some charstrings use `endchar' in a final subroutine call, rewinding to
  685. the start of that subroutine, and only a small section of the actual
  686. glyph is drawn.
  687. * src/psaux/psintrp.c (cf2_interpT2CharString) <cf2_cmdENDCHAR>:
  688. Ensure we are on the top level charstring before rewinding.
  689. 2017-11-03 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  690. [truetype] Add more tricky fonts.
  691. See the report by Yang Yinsen.
  692. https://lists.gnu.org/archive/html/freetype-devel/2017-11/msg00000.html
  693. * src/truetype/ttobjs.c (trick_names): Add `DFGothic-EB',
  694. `DFGyoSho-Lt', `DFHSGothic-W5', `DFHSMincho-W3' and `DFHSMincho-W7'.
  695. (tt_check_trickyness_sfnt_ids): Add checksums for DFGothic-EB,
  696. DFGyoSho-Lt, DFHSGothic-W5, DFHSMincho-W3 and DFHSMincho-W7. Also
  697. add checksums for DLCLiShu and DLCHayBold which their family names
  698. were already listed but their checksums were previously unknown.
  699. 2017-11-01 Alexei Podtelezhnikov <apodtele@gmail.com>
  700. [smooth] Fix complex rendering at high ppem.
  701. We used to split large glyphs into horizontal bands and continue
  702. bisecting them still horizontally if that was not enough. This is
  703. guaranteed to fail when a single scanline cannot fit into the
  704. rendering memory pool. Now we bisect the bands vertically so that
  705. the smallest unit is a column of the band height, which is guranteed
  706. to fit into memory.
  707. * src/smooth/ftgrays.c (gray_convert_glyph): Implement it.
  708. 2017-10-20 Alexei Podtelezhnikov <apodtele@gmail.com>
  709. [smooth] Improve complex rendering at high ppem.
  710. At large sizes almost but not exactly horizontal segments can quickly
  711. drain the rendering pool. This patch at least avoids filling the pool
  712. with trivial cells. Beyond this, we can only increase the pool size.
  713. Reported, analyzed, and tested by Colin Fahey.
  714. * src/smooth/ftgrays.c (gray_set_cell): Do not record trivial cells.
  715. 2017-10-20 Alexei Podtelezhnikov <apodtele@gmail.com>
  716. [base] Improve tracing in FT_Load_Glyph, FT_*_Size.
  717. * src/base/ftobjs.c (FT_Load_Glyph): Tag tracing messages with
  718. function name, glyph index, and load flags.
  719. (FT_Select_Metrics, FT_Request_Metrics): Remove all tracing.
  720. (FT_Select_Size, FT_Request_Size): Improve tracing.
  721. 2017-10-18 Alexei Podtelezhnikov <apodtele@gmail.com>
  722. [base] Improve tracing in FT_Render_Glyph.
  723. * src/base/ftobjs.c (FT_Render_Glyph_Internal): Add total coverage
  724. calculations and downgrade Netpbm dump to bitmap:7.
  725. 2017-10-15 Ewald Hew <ewaldhew@gmail.com>
  726. [cff] Fix segfault on missing `psaux' (#52218)
  727. * src/cff/cffload.c (cff_done_blend): Add a check for possible nullptr.
  728. * modules.cfg: Update dependency list.
  729. 2017-10-15 Alexei Podtelezhnikov <apodtele@gmail.com>
  730. [base, cff] Fix MSVC warnings.
  731. * src/base/ftobjs.c (FT_New_Library): C4702: unreachable code.
  732. (ft_glyphslot_preset_bitmap): C4244: possible loss of data.
  733. * src/cff/cffload.c (cff_blend_doBlend): C4244: possible loss of data.
  734. Turn `sum' into unsigned.
  735. 2017-10-14 Alexei Podtelezhnikov <apodtele@gmail.com>
  736. [base] Netpbm image tracing.
  737. * src/base/ftobjs.c (FT_Load_Glyph): Trace bitmap size.
  738. (FT_Render_Glyph_Internal): Trace bitmap in Netpbm format.
  739. * src/smooth/ftgrays.c (gray_sweep): Sweep remnants of span tracing.
  740. 2017-10-14 Alexei Podtelezhnikov <apodtele@gmail.com>
  741. * builds/windows/ftdebug.c (FT_Message): Print to stderr.
  742. * builds/wince/ftdebug.c (FT_Message): Ditto.
  743. 2017-10-14 Behdad Esfahbod <behdad@behdad.org>
  744. [afshaper] Delay creating `hb_set' objects until needed.
  745. In runs on Noto Naskh Arabic, this results in 89 sets created
  746. instead of 340 before. Makes auto-hinter setup with HarfBuzz
  747. enabled 20% to 30% faster.
  748. * src/autofit/afshaper.c (af_shaper_get_coverage): Implement it.
  749. 2017-10-12 Ewald Hew <ewaldhew@gmail.com>
  750. [type1, cid] Add hinting engine switch.
  751. Implement property service in `type1' and `cid' drivers to allow
  752. switching between FreeType or Adobe hinting engine when both are
  753. available.
  754. * src/cid/cidriver.c (cid_property_{set,get}, cid_services),
  755. src/type1/t1driver.c (t1_property_{set,get}, t1_services): Add
  756. Properties service.
  757. * src/cid/cidobjs.c (cid_driver_init), src/type1/t1objs.c
  758. (T1_Driver_Init): Add default property values.
  759. 2017-10-12 Ewald Hew <ewaldhew@gmail.com>
  760. Add T1_CONFIG_OPTION_OLD_ENGINE configuration option.
  761. This controls whether the old Type 1 engine gets compiled into FreeType.
  762. It is disabled by default.
  763. * devel/ftoption.h, include/freetype/config/ftoption.h
  764. (T1_CONFIG_OPTION_OLD_ENGINE): New macro.
  765. * include/freetype/internal/psaux.h (PS_Decoder): Remove unused field.
  766. * include/freetype/internal/psaux.h, src/cid/cidgload.c
  767. (cid_load_glyph), src/psaux/psauxmod.c, src/psaux/psobjs.c
  768. (ps_builder_add_point), src/psaux/t1decode.c
  769. (t1_lookup_glyph_by_stdcharcode, t1_decoder_parse_glyph,
  770. t1operator_seac, t1_decoder_parse_charstrings), src/psaux/t1decode.h,
  771. src/type1/t1gload.c (T1_Parse_Glyph_And_Get_Char_String): Surround
  772. relevant code with macro.
  773. Minor code changes.
  774. 2017-10-12 Ewald Hew <ewaldhew@gmail.com>
  775. Extract width parsing from Type 1 parser.
  776. Duplicate the fast advance width calculations from the old parser.
  777. This is to facilitate adding options for compiling out the old parser.
  778. * src/psaux/t1decode.{c,h} (t1_decoder_parse_metrics): New function.
  779. * include/freetype/internal/psaux.h (T1_Decoder_Funcs): New entry
  780. `parse_metrics'.
  781. * src/psaux/psauxmod.c: Set the new entry.
  782. * src/type1/t1gload.c (T1_Parse_Glyph_And_Get_Char_String),
  783. src/cid/cidgload.c (cid_load_glyph): Separate
  784. conditional for selecting engine.
  785. 2017-10-09 Werner Lemberg <wl@gnu.org>
  786. * src/base/ftoutln.c (FT_Outline_Translate): Fix integer overflow.
  787. Reported as
  788. https://bugs.chromium.org/p/chromium/issues/detail?id=772775
  789. 2017-10-08 Werner Lemberg <wl@gnu.org>
  790. * src/base/ftobjs.c (ft_glyphslot_preset_bitmap): Integer overflows.
  791. Reported as
  792. https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3579
  793. 2017-10-07 Werner Lemberg <wl@gnu.org>
  794. [sfnt] Adjust behaviour of PS font names for variation fonts.
  795. * src/sfnt/sfdriver.c (sfnt_get_var_ps_name): Use a named instance's
  796. PS name only if no variation is applied.
  797. 2017-10-07 Werner Lemberg <wl@gnu.org>
  798. [cff, truetype] Adjust behaviour of named instances.
  799. This commit completely separates the interaction between named
  800. instances and variation functions. In particular, resetting the
  801. variation returns to the current named instance (if set) and not to
  802. the base font.
  803. As a side effect, variation functions no longer change the named
  804. instance index.
  805. * src/cff/cffobjs.c (cff_face_init): Use MM service's `set_instance'
  806. function.
  807. Also apply `MVAR' table to named instances.
  808. * src/truetype/ttgxvar.c (TT_Get_MM_Var): Add cast.
  809. (tt_set_mm_blend): No longer check whether requested variation
  810. coincides with a named instance.
  811. (TT_Set_Var_Design): Use current named instance for default
  812. coordinates.
  813. * src/truetype/ttobjs.c (tt_face_init): Use `TT_Set_Named_Instance'.
  814. 2017-10-07 Werner Lemberg <wl@gnu.org>
  815. Make `FT_Set_Named_Instance' work.
  816. * src/cff/cffdrivr.c (cff_set_instance): New function.
  817. (cff_service_multi_masters): Register it.
  818. * src/truetype/ttgxvar.c (TT_Set_Named_Instance): New function.
  819. * src/truetype/ttgxvar.h: Updated.
  820. * src/truetype/ttdriver.c (tt_service_gx_multi_masters): Register
  821. it.
  822. * src/type1/t1load.c (T1_Reset_MM_Blend): New function.
  823. * src/type1/t1load.h: Updated.
  824. * src/type1/t1driver.c (t1_service_multi_masters): Register it.
  825. 2017-10-07 Werner Lemberg <wl@gnu.org>
  826. Make `FT_FACE_FLAG_VARIATION' work.
  827. * include/freetype/internal/tttypes.h (TT_Face): Remove
  828. `is_default_instance'; this can be replaced with a combination of
  829. `FT_IS_VARIATION' and `FT_IS_INSTANCE'.
  830. * src/cff/cffdrivr.c (cff_get_advances): Updated.
  831. * src/sfnt/sfdriver.c (sfnt_get_ps_name), src/sfnt/sfobjs.c
  832. (sfnt_init_face): Updated.
  833. * src/truetype/ttdriver.c (tt_get_advances), src/truetype/ttgload.c
  834. (TT_Process_Simple_Glyph, load_truetype_glyph, IS_DEFAULT_INSTANCE),
  835. src/truetype/ttgxvar.c (tt_set_mm_blend): Updated.
  836. * src/truetype/ttgxvar.c (TT_Set_MM_Blend, TT_Set_Var_Design):
  837. Handle `FT_FACE_FLAG_VARIATION'.
  838. * src/type1/t1load.c (T1_Set_MM_Blend, T1_Set_MM_Design): Handle
  839. `FT_FACE_FLAG_VARIATION'.
  840. 2017-10-07 Werner Lemberg <wl@gnu.org>
  841. New function `FT_Set_Named_Instance'.
  842. No effect yet.
  843. * src/base/ftmm.c (FT_Set_Named_Instance): New function.
  844. * include/freetype/ftmm.h: Updated.
  845. 2017-10-07 Werner Lemberg <wl@gnu.org>
  846. Add macros for checking whether a font variation is active.
  847. * include/freetype/freetype.h (FT_FACE_FLAG_VARIATION,
  848. FT_IS_VARIATION): New macros.
  849. No effect yet.
  850. 2017-10-07 Werner Lemberg <wl@gnu.org>
  851. Add framework for setting named instance in MM service.
  852. * include/freetype/internal/services/svmm.h (FT_Set_Instance_Func):
  853. New function typedef.
  854. (MultiMasters): Add `set_instance' member.
  855. (FT_DEFINE_SERVICE_MULTIMASTERSREC): Updated.
  856. * src/cff/cffdrivr.c (cff_service_multi_masters),
  857. src/truetype/ttdriver (tt_service_gx_multi_masters),
  858. src/type1/t1driver.c (t1_service_multi_masters): Updated.
  859. 2017-10-07 Werner Lemberg <wl@gnu.org>
  860. [type1] Minor code shuffling.
  861. * src/type1/t1load.c (T1_Set_MM_Blend): Make it a wrapper of...
  862. (t1_set_mm_blend): ...this new function.
  863. (T1_Set_MM_Design): Use `t1_set_mm_blend'.
  864. 2017-10-05 Werner Lemberg <wl@gnu.org>
  865. * src/base/ftobjs.c (ft_glyphslot_preset_bitmap): Fix integer
  866. overflow.
  867. Reported as
  868. https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3539
  869. 2017-10-05 Werner Lemberg <wl@gnu.org>
  870. Fix compiler warnings.
  871. * src/cff/cffdrivr.c (cff_ps_get_font_extra): Avoid code that relies
  872. on numeric overflow.
  873. Add cast.
  874. * src/smooth/ftsmooth.c (ft_smooth_render_generic): Fix variable
  875. types, add cast.
  876. 2017-10-04 John Tytgat <John.Tytgat@esko.com>
  877. [cff] Add support for `FSType'.
  878. * include/freetype/internal/cfftypes.h (CFF_FontRec): Add
  879. `font_extra' entry.
  880. * src/cff/cffdrivr.c (cff_ps_get_font_extra): New function to
  881. retrieve FSType info from the embedded PostScript data.
  882. (cff_service_ps_info): Register function.
  883. * src/cff/cffload.c (cff_font_done): Free `font_extra'.
  884. 2017-09-30 Alexei Podtelezhnikov <apodtele@gmail.com>
  885. Signedness fixes in bitmap presetting.
  886. Reported as
  887. https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3514.
  888. * src/raster/ftrend1.c (ft_raster1_render): Explicitly signed height.
  889. * src/smooth/ftsmooth.c (ft_smooth_render_generic): Ditto.
  890. * src/base/ftobjs.c (ft_glyphslot_preset_bitmap): Explicitly unsigned
  891. subtraction.
  892. 2017-09-29 Alexei Podtelezhnikov <apodtele@gmail.com>
  893. Bitmap metrics presetting [2/2].
  894. * src/base/ftobjs.c (FT_Load_Glyph): Preset the bitmap metrics when
  895. appropriate but `FT_Render_Glyph' is not called.
  896. * include/freetype/freetype.h (FT_GlyphSlotRec): Document the change.
  897. 2017-09-28 Alexei Podtelezhnikov <apodtele@gmail.com>
  898. [smooth, raster] Miscellaneous cleanups.
  899. * src/raster/ftrend1.c (ft_raster1_render): Clean up the exit.
  900. * src/smooth/ftsmooth.c (ft_smooth_render_generic): Reduce
  901. translations and clean up the exit.
  902. (ft_smooth_render_lcd, ft_smooth_render_lcd): Remove unused `error'.
  903. 2017-09-28 Ben Wagner <bungeman@google.com>
  904. [truetype] Really, really fix #52082.
  905. * src/truetype/ttinterp.c (Ins_MDRP): Correct conditional.
  906. 2017-09-28 Werner Lemberg <wl@gnu.org>
  907. * src/psaux/psintrp.c (cf2_doStems): Fix integer overflow.
  908. Reported as
  909. https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3510
  910. 2017-09-28 Ewald Hew <ewaldhew@gmail.com>
  911. * src/cid/cidgload.c (cid_slot_load_glyph): Fix memory leak.
  912. Reported as
  913. https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3489
  914. 2017-09-28 Alexei Podtelezhnikov <apodtele@gmail.com>
  915. Bitmap metrics presetting [1/2].
  916. This mainly just extracts the code for presetting the bitmap metrics
  917. from the monochrome, grayscale, and LCD renderers into a separate
  918. function.
  919. * src/base/ftobjs.c (ft_glyphslot_preset_bitmap): New function that
  920. calculates prospective bitmap metrics for the given rendering mode.
  921. * include/freetype/internal/ftobjs.h (ft_glyphslot_preset_bitmap):
  922. Declare it.
  923. * src/base/ftlcdfil.c (ft_lcd_padding): New helper function that adds
  924. padding to CBox taking into account pecularities of LCD rendering.
  925. * include/freetype/ftlcdfil.h (ft_lcd_padding): Declare it.
  926. * src/raster/ftrend1.c (ft_raster1_render): Reworked to use
  927. `ft_glyphslot_preset_bitmap'.
  928. * src/smooth/ftsmooth.c (ft_smooth_render_generic): Ditto.
  929. (ft_smooth_render_lcd, ft_smooth_render_lcd): The pixel_mode setting
  930. is moved to `ft_glyphslot_preset_bitmap'.
  931. 2017-09-28 Ewald Hew <ewaldhew@gmail.com>
  932. [psaux] Fix compiler warning.
  933. * src/psaux/pshints.c (cf2_hintmap_dump): Add switch for tracing
  934. code.
  935. 2017-09-27 Werner Lemberg <wl@gnu.org>
  936. * src/sfnt/ttload.c (tt_face_load_font_dir): Fix compiler warning.
  937. 2017-09-25 Werner Lemberg <wl@gnu.org>
  938. [psaux] Fix compiler warnings.
  939. * src/psaux/psft.c (cf2_initLocalRegionBuffer): Remove redundant
  940. test.
  941. * src/psaux/psintrp.c (cf2_interpT2CharString)
  942. <cf2_escCALLOTHERSUBR>: Add casts.
  943. * src/psaux/psobjs.c (ps_decoder_init): Add cast.
  944. 2017-09-25 Ewald Hew <ewaldhew@gmail.com>
  945. [psaux] Minor fixes.
  946. * include/freetype/internal/psaux.h, src/psaux/psobjs.{c,h}:
  947. Rearrange `ps_builder_init' arguments to conventional order.
  948. * src/psaux/psft.c (cf2_decoder_parse_charstrings): Add a check and
  949. notice for `SubFont' in Type 1 mode.
  950. 2017-09-25 Ewald Hew <ewaldhew@gmail.com>
  951. [psaux] Move `psdecode' into `psobjs'.
  952. As the former only contains a single procedure, move it into
  953. `psobjs' for simplicity. Also change the parameter order to the
  954. conventional one.
  955. * src/psaux/psdecode.c (ps_decoder_init): Moved to...
  956. * src/psaux/psobjs.c: ...Here.
  957. * src/psaux/psdecode.h, src/psaux/psobjs.h: Ditto.
  958. * include/freetype/internal/psaux.h (PSAux_ServiceRec): Update
  959. `ps_decoder_init' function signature.
  960. * src/cff/cffgload.c, src/cid/cidgload.c, src/type1/t1gload.c:
  961. Update calls.
  962. * src/psaux/psaux.c, src/psaux/psauxmod.c: Update includes.
  963. * src/psaux/Jamfile (_sources), src/psaux/rules.mk (PSAUX_DRV_SRC):
  964. Update file references.
  965. 2017-09-25 Ewald Hew <ewaldhew@gmail.com>
  966. [psaux] Fix Type 1 hinting.
  967. Type 1 hinting breaks sometimes when mid-charstring hints should
  968. have been in the initial hintmap. This fix adds a preprocessing
  969. pass that reads all hints and builds the correct initial hintmap
  970. first, before proceeding to build the glyph outline.
  971. * src/psaux/psintrp.c (cf2_interpT2CharString): New
  972. `initial_map_ready' boolean flag.
  973. Ignore outline commands and hint changes on first pass.
  974. <cf2_cmdENDCHAR>: Add section to build hintmap and rewind.
  975. 2017-09-25 Ewald Hew <ewaldhew@gmail.com>
  976. [psaux] Add tracing for hints.
  977. * src/psaux/pshints.c (cf2_hintmap_dump): New function.
  978. (cf2_hintmap_insertHint): Trace incoming and inserted hints.
  979. (cf2_hintmap_build): Dump hintmap before and after hint adjustment.
  980. 2017-09-25 Ewald Hew <ewaldhew@gmail.com>
  981. [psaux] Minor fixes.
  982. * src/psaux/psintrp.c (cf2_interpT2CharString): Fix check for pop
  983. results.
  984. s/font->decoder/decoder/ where necessary.
  985. <cf2_cmdHSTEM, cf2_cmdVSTEM, cf2_escHSTEM3, cf2_escVSTEM3>: Use
  986. offset parameter in `cf2_doStems' instead of doing correction for
  987. left-sidebearing.
  988. 2017-09-25 Ewald Hew <ewaldhew@gmail.com>
  989. [cid] Use the new engine.
  990. * src/cid/cidgload.c: Update includes.
  991. (cid_load_glyph, cid_slot_load_glyph): Implement changes to glyph
  992. loading code as with `type1' module.
  993. 2017-09-25 Ewald Hew <ewaldhew@gmail.com>
  994. [cid] Add Adobe engine configuration.
  995. This is similar to what was done in the `type1' module.
  996. * src/cid/cidriver.c (t1cid_driver_class): Update declaration.
  997. * src/cid/cidobjs.c: Include FT_TYPE1_DRIVER_H.
  998. (cid_driver_init): Update code.
  999. 2017-09-25 Ewald Hew <ewaldhew@gmail.com>
  1000. [psaux] Change subfont synthesis for CID fonts.
  1001. Change `t1_make_subfont' to take in the Private dict record as an
  1002. argument. This is because Type 1 and CID font records in FreeType
  1003. have this in different places.
  1004. * src/psaux/psobjs.c (t1_make_subfont): Change `T1_Face' to
  1005. `FT_Face' so that CID is also accepted.
  1006. Take `PS_Private' as an argument and let caller figure out where the
  1007. Private dict actually is.
  1008. Update references.
  1009. * include/freetype/internal/psaux.h, src/psaux/psobjs.h: Update
  1010. declaration.
  1011. * src/type1/t1gload.c (T1_Parse_Glyph_And_Get_Char_String): Update
  1012. call.
  1013. 2017-09-25 Ewald Hew <ewaldhew@gmail.com>
  1014. [type1] Switch to Adobe engine.
  1015. * src/type1/t1objs.c (T1_Driver_Init): Set default to Adobe engine.
  1016. 2017-09-25 Ewald Hew <ewaldhew@gmail.com>
  1017. [psaux] Extend Adobe interpreter (seac).
  1018. This concludes the changes needed to add Type 1 support.
  1019. * src/psaux/psintrp.c: Update includes.
  1020. (cf2_interpT2CharString) <cf2_escSEAC>: Implement this similarly to
  1021. implied seac for CFF.
  1022. * src/psaux/t1decode.c (t1_lookup_glyph_by_stdcharcode_ps): New
  1023. function to look up the glyph index.
  1024. * src/psaux/psft.c (cf2_getT1SeacComponent,
  1025. cf2_freeT1SeacComponent): New functions to get the charstrings for
  1026. seac components.
  1027. * src/psaux/t1decode.h, src/psaux/psft.h: Update declarations.
  1028. 2017-09-25 Ewald Hew <ewaldhew@gmail.com>
  1029. [psaux] Extend Adobe interpreter (flex in callothersubr).
  1030. * src/psaux/psintrp.c (cf2_interpT2CharString)
  1031. <cf2_escCALLOTHERSUBR>: Fix Flex feature handling (OtherSubrs 0, 1,
  1032. 2).
  1033. <cf2_cmdRMOVETO>: Do not actually move the `glyphPath' while doing
  1034. flex. This is to avoid closing the current contour.
  1035. 2017-09-25 Ewald Hew <ewaldhew@gmail.com>
  1036. [psaux] Extend Adobe interpreter (callothersubr).
  1037. * src/psaux/psintrp.c (cf2_interpT2CharString)
  1038. <cf2_escCALLOTHERSUBR>: Copy code from
  1039. `t1_decoder_parse_charstrings' (in `t1decode.c').
  1040. OtherSubr 3 (change hints) should reset the hintmask, so that the
  1041. new hints are applied.
  1042. Fix function calls and stack access.
  1043. 2017-09-25 Ewald Hew <ewaldhew@gmail.com>
  1044. [psaux] Extend Adobe interpreter (pop).
  1045. * src/psaux/psintrp.c (cf2_interpT2CharString): Change how unhandled
  1046. OtherSubr results are stored. Implement the PostScript stack using
  1047. an array.
  1048. <cf2_escPOP>: Ensure that the stack is not cleared after getting
  1049. `OtherSubr' results.
  1050. Fix stack access.
  1051. 2017-09-25 Ewald Hew <ewaldhew@gmail.com>
  1052. [psaux] Extend Adobe interpreter (callsubr).
  1053. * src/psaux/psintrp.c (cf2_interpT2CharString) <cf2_cmdCALLSUBR>:
  1054. Type 1 mode.
  1055. * src/psaux/psft.c (cf2_initLocalRegionBuffer): Add Type 1 mode.
  1056. 2017-09-25 Ewald Hew <ewaldhew@gmail.com>
  1057. [psaux] Extend Adobe interpreter (div, four-byte numbers).
  1058. * src/psaux/psintrp.c (cf2_interpT2CharString) <cf2_escDIV>: Add
  1059. Type 1 mode. Type 1 requires large integers to be followed by
  1060. `div'; cf. `Adobe Type 1 Font Format', section 6.2.
  1061. <op == 255>: Push Type 1 four-byte numbers as `Int' always. This is
  1062. to ensure `div' and `callsubr' get values they can use.
  1063. 2017-09-25 Ewald Hew <ewaldhew@gmail.com>
  1064. [psaux] Extend Adobe interpreter (hints).
  1065. * src/psaux/psintrp.c (cf2_interpT2CharString) <cf2_cmdHSTEM,
  1066. cf2_cmdVSTEM>: Add correction for left sidebearing in Type 1 mode.
  1067. Allow adding hints mid-charstring.
  1068. <cf2_escVSTEM3, cf2_escHSTEM3>: Translate into equivalent commands
  1069. for three normal stem hints. This requires some recalculation of
  1070. stem positions.
  1071. Correction for left sidebearing.
  1072. 2017-09-25 Ewald Hew <ewaldhew@gmail.com>
  1073. [psaux] Extend Adobe interpreter (hsbw, sbw).
  1074. * src/psaux/psintrp.c (cf2_doStems): `hsbw' or `sbw' must be the
  1075. first operation in a Type 1 charstring.
  1076. (cf2_interpT2CharString): Remove unused variables.
  1077. <cf2_cmdHMOVETO, cf2_cmdVMOVETO, cf2_cmdRMOVETO>: `hsbw' or `sbw'
  1078. must be the first operation in a Type 1 charstring.
  1079. <cf2_cmdHSBW, cf2_escSBW>: Fix data access and add correction for
  1080. left sidebearing.
  1081. 2017-09-25 Ewald Hew <ewaldhew@gmail.com>
  1082. [psaux] Extend Adobe interpreter (setcurrentpoint).
  1083. * src/psaux/psintrp.c (cf2_interpT2CharString)
  1084. <cf2_escSETCURRENTPT>: Fix stack access.
  1085. 2017-09-25 Ewald Hew <ewaldhew@gmail.com>
  1086. [psaux] Extend Adobe interpreter (closepath).
  1087. * src/psaux/psintrp.c (cf2_interpT2CharString) <c2f_cmdCLOSEPATH>:
  1088. Use the right builder function. We can use the `haveWidth' boolean
  1089. already present, instead of implementing `parse_state'.
  1090. 2017-09-25 Ewald Hew <ewaldhew@gmail.com>
  1091. [psaux] Add Type 1 operations to Adobe CFF interpreter.
  1092. The following Type 1 specific ops have been added (copied from
  1093. `t1decode'):
  1094. closepath
  1095. vstem3
  1096. hstem3
  1097. seac
  1098. sbw
  1099. callothersubr
  1100. pop
  1101. setcurrentpoint
  1102. hsbw
  1103. The following require a Type 1 mode, because of differences in
  1104. specification:
  1105. hstem
  1106. vstem
  1107. vmoveto
  1108. callsubr
  1109. div
  1110. rmoveto
  1111. hmoveto
  1112. Numbers
  1113. The subsequent commits will implement these changes and adapt
  1114. accesses of data and objects to the new interpreter.
  1115. NOTE: Will not compile in the meantime!
  1116. * src/psaux/psintrp.c: Add opcodes to enum.
  1117. (cf2_interpT2CharString): Copy relevant code over from
  1118. `t1_decoder_parse_charstrings' (in `t1decode.c').
  1119. 2017-09-25 Ewald Hew <ewaldhew@gmail.com>
  1120. [type1] Fixes for rendering.
  1121. The Type 1 advance width calculation passes null for glyph slot,
  1122. etc, which can cause null pointer access in the new interpreter.
  1123. Fall back to the old one for now.
  1124. Fix the large glyph retry code and ensure hinting and scaling flags
  1125. are set properly.
  1126. * src/type1/t1gload.c (T1_Parse_Glyph_And_Get_Char_String): Add a
  1127. check for metrics_only.
  1128. Set the `force_scaling' flag.
  1129. (T1_Parse_Glyph): Updated.
  1130. (T1_Load_Glyph): Add `hinting' and `scaled' flags.
  1131. 2017-09-25 Ewald Hew <ewaldhew@gmail.com>
  1132. [psaux] Add missing objects (2/2).
  1133. Synthesize a `SubFont' object for Type 1 fonts. This is used in the
  1134. interpreter to access Private dict data, which are stored in
  1135. different places for Type 1 and CFF. This allows the same data to
  1136. be used in either mode.
  1137. * src/psaux/psobjs.c (t1_make_subfont): New procedure to copy
  1138. required values to a dummy `CFF_SubFont' object. This is similar to
  1139. `cff_make_private_dict'.
  1140. * src/psaux/psobjs.h: Add the new declaration.
  1141. * include/freetype/internal/psaux.h, src/psaux/psauxmod.c: Ditto.
  1142. Add this to the PSAux Service for future use with CID fonts.
  1143. * src/type1/t1gload.c: Include FT_INTERNAL_CFF_TYPES_H.
  1144. (T1_Parse_Glyph_And_Get_Char_String): Add the call.
  1145. 2017-09-25 Ewald Hew <ewaldhew@gmail.com>
  1146. [psaux] Add missing objects for Type 1 (1/2).
  1147. Move `CF2_Font' instance to `PS_Decoder'. This is the context for
  1148. the interpreter and since it is currently stored in `CFF_Font', is
  1149. unavailable in Type 1 mode.
  1150. * include/freetype/internal/psaux.h (T1_Decoder, PS_Decoder): New
  1151. `cf2_instance' field.
  1152. * src/psaux/psdecode.c (ps_decoder_init): Copy `cf2_instance' to
  1153. `PS_Decoder'.
  1154. * src/psaux/t1decode.c (t1_decoder_done): Add finalization code.
  1155. * src/psaux/psft.c (cf2_decoder_parse_charstrings): Update accesses.
  1156. 2017-09-25 Ewald Hew <ewaldhew@gmail.com>
  1157. Allow `type1' module to use the Adobe engine.
  1158. Add the callback and some conditionals to switch between the two
  1159. engines.
  1160. * include/freetype/internal/psaux.h (T1_Decoder_FuncsRec): Change
  1161. function declarations.
  1162. * src/psaux/psauxmod.c (T1_Decoder_FuncsRec): Register the
  1163. callbacks.
  1164. * src/psaux/psobjs.c (ps_builder_add_point): Add conditionals for
  1165. number conversion.
  1166. * src/type1/t1gload.c (T1_Parse_Glyph_And_Get_Char_String): Add code
  1167. to choose which renderer to use.
  1168. * src/cid/cidgload.c (cid_load_glyph): Update call.
  1169. * src/base/ftobjs.c, src/psaux/psobjs.c, src/type1/t1gload.c: Update
  1170. includes.
  1171. 2017-09-25 Ewald Hew <ewaldhew@gmail.com>
  1172. [type1] Add Adobe engine configuration.
  1173. Use the previously changed PS_Driver in type1 module to store
  1174. hinting engine configuration.
  1175. * include/freetype/ftt1drv.h: New file.
  1176. Duplicate and rename config options from CFF.
  1177. * include/freetype/config/ftheader.h (FT_TYPE1_DRIVER_H): New macro.
  1178. * src/type1/t1driver.c (t1_driver_class): Update declaration.
  1179. * src/type1/t1objs.c: Include FT_TYPE1_DRIVER_H.
  1180. (T1_Driver_Init): Update code.
  1181. 2017-09-25 Ewald Hew <ewaldhew@gmail.com>
  1182. [cff] Move and rename `CFF_Driver'.
  1183. This is so that we can use the same hinting engine parameters for
  1184. Type 1.
  1185. * include/freetype/internal/cffotypes.h (CFF_Driver): Rename and
  1186. move to...
  1187. * include/freetype/internal/psaux.h (PS_Driver): ...here.
  1188. * src/cff/cffdrivr.c, src/cff/cffgload.c, src/cff/cffload.c,
  1189. src/cff/cffobjs.c, src/cff/cffobjs.h, src/psaux/psft.c,
  1190. src/psaux/psobjs.c: Update references.
  1191. 2017-09-25 Ewald Hew <ewaldhew@gmail.com>
  1192. [psaux, type1] Reorganize object fields.
  1193. Make some fields more generic, so that we can access them the same
  1194. way regardless of Type 1 or CFF.
  1195. * include/freetype/internal/psaux.h (PS_Builder): Change `TT_Face'
  1196. to `FT_Face'.
  1197. Remove unused fields.
  1198. * src/psaux/psft.c: Update all accesses of `PS_Builder.face'.
  1199. Add some asserts to guard against casting `T1_Face' as `TT_Face'.
  1200. * src/type1/t1objs.h (T1_GlyphSlot): Reorder fields to follow
  1201. `CFF_GlyphSlot', so that we can pretend they are the same in the
  1202. interpreter.
  1203. * src/psaux/psobjs.c (ps_builder_init, ps_builder_add_point):
  1204. Updated with above changes.
  1205. 2017-09-25 Ewald Hew <ewaldhew@gmail.com>
  1206. [psaux] Prepare for Type 1 mode.
  1207. Add some checks for Type 1 data passing through.
  1208. * src/psaux/psfont.h (CF2_Font): Add `isT1' flag.
  1209. * src/psaux/psfont.c (cf2_font_setup): Skip the variations and blend
  1210. code which is not applicable for Type 1.
  1211. * src/psaux/psft.c (cf2_decoder_parse_charstrings): Avoid accessing
  1212. `decoder->cff' in Type 1 mode.
  1213. Copy `is_t1' flag to `CF2_Font'.
  1214. 2017-09-25 Ewald Hew <ewaldhew@gmail.com>
  1215. [psaux, cff] Use the new objects.
  1216. * include/freetype/internal/psaux.h, src/psaux/psauxmod.c: Fix
  1217. switching between new and old engines.
  1218. * src/cff/cffgload.c, src/cff/cffparse.c: Update calls.
  1219. * src/psaux/psblues.c, src/psaux/psfont.c, src/psaux/psfont.h,
  1220. src/psaux/psft.c, src/psaux/psft.h, src/psaux/psintrp.c: Update all
  1221. to use new objects.
  1222. 2017-09-24 Ewald Hew <ewaldhew@gmail.com>
  1223. [psaux] Objects for new interpreter (part 2).
  1224. Make the new objects copy over values. They are essentially wrapper
  1225. types for the different decoders/builders.
  1226. * include/freetype/internal/psaux.h: Update declarations.
  1227. (PS_Builder): Add `is_t1' flag.
  1228. (PS_Decoder_{Get,Free}_Glyph_Callback): Renamed to...
  1229. (CFF_Decoder_{Get,Free}_Glyph_Callback: ... this.
  1230. (PS_Decoder): Updated.
  1231. Add `t1_parse_callback' member.
  1232. (PSAux_ServiceRec): Add `ps_decoder_init' member.
  1233. * src/psaux/psdecode.h, src/psaux/psobjs.h: Update declarations.
  1234. * src/psaux/psdecode.c, src/psaux/psobjs.c: Implement copy with two
  1235. modes.
  1236. * src/psaux/psauxmod.c: Add builder and decoder functions to `PSAux'
  1237. service.
  1238. 2017-09-24 Ewald Hew <ewaldhew@gmail.com>
  1239. [psaux] Add objects for new interpreter.
  1240. Introduce `PS_Decoder' and `PS_Builder' which include all fields
  1241. from either Type 1 or CFF decoders/builders.
  1242. * include/freetype/internal/psaux.h (PS_Builder, PS_Decoder): New
  1243. structs.
  1244. * src/psaux/psobjs.c, src/psaux/psobjs.h: Add `PS_Builder'
  1245. functions.
  1246. * src/psaux/psdecode.c, src/psaux/psdecode.h: New files to hold
  1247. `PS_Decoder' initialization functions.
  1248. * src/psaux/psaux.c, src/psaux/Jamfile (_sources),
  1249. src/psaux/rules.mk (PSAUX_DRV_SRC): Updated.
  1250. 2017-09-24 Ewald Hew <ewaldhew@gmail.com>
  1251. [psaux] Rename files.
  1252. Replace the `cf2' file name prefix with `ps' as the Adobe engine
  1253. will be used for both PostScript Types 1 and 2 (CFF) instead of just
  1254. CFF.
  1255. s/cf2/ps/ for all following.
  1256. * src/psaux/cf2*: Rename files.
  1257. * src/psaux/*: Update includes.
  1258. * src/psaux/Jamfile (_sources), src/psaux/rules.mk (PSAUX_DRC_SRC,
  1259. PSAUX_DRV_H): Update file references.
  1260. 2017-09-24 Ewald Hew <ewaldhew@gmail.com>
  1261. [psaux] Minor fix.
  1262. Use `MultiMasters' service in `psaux' instead of a call to `cff'.
  1263. The project builds if CFF_CONFIG_OPTION_OLD_ENGINE is not defined.
  1264. * src/psaux/cf2ft.c: Update includes.
  1265. (cf2_getNormalizedVector): Use `mm->get_var_blend' instead of
  1266. `cff_get_var_blend'.
  1267. 2017-09-24 Ewald Hew <ewaldhew@gmail.com>
  1268. [psaux, cff] Move `cff_random' into `psaux' service.
  1269. NOTE: Does not compile!
  1270. Minor fix to allow both `cff' and `psaux' to use `cff_random'.
  1271. * src/cff/cffload.c (cff_random): Move to...
  1272. * src/psaux/psobjs.c: Here.
  1273. * src/cff/cffload.h: Move corresponding declaration to
  1274. `src/psaux/psobjs.h'.
  1275. * include/freetype/internal/psaux.h (PSAux_ServiceRec): Register the
  1276. function here...
  1277. * src/psaux/psauxmod.c: And here.
  1278. * src/cff/cffload.c, src/psaux/cf2intrp.c: Update code.
  1279. 2017-09-24 Ewald Hew <ewaldhew@gmail.com>
  1280. [cff] Move struct declarations to `freetype/internal'.
  1281. NOTE: Does not compile!
  1282. This is so that the CFF functions moved to `psaux' can access the
  1283. same structs that they need.
  1284. * src/cff/cfftypes.h: Moved to...
  1285. * include/freetype/internal/cfftypes.h: ...Here.
  1286. * src/cff/cffobjs.h: Moved the struct declarations to...
  1287. * include/freetype/internal/cffotypes.h: ... this new file.
  1288. * include/freetype/internal/internal.h (FT_INTERNAL_CFF_TYPES_H,
  1289. FT_INTERNAL_CFF_OBJECT_TYPES_H): New macros.
  1290. * src/cff/cffcmap.h, src/cff/cffdrivr.c, src/cff/cffgload.c,
  1291. src/cff/cffgload.h, src/cff/cffload.h, src/cff/cffobjs.c,
  1292. src/cff/cffobjs.h, src/cff/cffparse.h, src/psaux/psobjs.h,
  1293. include/freetype/internal/psaux.h,
  1294. include/freetype/internal/services/svcfftl.h: Update includes.
  1295. * src/cff/rules.mk (CFF_DRV_H): Updated.
  1296. 2017-09-24 Ewald Hew <ewaldhew@gmail.com>
  1297. [psaux, cff] Add new service for inter-module calls.
  1298. NOTE: Does not compile!
  1299. This is to allow CFF functions moved to `psaux' to call functions
  1300. declared in `src/cff/cffload.h'.
  1301. * include/freetype/internal/services/svcfftl.h: New file, setting up
  1302. a `CFFLoad' service.
  1303. * include/freetype/internal/ftserv.h (FT_DEFINE_SERVICEDESCREC10,
  1304. FT_DEFINE_SERVICEDESCREC): New macros.
  1305. (FT_SERVICE_CFF_TABLE_LOAD_H): New macro.
  1306. * src/cff/cffdrivr.c, src/cff/cffpic.h: Register the new service.
  1307. * src/cff/cfftypes.h (CFF_FontRec), src/psaux/cf2font.h
  1308. (CF2_FontRec): Add service interface.
  1309. * src/cff/cffobjs.c, src/psaux/cf2font.c, src/psaux/cf2ft.c,
  1310. src/psaux/cf2intrp.c, src/psaux/cffdecode.c: Use the new service.
  1311. 2017-09-24 Ewald Hew <ewaldhew@gmail.com>
  1312. [psaux, cff] Add callbacks for inter-module calls.
  1313. NOTE: Does not compile!
  1314. * include/freetype/internal/psaux.h: Add function pointer
  1315. declarations.
  1316. * src/psaux/cffdecode.c (cff_decoder_init): Update to take in
  1317. callbacks.
  1318. * src/psaux/cffdecode.h: Ditto.
  1319. * src/cff/cffgload.c (cff_compute_max_advance, cff_slot_load):
  1320. Update calls to pass in callbacks.
  1321. * src/psaux/cf2ft.c, src/psaux/cffdecode.c: Use them.
  1322. 2017-09-24 Ewald Hew <ewaldhew@gmail.com>
  1323. [psaux, cff] Create new `PSAux' service interface entries.
  1324. NOTE: Does not compile!
  1325. * include/freetype/internal/psaux.h: Include
  1326. FT_INTERNAL_TRUETYPE_TYPES_H.
  1327. (CFF_Builder_FuncsRec, CFF_Decocer_FuncsRec): New function tables.
  1328. (CFF_Builder): Updated.
  1329. Fix for forward declaration.
  1330. (PSAux_ServiceRec): New field `cff_decoder_funcs'.
  1331. * src/psaux/psauxmod.c (cff_builder_funcs, cff_decoder_funcs): New
  1332. function tables.
  1333. (PSAux_Interface): Updated.
  1334. * include/freetype/internal/tttypes.h (TT_FaceRec): Add `psaux'
  1335. service interface.
  1336. * src/cff/cffgload.c, src/cff/cffobjs.c, src/cff/cffparse.c: Update
  1337. function calls to use psaux service.
  1338. 2017-09-24 Ewald Hew <ewaldhew@gmail.com>
  1339. [psaux, cff] Move CFF builder components into `psaux' module.
  1340. NOTE: Does not compile!
  1341. * src/cff/cffgload.c
  1342. (cff_builder_{init,done,add_point,add_point1,add_contour,start_point,close_contour},
  1343. cff_check_points): Move to...
  1344. * src/psaux/psobjs.c: Here.
  1345. * src/cff/cffgload.h: Move corresponding declarations to
  1346. `src/psaux/psobjs.h'.
  1347. * src/cff/cffgload.h (CFF_Builder): Move struct declaration to...
  1348. * include/freetype/internal/psaux.h: Here.
  1349. 2017-09-24 Ewald Hew <ewaldhew@gmail.com>
  1350. [psaux, cff] Move CFF decoder components into `psaux' module.
  1351. NOTE: Does not compile!
  1352. * src/cff/cffgload.c (CFF_Operator,
  1353. CFF_COUNT_{CHECK_WIDTH,EXACT,CLEAR_STACK}, cff_argument_counts,
  1354. cff_operator_seac, cff_compute_bias,
  1355. cff_lookup_glyph_by_stdcharcode,
  1356. cff_decoder_{parse_charstrings,init,prepare}): Move to...
  1357. * src/psaux/cffdecode.c: This new file.
  1358. * src/cff/cffgload.h: Move corresponding declarations to...
  1359. * src/psaux/cffdecode.h: This new file.
  1360. * src/cff/cffgload.h (CFF_MAX_{OPERANDS,SUBRS_CALLS,TRANS_ELEMENTS},
  1361. CFF_Decoder_Zone, CFF_Decoder): Move declarations to...
  1362. * include/freetype/internal/psaux.h: Here.
  1363. * src/psaux/cf2ft.h: Update include.
  1364. * src/psaux/psaux.c, src/psaux/rules.mk (PSAUX_DRV_SRC): Update with
  1365. the new file.
  1366. 2017-09-24 Ewald Hew <ewaldhew@gmail.com>
  1367. [psaux, cff] Move Adobe's engine components into `psaux' module.
  1368. This is the first patch of a sequence to move the Type 2 charstring
  1369. processing capability from the `cff' module to the `psaux' module.
  1370. NOTE: Does not compile!
  1371. * src/cff/cf2*: Move these files to...
  1372. * src/psaux/cf2*: Here.
  1373. * src/cff/Jamfile (_sources), src/cff/rules.mk (CFF_DRV_SRC,
  1374. CFF_DRV_H), src/cff/cff.c, src/cff/cffgload.c: Remove file
  1375. references.
  1376. * src/psaux/Jamfile (_sources), src/psaux/rules.mk, src/psaux/psaux.c
  1377. (PSAUX_DRV_SRC, PSAUX_DRV_H): Add file references.
  1378. 2017-09-24 Alexei Podtelezhnikov <apodtele@gmail.com>
  1379. Tweak per-face LCD filtering controls.
  1380. Thing are simpler with a NULL-function pointer.
  1381. * include/freetype/internal/ftobjs.h (FT_Face_InternalRec): New
  1382. pointer to the filter function.
  1383. (FT_LibraryRec): Remove unused `lcd_filter'.
  1384. (FT_Bitmap_LcdFilterFunc, ft_lcd_filter_fir): Move from here...
  1385. * include/freetype/ftlcdfil.h (FT_Bitmap_LcdFilterFunc,
  1386. ft_lcd_filter_fir): ... to here.
  1387. * src/base/ftobjs.c (ft_open_face_internal): NULL-initialize the
  1388. per-face filter.
  1389. (FT_Face_Properties): Set it.
  1390. * src/smooth/ftsmooth.c (ft_smooth_render_generic): Simplify.
  1391. * src/base/ftlcdfil.c (ft_lcd_filter_fir, FT_Libary_SetLcdFilter):
  1392. Minor.
  1393. 2017-09-24 Jonathan Kew <jfkthame@gmail.com>
  1394. [sfnt] Fix `premultiply_data' (#52092).
  1395. * src/sfnt/pngshim.c (premultiply_data): Don't use vector extension
  1396. if we have less than 16 bytes of data.
  1397. 2017-09-24 Werner Lemberg <wl@gnu.org>
  1398. [otvalid] Fix handling of ValueRecords.
  1399. For GPOS pair positioning format 1 the description of ValueRecords
  1400. in the OpenType specification (1.8.2, from today) is wrong – the
  1401. offset has to be taken from the parent structure; in this case the
  1402. `PairSet' table.
  1403. * src/otvalid/otvgpos.c (otv_PairSet_validate): Set `extra3'.
  1404. (otv_PairPos_validate): Adjust.
  1405. 2017-09-23 Werner Lemberg <wl@gnu.org>
  1406. [otvalid] Handle `GSUB' and `GPOS' v1.1 tables.
  1407. * src/otvalid/otvgsub.c (otv_GSUB_validate), src/otvalid/otvgpos.c
  1408. (otv_GPOS_validate): Implement it.
  1409. 2017-09-23 Werner Lemberg <wl@gnu.org>
  1410. [otvalid] Update common table handling to OpenType 1.8.2.
  1411. * src/otvalid/otvcommn.c (otv_Device_validate): Handle
  1412. VariationIndex subtable.
  1413. (otv_Lookup_validate): Handle MarkFilteringSet.
  1414. 2017-09-23 Alexei Podtelezhnikov <apodtele@gmail.com>
  1415. [build] Windows-style DLL versioning.
  1416. * build/windows/ftver.rc: New VERSIONINFO resource.
  1417. * build/windows/vc2010/freetype.vcxproj: Further improvements.
  1418. 2017-09-23 Ben Wagner <bungeman@google.com>
  1419. [truetype] Really fix #52082.
  1420. * src/truetype/ttinterp.c (Ins_MDRP): Correct conditional.
  1421. 2017-09-23 Werner Lemberg <wl@gnu.org>
  1422. [otvalid] Handle `GDEF' v1.2 and v1.3 tables.
  1423. No validation of variation stuff yet.
  1424. * src/otvalid/otvgdef.c (otv_MarkGlyphSets_validate): New function.
  1425. (otv_GDEF_validate): Implement it.
  1426. 2017-09-22 Werner Lemberg <wl@gnu.org>
  1427. [otvalid] Handle `BASE' v1.1 table.
  1428. No validation of variation stuff yet.
  1429. * src/otvalid/otvbase.c (otv_BASE_validate): Implement it.
  1430. 2017-09-22 Werner Lemberg <wl@gnu.org>
  1431. [otvalid] Macros for 32bit offset support.
  1432. * src/otvalid/otvcommn.h (OTV_OPTIONAL_TABLE32,
  1433. OTV_OPTIONAL_OFFSET32, OTV_SIZE_CHECK32): New macros.
  1434. 2017-09-21 Alexei Podtelezhnikov <apodtele@gmail.com>
  1435. [build] Simplify Visual C++ 2010 project.
  1436. * build/windows/vc2010/freetype.vcxproj: Remove fake singlethreaded
  1437. configurations and tweak.
  1438. 2017-09-21 Werner Lemberg <wl@gnu.org>
  1439. [truetype] Integer overflow (#52082).
  1440. * src/truetype/ttinterp.c (Ins_MDRP): Avoid FT_ABS.
  1441. 2017-09-21 Werner Lemberg <wl@gnu.org>
  1442. [sfnt] Fix postscript name for default instance of variation fonts.
  1443. Problem reported by Behdad.
  1444. * src/sfnt/sfdriver.c (sfnt_get_ps_name): Test
  1445. `is_default_instance'.
  1446. 2017-09-21 Werner Lemberg <wl@gnu.org>
  1447. [truetype] Fix `mmvar' array pointers, part 2.
  1448. The previous commit was incomplete.
  1449. * src/truetype/ttgxvar.c: Properly initialize sub-array offsets for
  1450. `master' also.
  1451. 2017-09-21 Werner Lemberg <wl@gnu.org>
  1452. [truetype] Fix `mmvar' array pointers.
  1453. Without this change, clang's AddressSanitizer reports many runtime
  1454. errors due to misaligned addresses.
  1455. * src/truetype/ttgxvar.c (TT_Get_MM_Var): Use multiples of pointer
  1456. size for sub-array offsets into `mmvar'.
  1457. 2017-09-20 Werner Lemberg <wl@gnu.org>
  1458. [truetype] Integer overflows.
  1459. Changes triggered by
  1460. https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3429
  1461. * src/truetype/ttinterp.c (Ins_SHPIX, Ins_DELTAP): Use NEG_LONG.
  1462. (Ins_MIAP): Use SUB_LONG.
  1463. 2017-09-19 Alexei Podtelezhnikov <apodtele@gmail.com>
  1464. [build] Fix DLL builds in Visual C++ project.
  1465. * build/windows/vc2010/freetype.vcxproj: Use DynamicLibrary in Debug
  1466. and Release configurations.
  1467. * include/freetype/config/ftconfig.h (FT_EXPORT, FT_EXPORT_DEF)
  1468. [_DLL]: Use Visual C++ extensions.
  1469. 2017-09-19 John Tytgat <John.Tytgat@esko.com>
  1470. [cff] Fix family name logic of pure CFF fontdata (#52056).
  1471. 1. If `FamilyName' is present in the CFF font, use this for
  1472. FT_Face's `family_name'.
  1473. 2. Otherwise, use the face name and chop off any subset prefix.
  1474. 3. If at this point FT_Face's `family_name' is set, use this
  1475. together with the full name to determine the style.
  1476. 4. Otherwise, use `CIDFontName' as FT_Face's `family_name'.
  1477. 5. If we don't have a valid style, use "Regular".
  1478. Previously, FT_Face's `family_name' entry for pure CFF fontdata
  1479. nearly always was the fontname itself, instead of the `FamilyName'
  1480. entry in the CFF font (assuming there is one).
  1481. * src/cff/cffobjs.c (cff_face_init) [pure_cff]: Implement it.
  1482. 2017-09-18 Alexei Podtelezhnikov <apodtele@gmail.com>
  1483. [build] Declutter Visual C++ 2010-2017 project.
  1484. * build/windows/vc2010/freetype.vcxproj: Use MaxSpeed (/02)
  1485. optimization for Release configuration throughout the project.
  1486. ----------------------------------------------------------------------------
  1487. Copyright (C) 2017-2019 by
  1488. David Turner, Robert Wilhelm, and Werner Lemberg.
  1489. This file is part of the FreeType project, and may only be used, modified,
  1490. and distributed under the terms of the FreeType project license,
  1491. LICENSE.TXT. By continuing to use, modify, or distribute this file you
  1492. indicate that you have read the license and understand and accept it
  1493. fully.
  1494. Local Variables:
  1495. version-control: never
  1496. coding: utf-8
  1497. End: