ChangeLog 153 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999
  1. 2014-12-06 Werner Lemberg <wl@gnu.org>
  2. * Version 2.5.4 released.
  3. =========================
  4. Tag sources with `VER-2-5-4'.
  5. * docs/VERSION.DLL: Update documentation and bump version number to
  6. 2.5.4.
  7. * README, Jamfile (RefDoc), builds/windows/vc2005/freetype.vcproj,
  8. 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.5.3/2.5.4/, s/253/254/.
  23. * include/freetype/freetype.h (FREETYPE_PATCH): Set to 4.
  24. * builds/unix/configure.raw (version_info): Set to 17:3:11.
  25. * CMakeLists.txt (VERSION_PATCH): Set to 4.
  26. * docs/CHANGES: Updated.
  27. 2014-12-04 Werner Lemberg <wl@gnu.org>
  28. docs/CHANGES: Updated, formatted.
  29. 2014-12-04 Dave Arnold <darnold@adobe.com>
  30. [cff] Modify an FT_ASSERT.
  31. * src/cff/cf2hints.c (cf2_hintmap_map): After the fix for Savannah
  32. bug #43661, the test font `...aspartam.otf' still triggers an
  33. FT_ASSERT. Since hintmap still works with count==0, ...
  34. (cf2_glyphpath_lineTo, cf2_glyphpath_curveTo): ... add that term to
  35. suppress the assert.
  36. 2014-12-04 Dave Arnold <darnold@adobe.com>
  37. [cff] Fix Savannah bug #43661.
  38. * src/cff/cf2intrp.c (cf2_interpT2CharString) <cf2_cmdHSTEM,
  39. cf2_cmdVSTEM, cf2_cmdHINTMASK>: Don't append to stem arrays after
  40. hintmask is constructed.
  41. * src/cff/cf2hints.c (cf2_hintmap_build): Add defensive code to
  42. avoid reading past end of hintmask.
  43. 2014-12-03 Werner Lemberg <wl@gnu.org>
  44. docs/CHANGES: Updated.
  45. 2014-12-03 Werner Lemberg <wl@gnu.org>
  46. [autofit] Better fix for conversion specifiers in debug messages.
  47. Using `%ld' for pointer differences causes warnings on 32bit
  48. platforms. The correct type would be (the relatively new) `%td',
  49. however, this is missing on some important platforms.
  50. This patch improves the change from 2014-11-28.
  51. * src/autofit/afhints.c (AF_INDEX_NUM): Use `int' typecast. Our
  52. pointer differences are always sufficiently small.
  53. (af_glyph_hints_dump_points, af_glyph_hints_dump_segments,
  54. af_glyph_hints_dump_edge): Revert to `%d' and use `AF_INDEX_NUM'.
  55. 2014-12-03 Werner Lemberg <wl@gnu.org>
  56. FT_Sfnt_Tag: s/ft_sfnt_xxx/FT_SFNT_XXX/ for orthogonality.
  57. All public FreeType enumeration and flag values are uppercase...
  58. * include/tttables.h (FT_Sfnt_Tag): Implement it. For backwards
  59. compatilibity, retain the old values as macros.
  60. * src/base/ftfstype.c (FT_Get_FSType_Flags), src/sfnt/sfdriver.c
  61. (get_sfnt_table): Updated.
  62. 2014-12-02 Werner Lemberg <wl@gnu.org>
  63. * include/*: Improve structure of documentation.
  64. . Add and update many `<Order>' tags.
  65. . Apply various documentation fixes.
  66. . Remove details to deprecated (or never implemented) data.
  67. 2014-12-02 Werner Lemberg <wl@gnu.org>
  68. [docmaker] Always handle `<Order>' section elements.
  69. Previously, those elements were handled only for sections present in
  70. a `<Sections>' chapter element.
  71. * src/tools/docmaker/content.py (ContentProcessor::finish):
  72. Implement it.
  73. 2014-12-02 Werner Lemberg <wl@gnu.org>
  74. [docmaker] Properly handle empty rows in Synopsis.
  75. * src/tools/docmaker/tohtml.py (HtmlFormatter::section_enter): Emit
  76. `&nbsp;' for empty fields.
  77. 2014-12-02 Werner Lemberg <wl@gnu.org>
  78. [docmaker] Thinko.
  79. * src/tools/docmaker/content.py (DocBlock::get_markup_words_all):
  80. Emit `/empty/' string for first element also.
  81. 2014-12-02 Werner Lemberg <wl@gnu.org>
  82. [docmaker] Honour empty lines in `<Order>' section element.
  83. This greatly improves the readability of the `Synopsis' links.
  84. * src/tools/docmaker/content.py (DocBlock::get_markup_words_all):
  85. Insert string `/empty/' between items.
  86. * src/tools/docmaker/formatter.py (Formatter::section_dump): Make it
  87. robust against nonexistent keys.
  88. * src/tools/docmaker/tohtml.py (HtmlFormatter::section_enter): Emit
  89. empty <td> elements for `/empty/'.
  90. 2014-12-02 Werner Lemberg <wl@gnu.org>
  91. [docmaker] Ensure Python 3 compatibility.
  92. * src/tools/docmaker/content.py (ContentProcessor::set_section,
  93. ContentProcessor::finish): Replace `has_key' function with `in'
  94. keyword.
  95. * src/tools/docmaker/formatter.py (Formatter::__init__): Replace
  96. sorting function with a key generator.
  97. (Formatter::add_identifier): Replace `has_key' function with `in'
  98. keyword.
  99. * src/tools/docmaker/tohtml.py (HtmlFormatter::html_source_quote):
  100. Replace `has_key' function with `in' keyword.
  101. (HtmlFormatter::index_exit, HtmlFormatter::section_enter): Use
  102. integer division.
  103. s/<>/>/.
  104. * src/tools/docmaker/utils.py: Import `itertools'.
  105. (index_sort): Replaced by...
  106. (index_key): ... this new key generator (doing exactly the same).
  107. 2014-11-29 Werner Lemberg <wl@gnu.org>
  108. [docmaker] Don't output a block multiple times.
  109. This bug was hidden by not processing all lines of `<Order>' blocks.
  110. * src/tools/docmaker/formatter.py (Formatter::section_dump): Filter
  111. out field names.
  112. 2014-11-29 Werner Lemberg <wl@gnu.org>
  113. [docmaker] Use field values as HTML link targets where possible.
  114. * src/tools/docmaker/tohtml.py (HtmlFormatter::make_block_url):
  115. Accept second, optional argument to specify a name.
  116. (HtmlFormatter::html_source_quote): Link to field ID if possible.
  117. (HtmlFormatter::print_html_field_list): Emit `id' attribute.
  118. 2014-11-29 Werner Lemberg <wl@gnu.org>
  119. [docmaker] Allow empty lines in `<Order>' blocks.
  120. Before this patch, the suggested order of entries stopped at the
  121. first empty line.
  122. Obviously, nobody noticed that this problem caused a much reduced
  123. set of links in the `Synopsis' sections; in particular, the
  124. `<Order>' blocks contain a lot of entries that wouldn't be listed
  125. otherwise...
  126. * src/tools/docmaker/content.py (DocBlock::get_markup_words_all):
  127. New function to iterate over all items.
  128. (DocSection::process): Use it.
  129. 2014-11-29 Werner Lemberg <wl@gnu.org>
  130. * src/tools/docmaker/sources.py (column) [Format 2]: Fix regexp.
  131. After the single asterisk there must be no other immediately following
  132. asterisk.
  133. 2014-11-29 Werner Lemberg <wl@gnu.org>
  134. * src/tools/docmaker/tohtml.py: Improve CSS for vertical spacing.
  135. 2014-11-29 Werner Lemberg <wl@gnu.org>
  136. [docmaker] Improve HTML code for table of contents.
  137. * src/tools/docmaker/tohtml.py: Introduce a new table class `toc',
  138. together with proper CSS.
  139. 2014-11-29 Werner Lemberg <wl@gnu.org>
  140. [docmaker] Provide higher-level markup and simplify HTML.
  141. * src/tools/docmaker/tohtml.py: Instead of using extraneous `<div>'
  142. elements, use CSS descendants (of class `section') to format the
  143. data.
  144. Also remove reduntant <p> and <br> elements, replacing them with
  145. proper CSS.
  146. Globally reduce page width to 75%.
  147. (block_header): Rename <div> class to `section'.
  148. 2014-11-29 Werner Lemberg <wl@gnu.org>
  149. [docmaker] Add `top' links after blocks.
  150. * src/tools/docmaker/tohtml.py (block_footer_middle): Implement it.
  151. 2014-11-29 Werner Lemberg <wl@gnu.org>
  152. * src/tools/docmaker/tohtml.py: Improve CSS for fields.
  153. Make fields align horizontally relative to full line width.
  154. 2014-11-29 Werner Lemberg <wl@gnu.org>
  155. * src/tools/docmaker/tohtml.py: Fix index and TOC templates.
  156. This thinko was introduced 2014-11-27.
  157. 2014-11-28 Werner Lemberg <wl@gnu.org>
  158. [docmaker] Format field lists with CSS.
  159. This also simplifies the inserted HTML code.
  160. * src/tools/docmaker/tohtml.py
  161. (HtmlFormatter::print_html_field_list): Do it.
  162. 2014-11-28 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  163. Fix compiler warning to the comparison between signed and
  164. unsigned variable.
  165. * src/pfr/pfrsbit.c (pfr_slot_load_bitmap): Fix the comparison
  166. between `ypos + ysize' and FT_INT_{MAX,MIN}.
  167. 2014-11-28 Werner Lemberg <wl@gnu.org>
  168. [docmaker] Replace empty `<td>' with CSS.
  169. * src/tools/docmaker/tohtml.py (HtmlFormatter::section_enter): Do
  170. it.
  171. 2014-11-28 Werner Lemberg <wl@gnu.org>
  172. [docmaker] Replace some `<table>' tags with `<h4>' and `<div>'.
  173. * src/tools/docmaker/tohtml.py (marker_*): Use `<h4>'.
  174. (source_*): Use `<div>'.
  175. (HtmlFormatter::block_enter): s/<h4>/<h3>/.
  176. 2014-11-28 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  177. Fix compiler warning to conversion specifiers in debug messages.
  178. * src/autofit/afhints.c (af_glyph_hints_dump_points): Add length
  179. modifier to dump long integers.
  180. (af_glyph_hints_dump_segments, af_glyph_hints_dump_edges): Ditto.
  181. 2014-11-27 Werner Lemberg <wl@gnu.org>
  182. * src/tools/docmaker/tohtml.py: Use more CSS for index.
  183. 2014-11-27 Werner Lemberg <wl@gnu.org>
  184. [docmaker] Replace `name' attribute of `<a>' with `id'.
  185. * src/tools/docmaker/tohtml.py (HtmlFormatter::block_enter): Do it.
  186. 2014-11-27 Werner Lemberg <wl@gnu.org>
  187. * src/tools/docmaker/tohtml.py: Remove remaining `width' attributes.
  188. For `Index' and `TOC' links, we now simply use the `text-align' CSS
  189. property of `<td>' to enforce flush-left and flush-right,
  190. eliminating the hack with an empty, full-width `<td>' element
  191. inbetween.
  192. The change also enforces the same (smaller) size for all index and
  193. TOC links.
  194. 2014-11-27 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  195. * src/cff/cf2font.c: Include `ftcalc.h' to use FT_MSB(),
  196. cf2font.c could not find it under `make multi' build.
  197. 2014-11-27 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  198. * src/smooth/ftsmooth.c (ft_smooth_render_generic): Remove
  199. unrequired negative value check for `width' and `height'.
  200. 2014-11-27 Werner Lemberg <wl@gnu.org>
  201. * src/tools/docmaker/tohtml.py: More HTML table refactoring.
  202. Replace some `<table>' tags with `<div>' to simplify structure.
  203. Move `bgcolor' attribute to CSS.
  204. Replace most `width' attributes with CSS. The remaining instances
  205. (providing a similar effect as LaTeX's `\hfill' command) are removed
  206. in a later patch.
  207. 2014-11-27 Werner Lemberg <wl@gnu.org>
  208. * src/tools/docmaker/tohtml.py: Replace <font> with CSS.
  209. 2014-11-27 Werner Lemberg <wl@gnu.org>
  210. * src/tools/docmaker/tohtml.py: Center <table> with CSS.
  211. 2014-11-27 Werner Lemberg <wl@gnu.org>
  212. * src/tools/docmaker/tohtml.py: Replace `<center>' with `<div>'.
  213. 2014-11-27 Werner Lemberg <wl@gnu.org>
  214. * src/tools/docmaker/tohtml.py: Remove redundant `<center>' tags.
  215. This starts a series of commits into the direction of generating
  216. valid HTML 5 code, especially using much more CSS.
  217. 2014-11-27 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  218. Prevent too negative values (< FT_INT_MIN) in bitmap metrics,
  219. suggested by Alexei.
  220. * src/pfr/pfrsbit.c (pfr_slot_load_bitmap): Prevent too
  221. negative values in `xpos' and `ypos + ysize'.
  222. * src/smooth/ftsmooth.c (ft_smooth_render_generic): Prevent
  223. too negative values in `x_left' and `y_top'. Either negative
  224. values in `width' and `height' are checked.
  225. 2014-11-27 Werner Lemberg <wl@gnu.org>
  226. [docmaker] Produce better HTML code.
  227. * src/tools/docmaker/tohtml.py: Always use double quotes for
  228. attribute values.
  229. (source_footer): Close `td' and `tr' groups.
  230. 2014-11-27 Werner Lemberg <wl@gnu.org>
  231. Use better way to disable creation of .pyc files for `make refdoc'.
  232. Python 2.6 was released in 2008...
  233. * builds/freetype.mk (refdoc): Use python's `-B' option.
  234. * builds/detect.mk (std_setup, dos_setup): Mention required python
  235. version for `refdoc' target.
  236. 2014-11-27 Werner Lemberg <wl@gnu.org>
  237. * src/tools/docmaker/sources.py (re_bold, re_italic): Use
  238. non-grouping parentheses.
  239. * src/tools/docmaker/tohtml.py (HtmlFormatter::make_html_word):
  240. Updated.
  241. 2014-11-27 Werner Lemberg <wl@gnu.org>
  242. * src/base/ftobjs.c (FT_Get_Glyph_Name): Fix compiler warning.
  243. Introdruced in previous change. Reported by Alexei.
  244. 2014-11-26 Werner Lemberg <wl@gnu.org>
  245. * src/*: Add checks for parameters of API functions where missing.
  246. `API functions' are functions tagged with `FT_EXPORT_DEF'.
  247. Besides trivial fixes, the following changes are included, too.
  248. * src/base/ftbdf.c (FT_Get_BDF_Charset_ID, FT_Get_BDF_Property): Set
  249. error code if no service is available.
  250. * src/base/ftinit.c (FT_Done_FreeType): Change return value for
  251. invalid `library' parameter to `Invalid_Library_Handle'.
  252. * src/base/ftobjs.c (FT_New_Size): Change return value for invalid
  253. `asize' parameter to `Invalid_Argument'.
  254. * src/base/ftoutln.c (FT_Outline_Copy): Change return value for
  255. invalid `source' and `target' parameters to `Invalid_Outline'.
  256. (FT_Outline_Done_Internal): Change return value for invalid
  257. `outline' parameter to `Invalid_Outline'.
  258. 2014-11-26 Werner Lemberg <wl@gnu.org>
  259. * src/cache/ftcbasic.c: Use single calls to `FT_TRACE'.
  260. 2014-11-26 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  261. * src/base/ftobj.c (Mac_Read_POST_Resource): Additional
  262. overflow check in the summation of POST fragment lengths,
  263. suggested by Mateusz Jurczyk <mjurczyk@google.com>.
  264. 2014-11-26 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  265. * src/base/ftobjs.c (Mac_Read_POST_Resource): Insert comments
  266. and fold too long tracing messages.
  267. 2014-11-26 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  268. Fix Savannah bug #43540.
  269. * src/base/ftmac.c (parse_fond): Prevent a buffer overrun
  270. caused by a font including too many (> 63) strings to store
  271. names[] table.
  272. 2014-11-26 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  273. * src/base/ftobjs.c (Mac_Read_POST_Resource): Use unsigned long
  274. variables to read the lengths in POST fragments. Suggested by
  275. Mateusz Jurczyk <mjurczyk@google.com>.
  276. 2014-11-26 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  277. Fix Savannah bug #43539.
  278. * src/base/ftobjs.c (Mac_Read_POST_Resource): Fix integer overflow
  279. by a broken POST table in resource-fork.
  280. 2014-11-26 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  281. Fix Savannah bug #43538.
  282. * src/base/ftobjs.c (Mac_Read_POST_Resource): Fix integer overflow
  283. by a broken POST table in resource-fork.
  284. 2014-11-26 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  285. * src/base/ftobjs.c (Mac_Read_POST_Resource): Avoid memory leak
  286. by a broken POST table in resource-fork. Return after freeing
  287. the buffered POST table when it is found to be broken.
  288. 2014-11-25 Werner Lemberg <wl@gnu.org>
  289. */*: s/Invalid_Argument/Invalid_Size_Handle/ where appropriate.
  290. 2014-11-25 Werner Lemberg <wl@gnu.org>
  291. */*: s/Invalid_Argument/Invalid_Stream_Handle/ where appropriate.
  292. 2014-11-25 Werner Lemberg <wl@gnu.org>
  293. */*: s/Invalid_Argument/Invalid_Library_Handle/ where appropriate.
  294. 2014-11-25 Werner Lemberg <wl@gnu.org>
  295. */*: s/Invalid_Argument/Invalid_Outline/ where appropriate.
  296. 2014-11-25 Werner Lemberg <wl@gnu.org>
  297. */*: s/Invalid_Argument/Invalid_Face_Handle/ where appropriate.
  298. 2014-11-24 Werner Lemberg <wl@gnu.org>
  299. [Savannah bug #43682] Adjust some renderer callbacks.
  300. * src/raster/ftraster.c (ft_black_set_mode): Change return type to
  301. `int' to stay in sync with `FT_Renderer_SetModeFunc' prototype.
  302. * src/smooth/ftgrays.c (gray_raster_set_mode): New dummy function
  303. for orthogonality.
  304. (ft_grays_raster): Use it.
  305. 2014-11-25 Werner Lemberg <wl@gnu.org>
  306. [Savannah bug #43682] Properly handle missing return errors.
  307. The functions in this patch *do* return non-trivial errors that must
  308. be taken care of.
  309. * src/autofit/afloader.c (af_loader_load_g), src/base/ftobjs.c
  310. (FT_Render_Glyph_Internal), src/base/ftoutln.c (FT_Outline_Render),
  311. src/cff/cffgload.c (cff_decoder_parse_charstrings) <cff_op_endchar>,
  312. src/psaux/psobjs.c (ps_parser_load_field_table), src/psaux/t1decode
  313. (t1_decoder_parse_charstrings) <op_endchar>, src/truetype/ttgload.c
  314. (load_truetype_glyph <subglyph loop>, tt_loader_init,
  315. TT_Load_Glyph), src/truetype/ttgxvar.c (TT_Set_MM_Blend),
  316. src/truetype/ttobjs.c (tt_size_run_fpgm, tt_size_run_prep): Do it.
  317. 2014-11-25 Werner Lemberg <wl@gnu.org>
  318. [Savannah bug #43682] Add/remove `void' casts to some functions.
  319. We use a cast to indicate that we intentionally ignore a function's
  320. return value. However, this doesn't apply to API functions where
  321. errors can only happen for trivially invalid input.
  322. * src/base/ftstroke.c (FT_Glyph_Stroke, FT_Glyph_StrokeBorder),
  323. src/base/ftsynth.c (FT_GlyphSlot_Embolden), src/cff/cffgload.c
  324. (cff_slot_load), src/pfr/pfrdrivr.c (pfr_get_kerning),
  325. src/type1/t1load.c (parse_encoding), src/type42/t42parse.c
  326. (t42_parse_encoding): Do it.
  327. 2014-11-25 Werner Lemberg <wl@gnu.org>
  328. [Savannah bug #43682] Change some signatures to `void' return type.
  329. * include/internal/pshints.h (PSH_Globals_SetScaleFunc),
  330. include/internal/sfnt.h (TT_Get_Metrics_Func),
  331. src/pshinter/pshglob.c (psh_globals_set_scale),
  332. src/pshinter/pshrec.c (ps_hints_init), src/sfnt/ttmtx.c
  333. (tt_face_get_metrics), src/truetype/ttinterp.c (TT_Goto_CodeRange,
  334. TT_Set_CodeRange, TT_Clear_CodeRange, TT_Done_Context,
  335. TT_Save_Context): Do it.
  336. * src/pshinter/pshglob.h, src/pshinter/pshrec.h, src/sfnt/ttmtx.h,
  337. src/truetype/ttgload.c (TT_Hint_Glyph), src/truetype/ttinterp.c
  338. (TT_Run_Context), src/truetype/ttinterp.h, src/truetype/ttobjs.c
  339. (tt_size_run_fpgm, tt_size_run_prep): Updated.
  340. 2014-11-24 Werner Lemberg <wl@gnu.org>
  341. Remove all code related to FT_MAX_CHARMAP_CACHEABLE.
  342. This is no longer used.
  343. * src/base/ftobjs.c, src/cache/ftccmap.c, src/cff/cffobjs.c,
  344. src/sfnt/ttcmap.c: Do it.
  345. 2014-11-24 Werner Lemberg <wl@gnu.org>
  346. [sfnt] Fix Savannah bug #43680.
  347. This adds an additional constraint to make the fix from 2013-01-25
  348. really work.
  349. * src/sfnt/ttsbit.c (tt_sbit_decoder_load_image) <index_format==4>:
  350. Check `p' before `num_glyphs'.
  351. 2014-11-24 Werner Lemberg <wl@gnu.org>
  352. [truetype] Fix Savannah bug #43679.
  353. * src/truetype/ttpload.c (tt_face_load_hdmx): Check minimum size of
  354. `record_size'.
  355. 2014-11-24 Jarkko Pöyry <jarkko.poyry@gmail.com>
  356. [cff, pfr, psaux, winfonts] Fix Savannah bug #43676.
  357. Don't cast cmap init function pointers to an incompatible type.
  358. Without this patch, the number of parameters between declaration and
  359. the real signature differs. Calling such a function results in
  360. undefined behavior.
  361. ISO/IEC 9899:TC3 (Committee Draft September 7, 2007)
  362. 6.5.2.2 Function calls
  363. 9 If the function is defined with a type that is not
  364. compatible with the type (of the expression) pointed to by
  365. the expression that denotes the called function, the
  366. behavior is undefined.
  367. On certain platforms (c -> js with emscripten) this causes
  368. termination of execution or invalid calls because in the emscripten
  369. implementation, function pointers of different types are stored in
  370. different pointer arrays. Incorrect pointer type here results in
  371. indexing of an incorrect array.
  372. * src/cff/cffcmap.c (cff_cmap_encoding_init, cff_cmap_unicode_init),
  373. src/pfr/pfrcmap.c (pfr_cmap_init), src/psaux/t1cmap.c
  374. t1_cmap_standard_init, t1_cmap_expert_init, t1_cmap_custom_init,
  375. t1_cmap_unicode_init), src/winfonts/winfnt.c (fnt_cmap_init): Fix
  376. signature.
  377. 2014-11-24 Werner Lemberg <wl@gnu.org>
  378. [sfnt] Fix Savannah bug #43672.
  379. * src/sfnt/ttkern.c (tt_face_load_kern): Use correct value for
  380. minimum table length test.
  381. 2014-11-24 Werner Lemberg <wl@gnu.org>
  382. [type1, type42] Another fix for Savannah bug #43655.
  383. * src/type1/t1load.c (parse_charstrings), src/type42/t42parse.c
  384. (t42_parse_charstrings): Add another boundary testing.
  385. 2014-11-24 Werner Lemberg <wl@gnu.org>
  386. [docmaker] Formatting, copyright, improved documentation.
  387. * src/tools/docmaker/*: No code changes besides trivial
  388. modifications.
  389. 2014-11-22 Werner Lemberg <wl@gnu.org>
  390. [bdf] Fix Savannah bug #43660.
  391. * src/bdf/bdflib.c (_bdf_parse_glyphs) <"ENDFONT">: Check
  392. `_BDF_GLYPH_BITS'.
  393. 2014-11-22 Werner Lemberg <wl@gnu.org>
  394. [type42] Allow only embedded TrueType fonts.
  395. This is a follow-up to Savannah bug #43659.
  396. * src/type42/t42objs.c (T42_Face_Init): Exclusively use the
  397. `truetype' font driver for loading the font contained in the `sfnts'
  398. array.
  399. 2014-11-22 Werner Lemberg <wl@gnu.org>
  400. [type42] Fix Savannah bug #43659.
  401. * src/type42/t42objs.c (T42_Open_Face): Initialize `face->ttf_size'.
  402. * src/type42/t42parse.c (t42_parse_sfnts): Always set
  403. `face->ttf_size' directly. This ensures a correct stream size in
  404. the call to `FT_Open_Face', which follows after parsing, even for
  405. buggy input data.
  406. Fix error messages.
  407. 2014-11-22 Werner Lemberg <wl@gnu.org>
  408. [cff] Fix Savannah bug #43658.
  409. * src/cff/cf2ft.c (cf2_builder_lineTo, cf2_builder_cubeTo): Handle
  410. return values of point allocation routines.
  411. 2014-11-22 Werner Lemberg <wl@gnu.org>
  412. [sfnt] Fix Savannah bug #43656.
  413. * src/sfnt/ttcmap.c (tt_cmap4_validate): Fix order of validity
  414. tests.
  415. 2014-11-21 Werner Lemberg <wl@gnu.org>
  416. [type1, type42] Fix Savannah bug #43655.
  417. * src/type1/t1load.c (parse_charstrings), src/type42/t42parse.c
  418. (t42_parse_charstrings): Fix boundary testing.
  419. 2014-11-21 Werner Lemberg <wl@gnu.org>
  420. * src/pcf/pcfread.c (pcf_get_metrics): Sanitize invalid metrics.
  421. 2014-11-21 Werner Lemberg <wl@gnu.org>
  422. [ftlcdfil] Obey flow direction.
  423. * src/base/ftlcdfil.c (_ft_lcd_filter_fir, _ft_lcd_filter_legacy):
  424. Handle `up' flow.
  425. 2014-11-21 Werner Lemberg <wl@gnu.org>
  426. * src/base/ftbitmap.c (FT_Bitmap_Convert): Improve.
  427. This commit completes argument checks and adds support for different
  428. flow directions.
  429. 2014-11-21 Werner Lemberg <wl@gnu.org>
  430. * src/base/ftbitmap.c (FT_Bitmap_Copy): Improve.
  431. This commit adds argument checks and support for different flow
  432. directions.
  433. 2014-11-20 Werner Lemberg <wl@gnu.org>
  434. * src/base/ftbitmap.c (FT_Bitmap_New): Check argument.
  435. 2014-11-19 Werner Lemberg <wl@gnu.org>
  436. Change some fields in `FT_Bitmap' to unsigned type.
  437. This doesn't break ABI.
  438. * include/ftimage.h (FT_Bitmap): Make `rows', `width', `num_grays',
  439. `pixel_mode', and `palette_mode' unsigned types.
  440. * src/base/ftbitmap.c: Updated.
  441. (FT_Bitmap_Copy): Fix casts.
  442. * src/cache/ftcsbits.c, src/raster/ftraster.c, src/sfnt/pngshim.c:
  443. Updated.
  444. 2014-11-19 Werner Lemberg <wl@gnu.org>
  445. Make `FT_Bitmap_Convert' correctly handle negative `pitch' values.
  446. * src/base/ftbitmap.c (FT_Bitmap_Convert): Always use positive value
  447. for the pitch while copying data.
  448. Correctly set pitch sign in target bitmap.
  449. 2014-11-19 Werner Lemberg <wl@gnu.org>
  450. Minor code improvement in `FT_Bitmap_Embolden'.
  451. * src/base/ftbitmap.c (FT_Bitmap_Embolden) <FT_PIXEL_MODE_GRAY[24]>:
  452. Fix thinko.
  453. 2014-11-19 Alexei Podtelezhnikov <apodtele@gmail.com>
  454. * src/base/fttrigon.c: Use dedicated `FT_Angle' for arctan table.
  455. 2014-11-19 Behdad Esfahbod <behdad@behdad.org>
  456. Avoid compiler warnings on x86-64 for `FT_MulFix'.
  457. `FT_MulFix' takes `FT_Long' parameters as defined in `freetype.h',
  458. but several inline implementations of it in `ftcalc.h' take
  459. `FT_Int32' arguments. This is causing compiler warnings on x86-64:
  460. If parameters of type `FT_Fixed' (= `FT_Long') are passed to the
  461. inline implementation of this function, integer values are truncated
  462. from 64bit to 32bit.
  463. * include/internal/ftcalc.h (FT_MulFix) [FT_MULFIX_ASSEMBLER]: Add
  464. casts.
  465. 2014-11-15 Werner Lemberg <wl@gnu.org>
  466. [sfnt] Fix Savannah bug #43597.
  467. * src/sfnt/pngshim.c (Load_SBit_Png): Protect against too large
  468. bitmaps.
  469. 2014-11-12 Werner Lemberg <wl@gnu.org>
  470. [sfnt] Fix Savannah bug #43591.
  471. * src/sfnt/ttsbit.c (tt_sbit_decoder_init): Protect against addition
  472. and multiplication overflow.
  473. 2014-11-12 Werner Lemberg <wl@gnu.org>
  474. [sfnt] Fix Savannah bug #43590.
  475. * src/sfnt/ttload.c (check_table_dir, tt_face_load_font_dir):
  476. Protect against addition overflow.
  477. 2014-11-12 Werner Lemberg <wl@gnu.org>
  478. [sfnt] Fix Savannah bug #43589.
  479. * src/sfnt/sfobjs.c (woff_open_font): Protect against addition
  480. overflow.
  481. 2014-11-12 Werner Lemberg <wl@gnu.org>
  482. [sfnt] Fix Savannah bug #43588.
  483. * src/sfnt/ttcmap.c (tt_cmap8_validate, tt_cmap10_validate,
  484. tt_cmap12_validate, tt_cmap13_validate, tt_cmap14_validate): Protect
  485. against overflow in additions and multiplications.
  486. 2014-11-10 Alexei Podtelezhnikov <apodtele@gmail.com>
  487. [base] CORDIC improvements.
  488. The scaling between the hypotenuse and its CORDIC approximation is
  489. based on regression analysis. The smaller padding for `theta' is
  490. justifed by its maximum error of less than 6.
  491. * src/base/fttrigon.c (ft_trig_downscale): Borrow code from
  492. ./ftcalc.c (ft_multo64), change linear intercept.
  493. (ft_trig_pseudo_polarize): Decrease `theta' padding.
  494. 2014-11-09 Werner Lemberg <wl@gnu.org>
  495. * src/base/ftstroke.c (ft_stroker_inside): Fix border intersections.
  496. One more place to check whether `radius' is zero.
  497. Problem reported by Marco Wertz <marco.wertz@gmx.de>.
  498. 2014-11-07 Werner Lemberg <wl@gnu.org>
  499. [bdf] Fix Savannah bug #43535.
  500. * src/bdf/bdflib.c (_bdf_strncmp): New macro that checks one
  501. character more than `strncmp'.
  502. s/ft_strncmp/_bdf_strncmp/ everywhere.
  503. 2014-11-06 Werner Lemberg <wl@gnu.org>
  504. [pcf] Fix Savannah bug #43548.
  505. * src/pcf/pcfread.c (pcf_get_encodings): Add sanity checks for row
  506. and column values.
  507. 2014-11-06 Werner Lemberg <wl@gnu.org>
  508. [pcf] Fix Savannah bug #43547.
  509. * src/pcf/pcfread.c (pcf_read_TOC): Check `size' and `offset'
  510. values.
  511. 2014-11-06 Werner Lemberg <wl@gnu.org>
  512. * src/pcf/pcfread.c (pcf_read_TOC): Avoid memory leak.
  513. 2014-11-03 Infinality <infinality@infinality.net>
  514. * src/truetype/ttsubpix.c (COMPATIBILITY_MODE_Rules): Updated.
  515. The previous commit deteriorates rendering of DejaVu and similar
  516. fonts; this gets compensated with this rule.
  517. 2014-11-03 Werner Lemberg <wl@gnu.org>
  518. * src/truetype/ttinterp.c (Ins_DELTAP): Fix subpixel hinting.
  519. Before this patch, it was impossible to ever call DELTAP[123] in
  520. subpixel hinting mode as described in the ClearType whitepaper; it
  521. only worked if in `compatibility mode'. However, compatibility mode
  522. essentially disables SHPIX, completely ruining hinting of
  523. ttfautohint output, for example.
  524. We now follow the whitepaper more closely so that DELTAP[123]
  525. instructions for touched points in the non-subpixel direction are
  526. executed.
  527. 2014-10-31 Alexei Podtelezhnikov <apodtele@gmail.com>
  528. [smooth] Improve code readability.
  529. * src/smooth/ftsmooth.c (ft_smooth_render_generic): Rearrange code.
  530. 2014-10-31 Alexei Podtelezhnikov <apodtele@gmail.com>
  531. [smooth] Reduce outline translations during rendering.
  532. * src/smooth/ftsmooth.c (ft_smooth_render_generic): Translate origin
  533. virtually by modifying cbox, actually translate outline if cumulative
  534. shift is not zero.
  535. 2014-10-30 Alexei Podtelezhnikov <apodtele@gmail.com>
  536. [smooth] Fix Savannah bug #35604 (cont'd).
  537. * src/smooth/ftsmooth.c (ft_smooth_render_generic): Remove checks and
  538. casts that became unnecessary after the variable type upgrades.
  539. 2014-10-29 Alexei Podtelezhnikov <apodtele@gmail.com>
  540. [smooth] Improve code readability.
  541. * src/smooth/ftsmooth.c (ft_smooth_render_generic): Rearrange code.
  542. 2014-10-29 Alexei Podtelezhnikov <apodtele@gmail.com>
  543. Unify hypotenuse approximations.
  544. * include/internal/ftcalc.h (FT_HYPOT): Move macro from here...
  545. * include/internal/ftobjs.h: ... to here, next to required `FT_ABS'.
  546. * src/smooth/ftgrays.c (gray_render_cubic): Use it here.
  547. 2014-10-25 Werner Lemberg <wl@gnu.org>
  548. [cff] Test valid darkening parameter macros in `ftoption.h'.
  549. We no longer need an otherwise unused typedef that can cause a gcc
  550. warning.
  551. Problem reported by Alexei.
  552. * src/cff/cffobjs.c (cff_driver_init): Use
  553. `CFF_CONFIG_OPTION_DARKENING_PARAMETER_XXX' macros directly.
  554. (SET_DARKENING_PARAMETERS): Removed.
  555. Compile time tests are now ...
  556. * devel/ftoption.h, include/config/ftoption.h: ... here.
  557. 2014-10-25 Alexei Podtelezhnikov <apodtele@gmail.com>
  558. Improve flat corner definition.
  559. * include/internal/ftcalc.h (FT_HYPOT): Macro to approximate Euclidean
  560. distance with the alpha max plus beta min algorithm.
  561. * src/base/ftcalc.c (ft_corner_is_flat): Use it instead of Taxicab
  562. metric.
  563. 2014-10-23 David Weiß <David.Weiss@ptvgroup.com>
  564. [build] Improve property file for vc2010.
  565. User-defined properties should be empty by default to prevent linker
  566. failures.
  567. * builds/windows/vc2010/freetype.user.props,
  568. builds/windows/vc2010/freetype.vcxproj:
  569. s/OptionsDirectory/UserOptionDirectory/.
  570. Comment out all user options.
  571. 2014-10-23 Werner Lemberg <wl@gnu.org>
  572. [cff] Work around bug in preprocessor of MSVC 2010.
  573. We have been hit by
  574. https://connect.microsoft.com/VisualStudio/feedback/details/718976/msvc-pr
  575. * devel/ftoption.h, include/config/ftoption.h: Replace
  576. `CFF_CONFIG_OPTION_DARKENING_PARAMETERS' with eight macros
  577. `CFF_CONFIG_OPTION_DARKENING_PARAMETER_{X,Y}{1,2,3,4}'.
  578. * src/cff/cffobjs.c (SET_DARKENING_PARAMETERS): Removed. We no
  579. longer need double expansion.
  580. (SET_DARKENING_PARAMETERS_0): Renamed to ...
  581. (SET_DARKENING_PARAMETERS): ... this.
  582. Update call.
  583. 2014-10-20 Werner Lemberg <wl@gnu.org>
  584. [sbit] Minor fixes.
  585. * src/sfnt/ttsbit.c (tt_face_load_sbit) [TT_SBIT_TABLE_TYPE_SBIX]:
  586. Accept overlay format also, but emit warning message in that case.
  587. (tt_sbit_decoder_load_metrics): Add missing newline to error
  588. message.
  589. (tt_sbit_load_sbix_image): Add `rgbl' graphic type (as used on iOS
  590. 7.1) to the list of unsupported formats.
  591. 2014-10-19 Alexei Podtelezhnikov <apodtele@gmail.com>
  592. [truetype] Clean up bytecode rounding.
  593. Zero distance does not have to be treated specially if you follow
  594. specifications and check the sign as the very last step of rounding.
  595. * src/truetype/ttinterp.c (Round_None, Round_To_Grid,
  596. Round_Down_To_Grid, Round_Up_To_Grid, Round_To_Double_Grid): Use
  597. macros when available, do not check for non-zero distance.
  598. (Round_To_Half_Grid, Round_Super, Round_Super_45): Ditto, return phase
  599. if sign changed.
  600. 2014-10-18 Alexei Podtelezhnikov <apodtele@gmail.com>
  601. [truetype] Unwrap engine compensation settings.
  602. * src/truetype/ttobjs.c (tt_size_init_bytecode): Updated.
  603. 2014-10-18 David Weiß <David.Weiss@ptvgroup.com>
  604. [build] Add property file to vc2010 project.
  605. This simplifies custom build configurations, especially for
  606. automated build environments.
  607. * builds/windows/vc2010/freetype.user.props: New configuration file.
  608. * builds/windows/vc2010/freetype.vcxproj: Include
  609. `freetype.user.props' and use its data fields.
  610. * builds/windows/vc2010/index.html: Updated.
  611. 2014-10-18 Werner Lemberg <wl@gnu.org>
  612. [autofit] Add blue-zone support for Telugu.
  613. This essentially moves the Telugu script from the `Indic' hinter to
  614. the `Latin' hinter.
  615. Note that this is a first shot and quite certainly needs
  616. refinements.
  617. * src/autofit/afblue.dat: Add blue zone data for Telugu.
  618. * src/autofit/afblue.c, src/autofit/afblue.h: Regenerated.
  619. * src/autofit/afscript.h: Add Telugu standard characters and move
  620. data out of AF_CONFIG_OPTION_INDIC block.
  621. * src/autofit/afranges.c: Move Telugu data out of
  622. AF_CONFIG_OPTION_INDIC block.
  623. * src/autofit/afstyles.h: Update Telugu data; in particular, use
  624. AF_WRITING_SYSTEM_LATIN.
  625. 2014-10-18 David Wimsey <david@wimsey.us>
  626. [cmake] Add iOS build support.
  627. From Savannah patch #8497.
  628. * builds/cmake/iOS.cmake: New file. Universal binaries are built
  629. with both 32 and 64 bit arm architectures.
  630. * CMakeLists.txt (IOS_PLATFORM): New variable for running the iOS
  631. toolchain. Possible values are `OS' to build on iOS, or
  632. `SIMULATOR' to build on APPLE.
  633. 2014-10-16 Behdad Esfahbod <behdad@behdad.org>
  634. Werner Lemberg <wl@gnu.org>
  635. [cff] Add `CFF_CONFIG_OPTION_DARKENING_PARAMETERS' config macro.
  636. * devel/ftoption.h, include/config/ftoption.h
  637. (CFF_CONFIG_OPTION_DARKENING_PARAMETERS): New macro.
  638. * src/cff/cffobjs.c (SET_DARKENING_PARAMETERS,
  639. SET_DARKENING_PARAMETERS_0): New macros.
  640. (cff_driver_init): Use new macros.
  641. 2014-10-14 Alexei Podtelezhnikov <apodtele@gmail.com>
  642. [truetype] Limit delta shift range.
  643. The valid range for delta shift is zero through six. Negative values
  644. are invalid according to
  645. https://developer.apple.com/fonts/TrueType-Reference-Manual/RM04/Chap4.html#delta%20shift
  646. * src/truetype/ttobjs.h (delta_shift, delta_base): Make unsigned.
  647. * src/truetype/ttinterp.h (DO_SDS): Throw an error if `delta_shift'
  648. is out of range.
  649. (Ins_DELTAP, Ins_DELTAC): Optimize for valid `delta_shift'.
  650. 2014-10-16 Werner Lemberg <wl@gnu.org>
  651. A better fix for Savannah bug #43392.
  652. Suggested by Doug Felt <dougfelt@gmail.com>.
  653. * src/sfnt/ttsbit.c (tt_sbit_decoder_load_metrics): Set
  654. `vertAdvance' to zero...
  655. * src/truetype/ttgload.c (TT_Load_Glyph): ... and set here a default
  656. value for `vertAdvance' based on `linearVertAdvance' in case
  657. `vertAdvance' is zero. Note that the previous computed ad-hoc value
  658. for `linearVertAdvance' was apparently not tested in a real-life
  659. situation.
  660. 2014-10-14 David Weiß <David.Weiss@ptvgroup.com>
  661. [build] Better optimization settings for vc2010 solution file.
  662. * builds/windows/vc2010/freetype.sln,
  663. builds/windows/vc2010/freetype.vcxproj: Updated.
  664. 2014-10-14 Werner Lemberg <wl@gnu.org>
  665. [autofit] Adjust Devenagari character range.
  666. * src/autofit/afranges.c (af_deva_uniranges): Omit characters that
  667. are common to all other Indic scripts.
  668. 2014-10-12 Werner Lemberg <wl@gnu.org>
  669. [sfnt] Fix Savannah bug #43392.
  670. * src/sfnt/ttsbit.c (tt_sbit_decoder_load_metrics): Don't let
  671. vertical metrics uninitialized.
  672. 2014-10-11 Alexei Podtelezhnikov <apodtele@gmail.com>
  673. [base] Small bbox correction.
  674. * src/base/ftbbox.c (FT_Outline_Get_BBox): Start from nonsense bbox
  675. instead of initial point that could be `off' in conic outlines.
  676. 2014-10-08 Alexei Podtelezhnikov <apodtele@gmail.com>
  677. [base] Fix Savannah bug #43356.
  678. * src/base/ftbbox.c (BBox_Move_To, BBox_Conic_To): Update bbox in case
  679. of implicit `to'.
  680. (BBox_Line_To): New emitter that does not update bbox.
  681. 2014-10-08 Alexei Podtelezhnikov <apodtele@gmail.com>
  682. [base] Introduce and use new macro `FT_UPDATE_BBOX'
  683. * src/base/ftbbox.c (FT_UPDATE_BBOX): New macro.
  684. (FT_Outline_Get_BBox): Use it here.
  685. 2014-10-02 Alexei Podtelezhnikov <apodtele@gmail.com>
  686. [base] Significant optimization of `ft_div64by32'
  687. We shift as many bits as we can into the high register, perform
  688. 32-bit division with modulo there, then work through the remaining
  689. bits with long division. This optimization is especially noticeable
  690. for smaller dividends that barely use the high register.
  691. * src/base/ftcalc.c (ft_div64by32): Updated.
  692. 2014-10-02 Dave Arnold <darnold@adobe.com>
  693. [cff] Fix Savannah bug #43271.
  694. * src/cff/cf2font.c (cf2_computeDarkening): Change overflow
  695. detection to use logarithms and clamp `scaledStem'.
  696. 2014-10-01 Alexei Podtelezhnikov <apodtele@gmail.com>
  697. * src/base/ftcalc.c: Remove miscellaneous type casts.
  698. 2014-10-01 Alexei Podtelezhnikov <apodtele@gmail.com>
  699. [base] Use more common `FT_MSB' implementation with masks.
  700. * src/base/ftcalc.c (FT_MSB): Updated.
  701. 2014-09-30 Alexei Podtelezhnikov <apodtele@gmail.com>
  702. [base] Clean up.
  703. * src/base/ftcalc.c (FT_MOVE_SIGN): New macro for frequently used
  704. code.
  705. 2014-09-25 Alexei Podtelezhnikov <apodtele@gmail.com>
  706. [base] Avoid unnecessary long division.
  707. This applies to `FT_MulDiv' but not to `FT_DivFix', where overflows or
  708. lack thereof are predicted accurately.
  709. * src/base/ftcalc.c (ft_div64by32): Improve readability.
  710. (FT_MulDiv, FT_MulDiv_No_Round) [!FT_LONG64]: Use straight division
  711. when multiplication stayed within 32 bits.
  712. 2014-09-24 Werner Lemberg <wl@gnu.org>
  713. [autofit] Minor clean-ups.
  714. * src/autofit/afhints.c (AF_FLAGS): Remove obsolete values.
  715. * src/autofit/afhints.c (af_glyph_hints_dump_points,
  716. af_glyph_hints_align_strong_points): Updated.
  717. * src/autofit/aflatin.c (af_latin_hints_link_segments,
  718. af_latin_hints_compute_segments), src/autofit/afcjk.c
  719. (af_cjk_hints_link_segments), src/autofit/aflatin2.c
  720. (af_latin2_hints_link_segments, af_latin2_hints_compute_segments):
  721. There are no longer fake segments since more than 10 years...
  722. 2014-09-22 Werner Lemberg <wl@gnu.org>
  723. [autofit] Minor code streamlining.
  724. * src/autofit/afhints.c (af_axis_hints_new_edge): Remove redundant
  725. initialization.
  726. 2014-09-19 Alexei Podtelezhnikov <apodtele@gmail.com>
  727. * src/base/ftcalc.c: Harmonize code.
  728. 2014-09-15 Alexei Podtelezhnikov <apodtele@gmail.com>
  729. [base] Tighten the overflow check in `FT_MulDiv'.
  730. * src/base/ftcalc.c (FT_MulDiv) [!FT_LONG64]: Updated.
  731. 2014-09-08 Alexei Podtelezhnikov <apodtele@gmail.com>
  732. Fix Savannah bug #43153.
  733. * src/psaux/psconv.c (PS_Conv_ToFixed): Add protection against
  734. overflow in `divider'.
  735. 2014-09-03 Alexei Podtelezhnikov <apodtele@gmail.com>
  736. [base] Tighten the overflow check in `FT_DivFix'.
  737. This fixes a 13-year old bug. The original overflow check should have
  738. been updated when rounding was introduced into this function
  739. (c2cd00443b).
  740. * src/base/ftcalc.c (FT_DivFix) [!FT_LONG64]: Updated.
  741. * include/freetype.h (FT_DivFix): Updated documentation.
  742. 2014-09-03 Alexei Podtelezhnikov <apodtele@gmail.com>
  743. [base] Tighten the overflow check in `FT_MulFix'.
  744. * src/base/ftcalc.c (FT_MulFix) [!FT_LONG64]: Updated.
  745. 2014-09-02 Alexei Podtelezhnikov <apodtele@gmail.com>
  746. [truetype] Shortcut ppem calculations for square pixels.
  747. * src/truetype/ttinterp.h (TT_ExecContextRec): New field
  748. `cur_ppem_func' with a function pointer.
  749. * src/truetype/ttinterp.c (TT_RunIns): Initialize `cur_ppem_func'
  750. depending on the pixel geometry to either...
  751. (Current_Ppem_Stretched): ... this for stretched pixels.
  752. (Current_Ppem): ... or this for square pixels.
  753. (DO_MPPEM, DO_MPS, Ins_DELTAP, Ins_DELTAC): Use `cur_ppem_func'.
  754. 2014-08-31 Behdad Esfahbod <behdad@behdad.org>
  755. Don't use `register' keyword. Fixes compiler warnings.
  756. * src/base/ftcalc.c (FT_Add64) [!FT_LONG64]: Do it.
  757. * src/gzip/inftrees.c (huft_build): Ditto.
  758. * src/truetype/ttinterp.c (TT_MulFix14_arm): Ditto.
  759. 2014-08-24 Alexei Podtelezhnikov <apodtele@gmail.com>
  760. [truetype] Optimize DELTAP and DELTAC.
  761. * src/truetype/ttinterp.c (Ins_DELTAP, Ins_DELTAC): Move ppem
  762. calculations outside of the loop.
  763. 2014-08-21 Alexei Podtelezhnikov <apodtele@gmail.com>
  764. Fix Savannah bug #43033.
  765. * include/config/ftconfig.h, builds/unix/ftconfig.in,
  766. builds/vms/ftconfig.h [FT_LONG64]: Do not disable the macro when
  767. 64-bit type is `long'.
  768. 2014-08-20 Alexei Podtelezhnikov <apodtele@gmail.com>
  769. [base] Small optimization of `FT_MulFix'.
  770. * src/base/ftcalc.c (FT_MulFix): Loosen up the condition for direct
  771. 32-bit calculations.
  772. 2014-08-19 Alexei Podtelezhnikov <apodtele@gmail.com>
  773. [base] Use unsigned calculation in `FT_MulDiv'.
  774. * src/base/ftcalc.c (FT_MulDiv): Updated to expand 32-bit range.
  775. 2014-08-18 Alexei Podtelezhnikov <apodtele@gmail.com>
  776. [base] Remove truncation in `FT_DivFix'.
  777. * src/base/ftcalc.c (FT_DivFix): Updated.
  778. 2014-08-14 Alexei Podtelezhnikov <apodtele@gmail.com>
  779. Minor refactoring.
  780. * src/base/ftcalc.c (FT_MulDiv, FT_MulDiv_No_Round): Updated.
  781. 2014-08-14 Alexei Podtelezhnikov <apodtele@gmail.com>
  782. Turn FT_MSB into a macro when using gcc builtins.
  783. * src/base/ftcalc.c, include/internal/ftcalc.h: Updated.
  784. 2014-08-12 Alexei Podtelezhnikov <apodtele@gmail.com>
  785. [base] Avoid undefined FT_MSB in `BBox_Cubic_Check'.
  786. * src/base/ftbbox.c (BBox_Cubic_Check): Update.
  787. (update_cubic_max): Repalce with...
  788. (cubic_peak): ... this, which now handles upscaling.
  789. 2014-08-11 Alexei Podtelezhnikov <apodtele@gmail.com>
  790. [base] Handle collapsed outlines to avoid undefined FT_MSB.
  791. * src/base/ftoutln.c (FT_Outline_Get_Orientation): Update.
  792. 2014-08-11 Alexei Podtelezhnikov <apodtele@gmail.com>
  793. [base] Restore FT_MulFix inlining.
  794. * include/freetype.h (FT_MulFix): Unconditionally defined.
  795. * src/base/ftcalc.c [FT_MULFIX_ASSEMBLER]: Move code from here...
  796. * include/internal/ftcalc.h [FT_MULFIX_ASSEMBLER]: ... to here,
  797. which conditionally replaces the function with an inline version
  798. through the macro.
  799. 2014-08-08 Alexei Podtelezhnikov <apodtele@gmail.com>
  800. * src/base/ftbitmap.c (ft_gray_for_premultiplied_srgb_bgra): Refactor.
  801. 2014-07-26 Werner Lemberg <wl@gnu.org>
  802. [cff] Fix typo.
  803. * src/cff/cf2hints.c (cf2_glyphpath_computeOffset): Use correct
  804. offsets in third quadrant.
  805. Reported by maks <maksqwe1@ukr.net>.
  806. 2014-07-17 Werner Lemberg <wl@gnu.org>
  807. Fix Savannah bug #42788.
  808. * src/pfr/pfrobjs.c: Include `ftcalc.h'.
  809. 2014-07-16 Alexei Podtelezhnikov <apodtele@gmail.com>
  810. Replace `ft_highpow2' function.
  811. * src/pfr/pfrobjs.c (pfr_face_get_kerning): Use `FT_MSB' instead of
  812. `ft_highpow2'.
  813. * src/base/ftutil.c, include/internal/ftobjs.h (ft_highpow2): Remove
  814. it.
  815. 2014-07-15 Alexei Podtelezhnikov <apodtele@gmail.com>
  816. * src/base/ftcalc.c (FT_MSB): Utilize gcc builtins.
  817. 2014-07-15 Alexei Podtelezhnikov <apodtele@gmail.com>
  818. [base] Move assembler code back in the source file.
  819. FT_MulFix assembler used to reside in ftcalc.c before f47d263f1b.
  820. * include/config/ftconfig.h, builds/unix/ftconfig.in,
  821. builds/vms/ftconfig.h [FT_MULFIX_ASSEMBLER]: Move code from here...
  822. * src/base/ftcalc.c [FT_MULFIX_ASSEMBLER]: ... to here.
  823. 2014-07-14 Alexei Podtelezhnikov <apodtele@gmail.com>
  824. [base] Further clean up color bitmap conversion.
  825. * src/base/ftbitmap.c (ft_gray_for_premultiplied_srgb_bgra): Stop
  826. using FT_MulFix and FT_DivFix since all calculations fit into 32 bits.
  827. 2014-07-13 Werner Lemberg <wl@gnu.org>
  828. [truetype] Improve handling of buggy `prep' tables.
  829. In case of an error in the `prep' table, no longer try to execute it
  830. again and again. This makes FreeType handle endless loops in buggy
  831. fonts much faster.
  832. * src/truetype/ttobjs.h (TT_SizeRec): The fields `bytecode_ready'
  833. and `cvt_ready' are now negative if not initialized yet, otherwise
  834. they indicate the error code of the last run.
  835. * src/truetype/ttobjs.c (tt_size_run_fpgm, tt_size_run_prep,
  836. tt_size_done_bytecode, tt_size_init_bytecode,
  837. tt_size_ready_bytecode, tt_size_init, tt_size_done, tt_size_reset):
  838. Updated.
  839. * src/truetype/ttgload.c (tt_loader_init): Updated.
  840. * src/truetype/ttinterp.c (TT_RunIns): Force reexecution of `fpgm'
  841. and `prep' only if we are in the `glyf' table.
  842. 2014-07-12 Werner Lemberg <wl@gnu.org>
  843. * builds/vms/ftconfig.h: Synchronize.
  844. Problem reported by Alexei.
  845. 2014-07-11 Alexei Podtelezhnikov <apodtele@gmail.com>
  846. [base] Clean up bitmap conversion.
  847. * src/base/ftbitmap.c (ft_gray_for_premultiplied_srgb_bgra): Use
  848. appropriate FT_DivFix and remove superfluous upscaling.
  849. 2014-07-04 Alexei Podtelezhnikov <apodtele@gmail.com>
  850. [base] Small optimization of the ancient code.
  851. * src/base/ftcalc.c (FT_MulDiv, FT_MulDiv_No_Round): Loosen up the
  852. condition for direct 32-bit calculations.
  853. 2014-06-27 Werner Lemberg <wl@gnu.org>
  854. Fix Apple standard glyph names.
  855. * src/sfnt/ttpost.c (tt_post_default_names): Synchronize with
  856. `tools/glnames.py'
  857. Problem reported by Adam Twardoch <adam@fontlab.com>.
  858. 2014-06-17 Werner Lemberg <wl@gnu.org>
  859. Partially revert commit from 2014-06-13.
  860. * src/autofit/aflatin.c (af_latin_metrics_init_blues): Move
  861. declaration of `p_first' and `p_last' out of the loop.
  862. 2014-06-17 Werner Lemberg <wl@gnu.org>
  863. * builds/unix/freetype2.m4: s/AC_PATH_PROG/AC_PATH_TOOL/.
  864. This simplifies cross-compiling.
  865. 2014-06-13 Werner Lemberg <wl@gnu.org>
  866. Fix more compiler warnings.
  867. Reported by Wojciech Mamrak <wmamrak@gmail.com>.
  868. * src/autofit/afglobal.c (af_face_globals_compute_style_coverage):
  869. Make integer constant unsigned.
  870. * src/sfnt/ttsbit.c (tt_face_load_strike_metrics)
  871. <TT_SBIT_TABLE_TYPE_SBIX>: Fix types.
  872. (tt_sbit_decoder_load_compound, tt_face_load_sbix_image): Add proper
  873. casts.
  874. 2014-06-13 Werner Lemberg <wl@gnu.org>
  875. Fix compiler warnings.
  876. Reported by Wojciech Mamrak <wmamrak@gmail.com>.
  877. * src/autofit/afglobal.c (af_face_globals_compute_style_coverage),
  878. src/autofit/afmodule.c (af_property_set): Fix `signed' vs.
  879. `unsigned' issues.
  880. * src/autofit/aflatin.c (af_latin_metrics_init_blues): Make compiler
  881. happy.
  882. * src/base/ftlcdfil.c (_ft_lcd_filter_fir): Use only four elements
  883. for `fir'.
  884. Fix `signed' vs. `unsigned' issues.
  885. * src/sfnt/sfobjs.c (WRITE_BYTE): Removed, unused.
  886. (WRITE_USHORT, WRITE_ULONG): Add proper casts.
  887. * src/truetype/ttgload.c (TT_Get_VMetrics): Add proper casts.
  888. * src/truetype/ttinterp.c (Ins_DELTAP): Add proper casts for `B1'
  889. and `B2'.
  890. 2014-05-16 Alexey Petruchik <alexey.petruchik@gmail.com>
  891. [cmake] Add option to build OS X framework.
  892. * CMakeLists.txt: Update accordingly.
  893. * builds/mac/freetype-Info.plist: New file.
  894. 2014-05-13 Pavel Koshevoy <pkoshevoy@gmail.com>
  895. * CMakeLists.txt (BASE_SRCS): Add missing `ftbdf.c'.
  896. 2014-05-11 Werner Lemberg <wl@gnu.org>
  897. [autofit] Fix variable initializations.
  898. * src/autofit/afhints.c (af_glyph_hints_reload): Assign default
  899. values to `in_dir' and `out_dir' for all points.
  900. 2014-05-11 Werner Lemberg <wl@gnu.org>
  901. [autofit] Fix crash with font `CabinSketch-Bold.ttf'.
  902. Problem reported by Ralf S. Engelschall <rse@engelschall.com>.
  903. * src/autofit/afhints.c (af_glyph_hints_reload): Fix threshold for
  904. finding first non-near point.
  905. Properly initialize non-near point deltas.
  906. 2014-05-01 Werner Lemberg <wl@gnu.org>
  907. [autofit] Add blue-zone support for Devanagari.
  908. This essentially moves the Devanagari script from the `Indic' hinter
  909. to the `Latin' hinter. Thanks to Girish Dalvi
  910. <girish.dalvi@gmail.com> for guidance with blue zone characters!
  911. * src/autofit/afblue.dat: Add blue zone data for Devanagari.
  912. * src/autofit/afblue.c, src/autofit/afblue.h: Regenerated.
  913. * src/autofit/afscript.h: Add Devanagari standard characters and
  914. move data out of AF_CONFIG_OPTION_INDIC block.
  915. * src/autofit/afranges.c: Move Devanagari data out of
  916. AF_CONFIG_OPTION_INDIC block.
  917. Move U+20B9, (new) Rupee sign, from Latin to Devanagari.
  918. * src/autofit/afstyles.h: Update Devanagari data; in particular, use
  919. AF_WRITING_SYSTEM_LATIN.
  920. 2014-05-01 Werner Lemberg <wl@gnu.org>
  921. [autofit] Fix handling of neutral blue zones in stems.
  922. * src/autofit/afhints.h (AF_Edge_Flags): New value
  923. `AF_EDGE_NEUTRAL'.
  924. * src/autofit/aflatin.c (af_latin_hints_compute_blue_edges): Trace
  925. neutral blue zones with AF_EDGE_NEUTRAL.
  926. (af_latin_hint_edges): Skip neutral blue zones if necessary.
  927. 2014-04-28 Werner Lemberg <wl@gnu.org>
  928. [autofit] Introduce neutral blue zones to the latin module.
  929. Such blue zones match either the top or the bottom of a contour. We
  930. need them for scripts where accent-like elements directly touch the
  931. base character (for example, some vowel signs in Devanagari, cf.
  932. U+0913 or U+0914).
  933. * src/autofit/afblue.hin (AF_BLUE_PROPERTY_LATIN_NEUTRAL): New
  934. property.
  935. * src/autofit/afblue.h: Regenerated.
  936. * src/autofit/aflatin.h (AF_LATIN_IS_NEUTRAL_BLUE): New macro.
  937. (AF_LATIN_BLUE_NEUTRAL): New enumeration value.
  938. * src/autofit/aflatin.c (af_latin_metrics_init_blues,
  939. af_latin_hints_compute_blue_edges): Handle neutral blue zones.
  940. 2014-04-25 Werner Lemberg <wl@gnu.org>
  941. * src/autofit/hbshim.c: Partially revert commit from 2014-04-17.
  942. Using input glyph coverage data is simply wrong.
  943. Problem reported by Nikolaus Waxweiler <madigens@gmail.com> and
  944. Mantas Mikulėnas <grawity@gmail.com>.
  945. 2014-04-23 Werner Lemberg <wl@gnu.org>
  946. * src/raster/ftraster.c (Vertical_Sweep_Span): Use drop-out mode.
  947. This spot has been missed while introducing support for various
  948. drop-out modes years ago (including no drop-out mode, which this
  949. commit fixes).
  950. Problem reported by Patrick Thomas <pthomas505@gmail.com>.
  951. 2014-04-22 Werner Lemberg <wl@gnu.org>
  952. * src/sfnt/pngshim.c (error_callback): s/longjmp/ft_longjmp/.
  953. 2014-04-20 Werner Lemberg <wl@gnu.org>
  954. [autofit] Fix Savannah bug #42148.
  955. The adaptation of the cjk auto-hinter module to blue stringsets in
  956. 2013-08-25 had three severe bugs. Mea culpa.
  957. 1. Contrary to the latin auto-hinter, characters for reference and
  958. overshoot values of a blue zone are specified separately. Due to
  959. the screwed-up change it didn't work at all.
  960. 2. A boolean comparison was erroneously replaced with a cast,
  961. causing invalid results with the `^' operator later on. The
  962. visual artifact caused by this problem is the topic of the bug
  963. report.
  964. 3. Two flag values were inverted, causing incorrect assignment of
  965. reference and overshoot values.
  966. * src/autofit/afblue.dat: Fix CJK bluestrings, introducing a new
  967. syntax to have both reference and overshoot characters in a single
  968. string. This is error #1.
  969. Add extensive comments.
  970. * src/autofit/afblue.hin (AF_BLUE_PROPERTY_CJK_FILL): Removed, no
  971. longer used.
  972. (AF_BLUE_PROPERTY_CJK_TOP, AF_BLUE_PROPERTY_CJK_HORIZ): Fix values.
  973. This is error #3.
  974. * src/autofit/afblue.c, src/autofit/afblue.h: Regenerated.
  975. * src/autofit/afcjk.c (af_cjk_metrics_init_blues): Correct error #1.
  976. Use character `|' to separate characters for reference and overshoot
  977. values.
  978. Improve tracing messages, synchronizing them with the latin
  979. auto-hinter.
  980. (af_cjk_hints_compute_blue_edges): Fix value of `is_top_right_blue'.
  981. This is error #2.
  982. (af_cjk_align_linked_edge): Add tracing message.
  983. * src/autofit/afcjk.h (AF_CJK_IS_FILLED_BLUE): Removed, no longer
  984. used.
  985. 2014-04-17 Werner Lemberg <wl@gnu.org>
  986. [autofit] More coverage fixes for complex scripts.
  987. * src/autofit/hbshim.c (af_get_coverage): Merge input glyph coverage
  988. of GSUB lookups into output coverage. Otherwise, ligatures are not
  989. handled properly.
  990. Don't check blue zone characters for default coverage.
  991. 2014-04-17 Werner Lemberg <wl@gnu.org>
  992. Make `FT_Get_SubGlyph_Info' actually work.
  993. * src/base/ftobjs.c (FT_Get_SubGlyph_Info): Return FT_Err_Ok
  994. if there is no error.
  995. 2014-04-15 Werner Lemberg <wl@gnu.org>
  996. [afblue.pl]: Minor improvements.
  997. * src/tools/afblue.pl: Allow whitespace before comments.
  998. Ignore whitespace in strings.
  999. 2014-04-14 Werner Lemberg <wl@gnu.org>
  1000. [autofit] Improve coverage handling.
  1001. * src/autofit/hbshim.c (af_get_coverage): Don't exclude glyphs
  1002. appearing in the GPOS table if we are processing the default
  1003. coverage.
  1004. 2014-04-13 David Weber <weber.aulendorf@googlemail.com>
  1005. [smooth] Fix stand-alone compilation.
  1006. * src/smooth/ftgrays.c (FT_BEGIN_STMNT, FT_END_STMNT): Define.
  1007. 2014-04-12 Werner Lemberg <wl@gnu.org>
  1008. [autofit] Redesign the recognition algorithm of strong points.
  1009. In particular, local extrema without horizontal or vertical segments
  1010. are better recognized:
  1011. + A + D
  1012. \ /
  1013. \ /
  1014. \ /
  1015. \ /
  1016. \ + C
  1017. \ /
  1018. B +/
  1019. If the distances AB and CD are large, point B wasn't previously
  1020. detected as an extremum since the `ft_corner_is_flat' function
  1021. `swallowed' BC regardless of its direction, tagging point B as weak.
  1022. The next iteration started at B and made `ft_corner_is_flat' swallow
  1023. point C, tagging it as weak also, et voilà.
  1024. To improve that, another pass gets now performed before calling
  1025. `ft_corner_is_flat' to improve the `topology' of an outline: A
  1026. sequence of non-horizontal or non-vertical vectors that point into
  1027. the same quadrant are handled as a single, large vector.
  1028. Additionally, distances of near points are now accumulated, which
  1029. makes the auto-hinter handle them as if they were prepended to the
  1030. next non-near vector.
  1031. This generally improves the auto-hinter's rendering results.
  1032. * src/autofit/afhints.c (af_glyph_hints_reload): Implement it.
  1033. * src/autofit/afhints.h (AF_FLAGS): Remove no longer used flag
  1034. `AF_FLAG_NEAR'.
  1035. 2014-04-05 Werner Lemberg <wl@gnu.org>
  1036. [autofit] Improve scoring algorithm for identifying stems.
  1037. Problem reported by Karsten Lücke <karsten.luecke@kltf.de>.
  1038. The new algorithm takes care of the width of stems: If the distance
  1039. between two segments is larger than the largest stem width, the
  1040. demerits quickly increase for larger distances. This improves
  1041. hinting of slanted fonts (especially if the inner parts of serifs
  1042. have non-horizontal `shoulders'), avoiding false stem links.
  1043. * src/autofit/aflatin.c (af_latin_hints_link_segments): Use largest
  1044. stem width (if available) to compute better demerits for distances
  1045. between stems.
  1046. (af_latin_hints_detect_features): Pass stem width array and array
  1047. size.
  1048. (af_latin_metrics_init_widths): Updated to use original algorithm.
  1049. (af_latin_hints_apply): Updated to use new algorithm.
  1050. * src/autofit/aflatin.h: Updated.
  1051. * src/autofit/afcjk.c: Updated.
  1052. 2014-04-03 Werner Lemberg <wl@gnu.org>
  1053. Don't require `gzip' module for `sfnt'.
  1054. Reported by Preet <prismatic.project@gmail.com>.
  1055. * src/sfnt/sfobjs.c (woff_open_font): Guard use of
  1056. FT_Gzip_Uncompress with FT_CONFIG_OPTION_USE_ZLIB.
  1057. 2014-03-27 Werner Lemberg <wl@gnu.org>
  1058. Fix Savannah bug #38235.
  1059. Work around a bug in pkg-config version 0.28 and earlier: If a
  1060. variable value gets surrounded by doublequotes (in particular values
  1061. for the `prefix' variable), the prefix override mechanism fails.
  1062. * builds/unix/freetype2.in: Don't use doublequotes.
  1063. * builds/unix/unix-def.in (freetype.pc): Escape spaces in directory
  1064. names with backslashes.
  1065. 2014-03-24 Werner Lemberg <wl@gnu.org>
  1066. Fix Savannah bug #41946.
  1067. Based on a patch from Marek Kašík <mkasik@redhat.com>.
  1068. * builds/unix/configure.raw (LIBS_CONFIG): Remove.
  1069. * builds/unix/freetype-config.in (libs): Hard-code value.
  1070. * builds/unix/unix-def.in: Updated.
  1071. 2014-03-22 Werner Lemberg <wl@gnu.org>
  1072. Another revert for the change from 2014-03-18.
  1073. Problem reported by Nikolaus Waxweiler <madigens@gmail.com>.
  1074. * src/base/ftcalc.c (FT_MulFix): Ensure that an `FT_MulFix' symbol
  1075. gets always exported.
  1076. 2014-03-20 Werner Lemberg <wl@gnu.org>
  1077. CMakeLists.txt: Another fix for include directories.
  1078. Problem reported by Taylor Holberton <taylorcholberton@gmail.com>.
  1079. 2014-03-19 Werner Lemberg <wl@gnu.org>
  1080. CMakeLists.txt: Fix include directories.
  1081. Problem reported by Taylor Holberton <taylorcholberton@gmail.com>.
  1082. 2014-03-19 Werner Lemberg <wl@gnu.org>
  1083. Partially revert last commit.
  1084. Found by Alexei.
  1085. * src/autofit/aflatin.c (af_latin_metrics_init_blues): Initializing
  1086. those variables is plain wrong, since we are in a loop.
  1087. 2014-03-18 Sean McBride <sean@rogue-research.com>
  1088. Werner Lemberg <wl@gnu.org>
  1089. Fix clang warnings.
  1090. * src/autofit/aflatin.c (af_latin_metrics_init_blues): Initialize
  1091. some variables.
  1092. * src/base/ftcalc.c (FT_MulFix): Only use code if
  1093. `FT_MULFIX_INLINED' is not defined.
  1094. * src/bdf/bdfdrivr.c (bdf_cmap_class), src/cache/ftcbasic.c
  1095. (ftc_basic_image_family_class, ftc_basic_image_cache_class,
  1096. ftc_basic_sbit_family_class, ftc_basic_sbit_cache_class),
  1097. src/cache/ftccmap.c (ftc_cmap_cache_class), src/cache/ftcmanag.c
  1098. (ftc_size_list_class, ftc_face_list_class), src/pcf/pcfdrivr.c
  1099. (pcf_cmap_class), src/pfr/pfrdrivr.c (pfr_metrics_service_rec): Make
  1100. function static.
  1101. * src/type1/t1driver.c (t1_ps_get_font_value): Remove redundant
  1102. code.
  1103. 2014-03-17 Werner Lemberg <wl@gnu.org>
  1104. Fix Savannah bug #41869.
  1105. This works around a problem with HarfBuzz (<= 0.9.26), which doesn't
  1106. validate glyph indices returned by
  1107. `hb_ot_layout_lookup_collect_glyphs'.
  1108. * src/autofit/hbshim.c (af_get_coverage): Guard `idx'.
  1109. * docs/CHANGES: Updated.
  1110. 2014-03-14 Werner Lemberg <wl@gnu.org>
  1111. * builds/unix/configure.raw: Don't show error messages of `which'.
  1112. 2014-03-09 Alan Coopersmith <alan.coopersmith@oracle.com>
  1113. Fix cppcheck 1.64 warning.
  1114. * src/autofit/afglobal.c (af_face_globals_new): Catch NULL pointer
  1115. dereference in case of error.
  1116. 2014-03-09 Sean McBride <sean@rogue-research.com>
  1117. * src/sfnt/ttcmap.c (tt_face_build_cmaps): Remove clang warning.
  1118. 2014-03-06 Werner Lemberg <wl@gnu.org>
  1119. * Version 2.5.3 released.
  1120. =========================
  1121. Tag sources with `VER-2-5-3'.
  1122. * docs/VERSION.DLL: Update documentation and bump version number to
  1123. 2.5.3.
  1124. * README, Jamfile (RefDoc), builds/windows/vc2005/freetype.vcproj,
  1125. builds/windows/vc2005/index.html,
  1126. builds/windows/vc2008/freetype.vcproj,
  1127. builds/windows/vc2008/index.html,
  1128. builds/windows/vc2010/freetype.vcxproj,
  1129. builds/windows/vc2010/index.html,
  1130. builds/windows/visualc/freetype.dsp,
  1131. builds/windows/visualc/freetype.vcproj,
  1132. builds/windows/visualc/index.html,
  1133. builds/windows/visualce/freetype.dsp,
  1134. builds/windows/visualce/freetype.vcproj,
  1135. builds/windows/visualce/index.html,
  1136. builds/wince/vc2005-ce/freetype.vcproj,
  1137. builds/wince/vc2005-ce/index.html,
  1138. builds/wince/vc2008-ce/freetype.vcproj,
  1139. builds/wince/vc2008-ce/index.html: s/2.5.2/2.5.3/, s/252/253/.
  1140. * include/freetype/freetype.h (FREETYPE_PATCH): Set to 3.
  1141. * builds/unix/configure.raw (version_info): Set to 17:2:11.
  1142. * CMakeLists.txt (VERSION_PATCH): Set to 3.
  1143. * docs/CHANGES: Updated.
  1144. 2014-03-06 Werner Lemberg <wl@gnu.org>
  1145. Fixes for compilation with C++.
  1146. * src/autofit/hbshim.c (scripts): Change type to `hb_script_t'.
  1147. (af_get_coverage): Updated.
  1148. (COVERAGE): Add cast.
  1149. 2014-03-06 Sean McBride <sean@rogue-research.com>
  1150. Remove more clang analyzer warnings.
  1151. * src/bdf/bdflib.c (_bdf_readstream), src/truetype/ttgload.c
  1152. (TT_Load_Glyph): Remove dead stores.
  1153. 2014-03-05 Werner Lemberg <wl@gnu.org>
  1154. * builds/unix/configure.raw: Simplify.
  1155. 2014-03-05 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1156. Fix a bug in configure in library dependency setting
  1157. Reported in https://bugs.freedesktop.org/show_bug.cgi?id=75652.
  1158. * builds/unix/configure.raw: Use `x"${xxx}" != xno' style.
  1159. 2014-03-04 Werner Lemberg <wl@gnu.org>
  1160. Minor fix for `make devel'.
  1161. * builds/freetype.mk (INCLUDE_FLAGS) [DEVEL_DIR]: Don't use
  1162. pkg-config for bzip2 since not all GNU/Linux distributions have
  1163. `bzip2.pc' (and the header file `bzlib.h' is located in /usr/include
  1164. normally).
  1165. 2014-03-04 Sean McBride <sean@rogue-research.com>
  1166. Fix several clang static analyzer dead store warnings.
  1167. * src/autofit/afhints.c (af_glyph_hints_reload,
  1168. af_glyph_hints_align_weak_points): Remove unnecessary assignments.
  1169. * src/bdf/bdflib.c (bdf_font_load): Ditto.
  1170. * src/pshinter/pshalgo.c (psh_glyph_compute_extrema,
  1171. psh_glyph_interpolate_other_points): Ditto.
  1172. * src/type1/t1load.c (T1_Set_MM_Blend): Ditto.
  1173. 2014-03-03 Werner Lemberg <wl@gnu.org>
  1174. Rewrite library option handling in `configure'.
  1175. o Introduce `auto' value for `--with-XXX' library options; this is
  1176. now the default.
  1177. o First use `pkg-config' for library detection, then fall back to
  1178. other tests.
  1179. * builds/unix/configure.raw (--with-zlib, --with-bzip2, --with-png,
  1180. --with-harfbuzz): Rewrite.
  1181. Use new `xxx_reqpriv', `xxx_libpriv', and `xxx_libstaticconf'
  1182. variables to collect data for `freetype2.pc' and `freetype-config'.
  1183. (FT2_EXTRA_LIBS): Renamed to ...
  1184. (ft2_extra_libs): This since it gets no longer substituted.
  1185. (REQUIRES_PRIVATE, LIBS_PRIVATE, LIBS_CONFIG, LIBSSTATIC_CONFIG):
  1186. New output variables, replacing `XXX_PKG' and `LIBXXX'.
  1187. Add notice at the end of `configure' showing the library
  1188. configuration.
  1189. * builds/unix/freetype-config.in (--static): New command line
  1190. option.
  1191. (libs): Updated.
  1192. (staticlibs): New variable, to be used if `--static' is given.
  1193. * docs/freetype-config.1: Document `--static'.
  1194. * builds/unix/freetype2.in, builds/unix/unix-def.in: Updated.
  1195. 2014-03-01 Werner Lemberg <wl@gnu.org>
  1196. Avoid `long long' warnings with older gcc compilers.
  1197. Problem reported by Hin-Tak Leung <htl10@users.sourceforge.net>.
  1198. * builds/unix/configure.raw: Don't use gcc's `-pedantic' flag for
  1199. versions < 4.6. This is especially needed for Max OS X since this
  1200. OS runs a gcc variant (or emulation) based on version 4.2.1.
  1201. 2014-03-01 Werner Lemberg <wl@gnu.org>
  1202. * docs/INSTALL.CROSS: Revised and updated.
  1203. 2014-03-01 Werner Lemberg <wl@gnu.org>
  1204. Make `make clean' remove `freetype2.pc'.
  1205. This is a generated file at build time, not configure time.
  1206. * builds/unix/unix-def.in (DISTCLEAN): Move `freetype2.pc' to ...
  1207. (CLEAN): This variable.
  1208. 2014-03-01 Werner Lemberg <wl@gnu.org>
  1209. Use pkg-config for detecting libpng and libbz2 also.
  1210. * builds/unix/configure.raw (HAVE_PKG): New variable.
  1211. Search for libbz2 using `pkg-config'; s/BZ2/BZIP2/.
  1212. Search for libpng using `pkg-config'.
  1213. Fix definition of `LIBHARFBUZZ' variable.
  1214. * builds/unix/freetype-config.in ($libs): Updated.
  1215. * builds/unix/freetype2.in: Add `URL' field.
  1216. Update `Requires.private' and `Libs.private'.
  1217. * builds/unix/unix-def.in: Updated.
  1218. 2014-03-01 Werner Lemberg <wl@gnu.org>
  1219. Add configure support for HarfBuzz.
  1220. * builds/unix/pkg.m4: New file.
  1221. * builds/unix/configure.raw: Search for libharfbuzz using
  1222. `pkg-config'.
  1223. Add `--without-harfbuzz' option.
  1224. * builds/unix/freetype-config.in, builds/unix/freetype2.in,
  1225. builds/unix/unix-def.in (freetype-config, freetype2.pc): Handle
  1226. HarfBuzz.
  1227. * docs/INSTALL.UNIX: Document interdependency of Freetype with
  1228. HarfBuzz.
  1229. 2014-02-28 Alexei Podtelezhnikov <apodtele@gmail.com>
  1230. [cff] Math simplifications.
  1231. * src/cf2blues.c (cf2_blues_init): Use `FT_MulDiv'.
  1232. * src/cf2ft.c (cf2_getScaleAndHintFlag): Use simple division.
  1233. 2014-02-28 Dave Arnold <darnold@adobe.com>
  1234. [cff] Fix Savannah bug #41697, part 2.
  1235. * src/cff/cf2ft.c (cf2_initLocalRegionBuffer,
  1236. cf2_initGlobalRegionBuffer): It is possible for a charstring to call
  1237. a subroutine if no subroutines exist. This is an error but should
  1238. not trigger an assert. Split the assert to account for this.
  1239. 2014-02-28 Dave Arnold <darnold@adobe.com>
  1240. [cff] Fix Savannah bug #41697, part 1.
  1241. * src/cff/cf2hints.c (cf2_hintmap_build): Return when `hintMask' is
  1242. invalid. In this case, it is not safe to use the length of
  1243. `hStemHintArray'; the exception has already been recorded in
  1244. `hintMask'.
  1245. 2014-02-26 Werner Lemberg <wl@gnu.org>
  1246. [sfnt] Fix Savannah bug #41696.
  1247. * src/sfnt/ttcmap.c (tt_cmap0_validate, tt_cmap2_validate,
  1248. tt_cmap4_validate, tt_cmap14_validate): Fix limit tests.
  1249. 2014-02-26 Werner Lemberg <wl@gnu.org>
  1250. [winfnt] Fix Savannah bug #41694.
  1251. * src/winfonts/winfnt.c (FNT_Load_Glyph): Check glyph offset.
  1252. 2014-02-26 Werner Lemberg <wl@gnu.org>
  1253. [cff] Fix Savannah bug #41693.
  1254. * src/cff/cffload.c (CFF_Load_FD_Select): Reject empty array.
  1255. 2014-02-26 Werner Lemberg <wl@gnu.org>
  1256. [bdf] Fix Savannah bug #41692.
  1257. bdflib puts data from the input stream into a buffer in chunks of
  1258. 1024 bytes. The data itself gets then parsed line by line, simply
  1259. increasing the current pointer into the buffer; if the search for
  1260. the final newline character exceeds the buffer size, more data gets
  1261. read.
  1262. However, in case the current line's end is very near to the buffer
  1263. end, and the keyword to compare with is longer than the current
  1264. line's length, an out-of-bounds read might happen since `memcmp'
  1265. doesn't stop properly at the string end.
  1266. * src/bdf/bdflib.c: s/ft_memcmp/ft_strncmp/ to make comparisons
  1267. stop at string ends.
  1268. 2014-02-17 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1269. [autofit] Fix `make multi' compilation.
  1270. * src/autofit/hbshim.c: Include `afglobal.h' and `aftypes.h'.
  1271. 2014-02-19 Werner Lemberg <wl@gnu.org>
  1272. Simon Bünzli <zeniko@gmail.com>
  1273. Fix Savannah bug #32902.
  1274. Patch taken from
  1275. https://code.google.com/p/sumatrapdf/source/browse/trunk/ext/_patches/freetype2.patch?spec=svn8620&r=8620#87
  1276. with slight modifications.
  1277. * src/type1/t1parse.c (T1_Get_Private_Dict): Add heuristic test to
  1278. handle fonts that incorrectly use \r at the beginning of an eexec
  1279. block.
  1280. 2014-02-19 Simon Bünzli <zeniko@gmail.com>
  1281. Fix Savannah bug #41590.
  1282. * src/type1/t1load.c (parse_encoding): Protect against invalid
  1283. number.
  1284. 2014-02-12 Dave Arnold <darnold@adobe.com>
  1285. [cff] Optimize by using `FT_MulDiv'.
  1286. Suggested by Alexei.
  1287. * src/cff/cf2font.c (cf2_computeDarkening): Do it.
  1288. 2014-02-12 Werner Lemberg <wl@gnu.org>
  1289. Fix Savannah bug #41465.
  1290. * builds/unix/unix-def.in (CLEAN): Add `freetype-config'.
  1291. (DISTCLEAN): Remove `freetype-config'.
  1292. 2014-02-08 Sean McBride <sean@rogue-research.com>
  1293. Fix clang static analyzer and compiler warnings.
  1294. * src/autofit/afhints.c (af_glyph_hints_align_weak_points),
  1295. src/autofit/afloader (af_loader_load_g) <FT_GLYPH_FORMAT_COMPOSITE>,
  1296. src/base/ftcalc.c (FT_MSB), src/base/ftoutln.c
  1297. (FT_Outline_Decompose), src/bdf/bdfdrivr.c (bdf_interpret_style),
  1298. src/cff/cffparse.c (cff_parse_integer), src/cid/cidparse.c
  1299. (cid_parser_new), src/pfr/pfrload.c (pfr_phy_font_load),
  1300. src/raster/ftraster.c (Decompose_Curve), src/sfnt/sfdriver.c
  1301. (sfnt_get_ps_name), src/sfnt/ttcmap.c (tt_cmap12_next,
  1302. tt_cmap13_next), src/smooth/ftgrays.c (gray_hline): Remove dead
  1303. code.
  1304. * src/autofit/afmodule.c (af_property_get_face_globals,
  1305. af_property_set, af_property_get), src/base/ftbitmap.c
  1306. (ft_gray_for_premultiplied_srgb_bgra): Make functions static.
  1307. * src/base/ftobjs.c (ft_remove_renderer): Protect against
  1308. library == NULL.
  1309. (ft_property_do): Make function static.
  1310. * src/base/ftrfork.c: Include `ftbase.h'.
  1311. * src/sfnt/ttsbit.c (tt_face_load_sbix_image)
  1312. [!FT_CONFIG_OPTION_USE_PNG], src/type1/t1gload.c
  1313. (T1_Compute_Max_Advance): Avoid compiler warning.
  1314. * src/truetype/ttinterp.c (TT_New_Context): Reduce scope of
  1315. variable.
  1316. 2014-02-08 Werner Lemberg <wl@gnu.org>
  1317. Fix Windows build directories.
  1318. The build target is now `windows' instead of `win32'.
  1319. Problem reported by Nickolas George <darknova.clan@gmail.com>.
  1320. * builds/modules.mk: Don't use `win32' and `win16' (!) but
  1321. `windows'.
  1322. * builds/windows/detect.mk, builds/windows/win32-def.mk:
  1323. s/win32/windows/.
  1324. 2014-02-08 Eugen Sawin <esawin@mozilla.com>
  1325. Fix Savannah bug #41507.
  1326. * src/sfnt/ttsbit.c (tt_sbit_decoder_load_bitmap)
  1327. [!FT_CONFIG_OPTION_USE_PNG] <17, 17, 19>: Fix error handling.
  1328. 2014-02-08 Dave Arnold <darnold@adobe.com>
  1329. [cff] Fix minor performance bug.
  1330. * src/cff/cf2font.c (cf2_font_setup): Darkening amount and blue zone
  1331. calculations are now cached and not recomputed on each glyph.
  1332. 2014-02-05 Werner Lemberg <wl@gnu.org>
  1333. Fix problems with perl 5.8.8 as distributed with current MinGW.
  1334. * src/tools/afblue.pl: Work-around for Perl bug #63402.
  1335. (string_re): Avoid `possessive quantifiers', which have been
  1336. introduced in Perl version 5.10.
  1337. 2014-02-04 Werner Lemberg <wl@gnu.org>
  1338. Fix compilation with MinGW.
  1339. Right now, compilation out of the box with latest MinGW is broken
  1340. due to bugs in header files of mingwrt 4.0.3 in strict ANSI mode,
  1341. cf.
  1342. https://sourceforge.net/p/mingw/bugs/2024/
  1343. https://sourceforge.net/p/mingw/bugs/2046/
  1344. * builds/unix/configure.raw: Don't set `-ansi' flag for MinGW.
  1345. 2014-02-04 Werner Lemberg <wl@gnu.org>
  1346. [autofit] Minor fix.
  1347. * src/autofit/afcjk.c (af_cjk_metrics_init_widths),
  1348. src/autofit/aflatin.c (af_latin_metrics_init_widths): Fix handling
  1349. of alternative standard characters.
  1350. This also fixes a compilation warning in non-debug mode.
  1351. 2014-02-03 Werner Lemberg <wl@gnu.org>
  1352. [cff] Fix Savannah bug #41363.
  1353. * src/cff/cf2ft.c (cf2_checkTransform): Convert assertion into
  1354. parameter check.
  1355. (cf2_decoder_parse_charstrings): Call `cf2_checkTransform' only if
  1356. we are scaling the outline.
  1357. (cf2_getPpemY): Remove problematic assertion.
  1358. 2014-01-26 Werner Lemberg <wl@gnu.org>
  1359. [autofit] Introduce two more slots for standard characters.
  1360. This is useful for OpenType features like `c2sc' (caps to small
  1361. caps) that don't have lowercase letters by definition, or other
  1362. features that mainly operate on numerals.
  1363. * src/autofit/afscript.h: Add more standard characters.
  1364. * src/autofit/aftypes.h: Update use of `SCRIPT' macro.
  1365. (AF_ScriptClassRec): Add members to hold two more standard
  1366. characters.
  1367. (AF_DEFINE_SCRIPT_CLASS): Updated.
  1368. * src/autofit/afglobal.c, src/autofit/afglobal.h,
  1369. * src/autofit/afpic.c, src/autofit/afranges.h, src/autofit/hbshim.c:
  1370. Update use of `SCRIPT' macro.
  1371. * src/autofit/afcjk.c (af_cjk_metrics_init_widths),
  1372. src/autofit/aflatin.c (af_latin_metrics_init_widths): Scan two more
  1373. standard characters.
  1374. 2014-01-24 Werner Lemberg <wl@gnu.org>
  1375. Fix Savannah bug #41320.
  1376. * src/autofit/aflatin.c (af_latin_metrics_init_blues)
  1377. <AF_LATIN_IS_LONG_BLUE>: Avoid negative index of `last'.
  1378. 2014-01-23 Werner Lemberg <wl@gnu.org>
  1379. Fix Savannah bug #41310.
  1380. * src/sfnt/ttsbit.c (tt_sbit_decoder_load_bitmap) <glyph_format==5>:
  1381. Don't check metrics, which this format doesn't have.
  1382. This is another correction to the commit from 2013-11-21.
  1383. 2014-01-23 Werner Lemberg <wl@gnu.org>
  1384. Fix Savannah bug #41309.
  1385. * src/type1/t1load.c (t1_parse_font_matrix): Properly handle result
  1386. of `T1_ToFixedArray'.
  1387. * src/cid/cidload.c (cid_parse_font_matrix): Synchronize with
  1388. `t1_parse_font_matrix'.
  1389. * src/type42/t42parse.c (t42_parse_font_matrix): Synchronize with
  1390. `t1_parse_font_matrix'.
  1391. (t42_parse_encoding): Synchronize with `t1_parse_encoding'.
  1392. * src/psaux/psobjs.c (ps_parser_load_field) <T1_FIELD_TYPE_BBOX>,
  1393. <T1_FIELD_TYPE_MMOX>: Properly handle result of `ps_tofixedarray'.
  1394. 2014-01-22 Werner Lemberg <wl@gnu.org>
  1395. * src/autofit/hbshim.c (af_get_coverage): Fix memory leaks.
  1396. 2014-01-16 Werner Lemberg <wl@gnu.org>
  1397. [autofit] Improve tracing of style coverages.
  1398. * include/internal/fttrace.h: Add `afglobal' for tracing style
  1399. coverages.
  1400. * src/autofit/afglobal.c: Include FT_INTERNAL_DEBUG_H.
  1401. (FT_COMPONENT): Define.
  1402. (af_face_globals_compute_style_coverage): Trace `gstyles' array
  1403. data.
  1404. 2014-01-09 Werner Lemberg <wl@gnu.org>
  1405. Fix Savannah bug #41158.
  1406. * builds/unix/install.mk (install): Create man page directory.
  1407. 2014-01-08 Chongyu Zhu <lembacon@gmail.com>
  1408. [arm] Fix Savannah bug #41138, part 2.
  1409. * builds/unix/ftconfig.in (FT_MulFix_arm), include/config/ftconfig.h
  1410. (FT_MulFix_arm), src/truetype/ttinterp.c (TT_MulFix14_arm): Fix
  1411. preprocessor conditionals for `add.w'.
  1412. 2014-01-08 Werner Lemberg <wl@gnu.org>
  1413. [autofit] Fix Savannah bug #41138, part 1.
  1414. * src/tools/afblue.pl <Handling #endif>: Produce correct auxiliary
  1415. enumeration names for generated `#else'.
  1416. * src/autofit/afblue.h: Regenerated.
  1417. 2014-01-06 Werner Lemberg <wl@gnu.org>
  1418. Add manual page for `freetype-config'.
  1419. Contributed by Nis Martensen <nis.martensen@web.de>.
  1420. * docs/freetype-config.1: New file.
  1421. * builds/unix/unix-def.in (mandir): Define.
  1422. * builds/unix/install.mk (install, uninstall): Handle manpage.
  1423. 2014-01-05 Werner Lemberg <wl@gnu.org>
  1424. [autofit] Minor fixes for `afblue.pl'.
  1425. * src/tools/afblue.pl (aux_name): Don't use `reverse'.
  1426. <Handling #endif>: Use proper indentation for generated `#else'.
  1427. * src/autofit/afblue.h: Regenerated.
  1428. 2014-01-04 Werner Lemberg <wl@gnu.org>
  1429. [autofit] Fix Indic scripts.
  1430. Split the single, incorrect Indic entry into separate scripts so
  1431. that the covered ranges are the same: Bengali, Devanagari, Gujarati,
  1432. Gurmukhi, Kannada, Limbu, Malayalam, Oriya, Sinhala, Sundanese,
  1433. Syloti Nagri, Tamil, Telugu, and Tibetan. At the same time, remove
  1434. entries for Meetai Mayak and Sharada – the Unicode ranges were
  1435. incorrect (and nobody has complained about that), fonts are scarce
  1436. for those scripts, and the Indic auto-hinter support is rudimentary
  1437. anyways.
  1438. * src/autofit/afscript.h: Updated, using AF_CONFIG_OPTION_INDIC and
  1439. AF_CONFIG_OPTION_CJK.
  1440. * src/autofit/afstyles.h (STYLE_DEFAULT_INDIC): New auxiliary macro.
  1441. Use it, together with AF_CONFIG_OPTION_INDIC and
  1442. AF_CONFIG_OPTION_CJK, to update.
  1443. * src/autofit/afranges.c [AF_CONFIG_OPTION_INDIC]: Updated.
  1444. [!AF_CONFIG_OPTION_INDIC, !AF_CONFIG_OPTION_CJK]: Removed.
  1445. Sort entries by tags.
  1446. 2014-01-03 Werner Lemberg <wl@gnu.org>
  1447. [autofit] Thinko.
  1448. * src/autofit/hbshim.c (af_get_char_index): Similar to
  1449. `af_get_coverage', reject glyphs which are not substituted.
  1450. 2014-01-03 Werner Lemberg <wl@gnu.org>
  1451. [autofit] Fix handling of default coverages.
  1452. With this commit, the implementation of coverage handling is
  1453. completed.
  1454. * src/autofit/hbshim.c (af_get_coverage): Exit early if nothing to
  1455. do.
  1456. Reject coverages which don't contain appropriate glyphs for blue
  1457. zones.
  1458. 2014-01-03 Werner Lemberg <wl@gnu.org>
  1459. [autofit] Fix handling of default coverages.
  1460. * src/autofit/afglobal.c (af_face_globals_compute_style_coverage):
  1461. First handle non-default coverages, then the default coverage of the
  1462. default script, and finally the other default coverages.
  1463. 2014-01-03 Werner Lemberg <wl@gnu.org>
  1464. [autofit] Fix scaling of HarfBuzz shaping.
  1465. * src/autofit/hbshim.c (af_get_char_index): Scale to units per EM.
  1466. 2014-01-03 Werner Lemberg <wl@gnu.org>
  1467. [autofit] Better ftgrid support.
  1468. * src/autofit/afhints.c (af_glyph_hints_get_segment_offset): Add
  1469. parameters `is_blue' and `blue_offset'.
  1470. 2014-01-01 Werner Lemberg <wl@gnu.org>
  1471. [autofit] Remove some styles.
  1472. * src/autofit/afcover.h: Remove coverages for alternative fractions,
  1473. denominators, numerators, and fractions.
  1474. * src/autofit/afstyles.h (META_STYLE_LATIN): Updated.
  1475. 2014-01-01 Werner Lemberg <wl@gnu.org>
  1476. [autofit] Add more styles.
  1477. * src/autofit/afstyles.h (STYLE_LATIN, META_STYLE_LATIN): New
  1478. auxiliary macros; use them to define styles for Cyrillic, Greek, and
  1479. Latin.
  1480. * src/autofit/afcover.h: Remove coverage for oldstyle figures.
  1481. Since those digits are used in combination with ordinary letters, it
  1482. makes no sense to handle them separately.
  1483. * src/autofit/afglobal.c (af_face_globals_get_metrics): Don't limit
  1484. `options' parameter to 4 bits.
  1485. 2014-01-01 Werner Lemberg <wl@gnu.org>
  1486. [autofit] Fix style assignments to glyphs.
  1487. * src/autofit/hbshim.c (af_get_coverage)
  1488. [FT_CONFIG_OPTION_USE_HARFBUZZ]: Scan GPOS coverage of features also
  1489. so that we can skip glyphs that have both GSUB and GPOS data.
  1490. 2014-01-01 Werner Lemberg <wl@gnu.org>
  1491. * src/autofit/hbshim.c: s/{lookups,glyphs}/gsub_{lookups,glyphs}/.
  1492. 2014-01-01 Werner Lemberg <wl@gnu.org>
  1493. [autofit] Implement and use `af_get_char_index' with HarfBuzz.
  1494. * src/autofit/hbshim.c (COVERAGE) [FT_CONFIG_OPTION_USE_HARFBUZZ]:
  1495. Redefine to construct HarfBuzz features.
  1496. (af_get_char_index) [FT_CONFIG_OPTION_USE_HARFBUZZ]: Rewritten.
  1497. * src/autofit/aflatin.c (af_latin_metrics_init_blues): Use
  1498. `y_offset' to adjust `best_y'.
  1499. 2013-12-31 Werner Lemberg <wl@gnu.org>
  1500. [autofit] s/AF_STYLE_...._DEFAULT/AF_STYLE_...._DFLT/i.
  1501. 2013-12-31 Werner Lemberg <wl@gnu.org>
  1502. [autofit] Fix interface of `af_get_char_index'.
  1503. * src/autofit/hbshim.c (af_get_char_index): Return error value.
  1504. Add argument for y offset (to be used in a yet-to-come patch).
  1505. * src/autofit/hbshim.h, src/autofit/afcjk.c,
  1506. src/autofit/aflatin.c: Updated.
  1507. 2013-12-30 Werner Lemberg <wl@gnu.org>
  1508. [autofit] Don't combine multiple features into one set.
  1509. Combining them, as originally envisioned, would lead to much more
  1510. complicated code, as investigations have shown meanwhile. The major
  1511. drawback is that we run out of available style slots much earlier.
  1512. However, this is only a theoretical issue since we don't support a
  1513. large number of scripts currently.
  1514. * src/autofit/afcover.h: Replace `COVERAGE_{1,2,3}' macros with
  1515. a single-element `COVERAGE' macro, sort the elements by the feature
  1516. tags, and add entry for `ruby'.
  1517. * src/autofit/aftypes.h: Updated.
  1518. * src/autofit/hbshim.c: Updated.
  1519. 2013-12-28 Werner Lemberg <wl@gnu.org>
  1520. [autofit] Code shuffling to reduce use of cpp macros.
  1521. * src/autofit/afglobal.c (af_face_globals_compute_style_coverage):
  1522. Call `af_get_coverage' unconditionally.
  1523. * src/autofit/autofit.c: Include `hbshim.c' unconditionally.
  1524. * src/autofit/hbshim.c (af_get_coverage)
  1525. [!FT_CONFIG_OPTION_USE_HARFBUZZ]: Provide dummy function.
  1526. * src/autofit/hbshim.h: Provide function declarations
  1527. unconditionally.
  1528. 2013-12-28 Werner Lemberg <wl@gnu.org>
  1529. [autofit] Add wrapper function for `FT_Get_Char_Index'.
  1530. Yet-to-come changes will provide HarfBuzz functionality for the new
  1531. function.
  1532. * src/autofit/hbshim.c (af_get_char_index): New function.
  1533. * src/autofit/hbshim.h: Updated.
  1534. * src/autofit/afcjk.c (af_cjk_metrics_init_widths,
  1535. af_cjk_metrics_init_blues, af_cjk_metrics_check_digits): Updated.
  1536. * src/autofit/aflatin.c (af_latin_metrics_init_widths,
  1537. af_latin_metrics_init_blues, af_latin_metrics_check_digits):
  1538. Updated.
  1539. 2013-12-28 Werner Lemberg <wl@gnu.org>
  1540. [autofit] Use `global' HarfBuzz font object.
  1541. We now use `hb_font' instead of `hb_face' since yet-to-come changes
  1542. need this.
  1543. * src/autofit/afglobal.h: Include `hbshim.h'.
  1544. (AF_FaceGlobalsRec) [FT_CONFIG_OPTION_USE_HARFBUZZ]: New member
  1545. `hb_font'.
  1546. * src/autofit/afglobal.c (af_face_globals_new)
  1547. [FT_CONFIG_OPTION_USE_HARFBUZZ]: Create `hb_font'.
  1548. (af_face_globals_free) [FT_CONFIG_OPTION_USE_HARFBUZZ]: Destroy
  1549. `hb_font'.
  1550. * src/autofit/hbshim.h: Include HarfBuzz headers.
  1551. * src/autofit/hbshim.c: Include `hbshim.h' instead of HarfBuzz
  1552. headers.
  1553. (af_get_coverage): Updated.
  1554. 2013-12-27 Werner Lemberg <wl@gnu.org>
  1555. [autofit] Handle `DFLT' OpenType script for coverages.
  1556. * include/ftautoh.h: Document new `default-script' property.
  1557. * src/autofit/hbshim.c (af_get_coverage): Use `AF_FaceGlobals' for
  1558. type of first parameter.
  1559. (script_tags): Add one more element.
  1560. (af_get_coverage): Adjust `script_tags' to handle `DFLT' script tag.
  1561. * src/autofit/hbshim.h: Updated.
  1562. * src/autofit/afglobal.c (af_face_globals_compute_style_coverage):
  1563. Updated.
  1564. * src/autofit/afglobal.h (AF_SCRIPT_DEFAULT): New macro.
  1565. * src/autofit/afmodule.h (AF_ModuleRec): New `default_script'
  1566. member.
  1567. * src/autofit/afmodule.c (af_property_set, af_property_get): Handle
  1568. `default-script' property.
  1569. (af_autofitter_init): Updated.
  1570. 2013-12-27 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1571. [ftrfork] Fix the face order difference between POSIX and Carbon.
  1572. The fragmented resources in Suitcase and .dfont should be reordered
  1573. when `POST' resource for Type1 is being restored, but reordering of
  1574. sfnt resources induces the different face order. Now the ordering
  1575. is restricted to `POST' resource only, to prevent the different
  1576. order issue (e.g. the face index in the fontconfig cache generated
  1577. with Carbon framework is incompatible with that by FreeType 2
  1578. without Carbon framework.) Found by Khaled Hosny and Hin-Tak Leung.
  1579. http://lists.gnu.org/archive/html/freetype-devel/2013-02/msg00035.html
  1580. http://lists.gnu.org/archive/html/freetype-devel/2013-12/msg00027.html
  1581. * src/base/ftrfork.c (FT_Raccess_Get_DataOffsets): Add a switch
  1582. `sort_by_res_id' to control the fragmented resource ordering.
  1583. * include/internal/ftrfork.h: Declare new switch.
  1584. * src/base/ftobjs.c (IsMacResource): Enable the sorting for `POST'
  1585. resource, and disable the sorting for `sfnt' resource.
  1586. 2013-12-25 Werner Lemberg <wl@gnu.org>
  1587. Fix Savannah bug #40997.
  1588. * src/bdf/bdfdrivr.c (BDF_Face_Init): Only use OR operator to
  1589. adjust face flags since FT_FACE_FLAG_EXTERNAL_STREAM might already
  1590. be set.
  1591. * src/cff/cffobjs.c (cff_face_init): Ditto.
  1592. * src/cid/cidobjs.c (cid_face_init): Ditto.
  1593. * src/pcf/pcfread.c (pcf_load_font): Ditto.
  1594. * src/pfr/pfrobjs.c (pfr_face_init): Ditto.
  1595. * src/type1/t1objs.c (T1_Face_Init): Ditto.
  1596. * src/type42/t42objs.c (T42_Face_Init): Ditto.
  1597. * src/winfonts/winfnt.c (FNT_Face_Init): Ditto.
  1598. 2013-12-21 Werner Lemberg <wl@gnu.org>
  1599. [autofit] Introduce `coverages'.
  1600. Coverages are the interface to the HarfBuzz library to acces
  1601. OpenType features for handling glyphs not addressable by the cmap.
  1602. Right now, compilation of HarfBuzz is only added to the development
  1603. build. A solution for standard build mode will be delayed until
  1604. HarfBuzz gets split into two libraries to avoid mutual dependencies
  1605. between FreeType and HarfBuzz.
  1606. Note that this is only a first step in handling coverages, basically
  1607. providing the framework only. Code for handling selected OpenType
  1608. features (this is, actually using the data in `afcover.h') will
  1609. follow.
  1610. * devel/ftoption.h, include/config/ftoption.h
  1611. (FT_CONFIG_OPTION_USE_HARFBUZZ): New macro.
  1612. * src/autofit/hbshim.c, src/autofit/hbshim.h, src/autofit/afcover.h:
  1613. New files.
  1614. * src/autofit/afscript.h: Add HarfBuzz script name tags.
  1615. * src/autofit/afstyles.h: Add default coverage enumeration values.
  1616. * src/autofit/aftypes.h: Update use of `SCRIPT' and `STYLE' macros.
  1617. (AF_Coverage): New enumeration (generated by `afcover.h').
  1618. (AF_StyleClassRec): New member `coverage'.
  1619. (AF_DEFINE_STYLE_CLASS): Updated.
  1620. * include/internal/fttrace.h: Add `afharfbuzz' for tracing coverage
  1621. data.
  1622. * src/autofit/afglobal.h: Update use of `SCRIPT' and `STYLE' macros.
  1623. (AF_SCRIPT_FALLBACK): Renamed to ...
  1624. (AF_STYLE_FALLBACK): ... this.
  1625. * src/autofit/afglobal.c: Include `hbshim.c'.
  1626. Update use of `SCRIPT' and `STYLE' macros.
  1627. (af_face_globals_compute_style_coverage)
  1628. [FT_CONFIG_OPTION_USE_HARFBUZZ]: Call `af_get_coverage'.
  1629. Update.
  1630. * src/autofit/afmodule.h (AF_ModuleRec):
  1631. s/fallback_script/fallback_style/.
  1632. * src/autofit/afmodule.c (af_property_set): Adapt handling of
  1633. `fallback-script' property to set a fallback style.
  1634. (af_property_get, af_autofitter_init): Updated.
  1635. * src/autofit/afpic.c: Update use of `SCRIPT' and `STYLE' macros.
  1636. * src/autofit/afranges.h: Update use of `SCRIPT' macro.
  1637. * src/autofit/autofit.c [FT_CONFIG_OPTION_USE_HARFBUZZ]: Include
  1638. `hbshim.c'.
  1639. * src/autofit/rules.mk (AUTOF_DRV_SRC): Add `hbshim.c'.
  1640. (AUTOF_DRV_H): Add `afcover.h'.
  1641. * builds/freetype.mk (INCLUDE_FLAGS) [DEVEL_DIR]: Use pkg-config for
  1642. all libraries needed by FreeType.
  1643. 2013-12-21 Werner Lemberg <wl@gnu.org>
  1644. Fix Savannah bug #40975 (sort of).
  1645. * src/truetype/ttinterp.c (Ins_IP): Fix sign typo to make FreeType
  1646. behave the same as the Windows TrueType engine for the invalid case.
  1647. 2013-12-21 Werner Lemberg <wl@gnu.org>
  1648. [autofit] Make PIC mode work actually.
  1649. * src/autofit/afpic.h (AFModulePIC): Fix array sizes to fit the
  1650. enumeration values automatically generated by including `afscript.h'
  1651. and friends.
  1652. * src/autofit/afpic.c (autofit_module_class_pic_init): Updated.
  1653. 2013-12-21 Werner Lemberg <wl@gnu.org>
  1654. Fix PIC linking.
  1655. * include/internal/ftrfork.h (CONST_FT_RFORK_RULE_ARRAY_BEGIN): Fix
  1656. generated function name.
  1657. * src/base/basepic.c (FT_Init_Table_raccess_guess_table): Rename
  1658. to ...
  1659. (FT_Init_Table_ft_raccess_guess_table): ... this so that the
  1660. function name correctly corresponds to what the macro framework
  1661. expects.
  1662. * src/psnames/rules.mk (PSNAMES_DRV_SRC_S): Use correct file name so
  1663. that PIC functions are compiled also.
  1664. 2013-12-21 Werner Lemberg <wl@gnu.org>
  1665. [base] Add missing dependencies to Makefile.
  1666. * src/base/rules.mk (BASE_SRC): Add `basepic.c' and `ftpic.c'.
  1667. (BASE_H): Add `basepic.h'.
  1668. 2013-12-20 Werner Lemberg <wl@gnu.org>
  1669. [autofit] Fix PIC compilation.
  1670. * src/autofit/afcjk.c (af_cjk_metrics_init_widths),
  1671. src/autofit/aflatin.c (af_latin_metrics_init_widths)
  1672. [FT_CONFIG_OPTION_PIC]: Declare `globals'.
  1673. * src/autofit/afglobal.c: Always call AF_DEFINE_SCRIPT_CLASS, and
  1674. AF_DEFINE_STYLE_CLASS.
  1675. * src/autofit/afpic.c: Include `afglobal.h'.
  1676. (autofit_module_class_pic_init): Typo.
  1677. * src/autofit/aftypes.h (AF_DEFINE_SCRIPT_CLASS,
  1678. AF_DEFINE_STYLE_CLASS): Don't use the same identifier for macro
  1679. parameter and structure member.
  1680. 2013-12-20 Werner Lemberg <wl@gnu.org>
  1681. [autofit] Introduce `styles'.
  1682. This is the new top-level structure for handling glyph input data;
  1683. scripts are now defined separately.
  1684. * src/autofit/aftypes.h (SCRIPT): Updated.
  1685. (AF_ScriptClassRec): Move `blue_stringset' and `writing_system'
  1686. members to ...
  1687. (AF_Style_ClassRec): ... this new structure.
  1688. (AF_Style): New enumeration.
  1689. (AF_StyleMetricsRec): Replace `script' enumeration with
  1690. `style_class' pointer.
  1691. (AF_DEFINE_SCRIPT_CLASS, AF_DECLARE_SCRIPT_CLASS): Updated.
  1692. (AF_DEFINE_STYLE_CLASS, AF_DECLARE_STYLE_CLASS): New macros.
  1693. * src/autofit/afstyles.h: New file, using data from `afscript.h'.
  1694. * src/autofit/afscript.h: Updated.
  1695. * src/autofit/afcjk.c (af_cjk_metrics_init_widths,
  1696. af_cjk_metrics_init_blues, af_cjk_hint_edges): Updated.
  1697. * src/autofit/afglobal.c (SCRIPT): Updated.
  1698. (STYLE): Redefine macro to load `afstyles.h'.
  1699. (af_script_names) [FT_DEBUG_LEVEL_TRACE]: Replace with...
  1700. (af_style_names): ... this array.
  1701. (af_face_globals_compute_script_coverage): Renamed to...
  1702. (af_face_globals_compute_style_coverage): ... this.
  1703. Updated.
  1704. (af_face_globals_new, af_face_globals_free,
  1705. af_face_globals_get_metrics): Updated.
  1706. * src/autofit/afglobal.h (SCRIPT): Updated.
  1707. (STYLE): Redefine macro to load `afstyles.h'.
  1708. (AF_SCRIPT_FALLBACK): Update definition. This will get more
  1709. refinements with later on.
  1710. (AF_SCRIPT_UNASSIGNED): Replace with...
  1711. (AF_STYLE_UNASSIGNED): ... this macro.
  1712. (AF_FaceGlobalsRec): Updated.
  1713. * src/autofit/aflatin.c (af_latin_metrics_init_widths,
  1714. af_latin_metrics_init_blues, af_latin_metrics_scale_dim,
  1715. af_latin_hint_edges): Updated.
  1716. * src/autofit/aflatin2.c (af_latin2_metrics_init_widths): Updated.
  1717. (af_ltn2_uniranges): Removed.
  1718. * src/autofit/afloader.c (af_loader_load_g, af_loader_load_glyph):
  1719. Updated.
  1720. * src/autofit/afpic.c (autofit_module_class_pic_init): Updated.
  1721. * src/autofit/afpic.h (AF_STYLE_CLASSES_GET): New macro.
  1722. (AFModulePIC): Add `af_style_classes' and `af_style_classes_rec'
  1723. members.
  1724. * src/autofit/afranges.h: Updated.
  1725. * src/autofit/rules.mk (AUTOF_DRV_H): Add `afstyles.h'.
  1726. 2013-12-19 Werner Lemberg <wl@gnu.org>
  1727. [autofit] Factor scripts and uniranges out of writing system files.
  1728. * src/autofit/afranges.c, src/autofit/afranges.h: New files.
  1729. * src/autofit/afscript.h: Extend `SCRIPT' macro with more
  1730. parameters, taking data from the writing system files.
  1731. * src/autofit/aftypes.h: Updated.
  1732. * src/autofit/afglobal.c: Include `afranges.h'.
  1733. Load `afscript.h' to call AF_DEFINE_SCRIPT_CLASS.
  1734. * src/autofit/afglobal.c: Include `afranges.h'.
  1735. Load `afscript.h' to call AF_DECLARE_SCRIPT_CLASS.
  1736. * src/autofit/afcjk.c, src/autofit/afcjk.h: Updated.
  1737. * src/autofit/afdummy.c, src/autofit/afdummy.h: Updated.
  1738. * src/autofit/afindic.c, src/autofit/afindic.h: Updated.
  1739. * src/autofit/aflatin.c, src/autofit/aflatin.h: Updated.
  1740. * src/autofit/aflatn2.c, src/autofit/aflatn2.h: Updated.
  1741. * src/autofit/afpic.c: Updated.
  1742. * src/autofir/autofit.c: Include `afranges.c'.
  1743. * src/autofit/rules.mk (AUTOF_DRV_SRC): Add `afranges.c'.
  1744. 2013-12-18 Werner Lemberg <wl@gnu.org>
  1745. [autofit] More code orthogonality.
  1746. * src/autofit/aftypes.h (AF_StyleMetrics): Replace `script_class'
  1747. pointer to an `AF_ScriptClass' structure with `script' index of type
  1748. `AF_Script'.
  1749. Move some code around.
  1750. * src/autofit/afcjk.c: Include `afpic.h'.
  1751. (af_cjk_metrics_init_widths, af_cjk_metrics_init_blues,
  1752. af_cjk_hint_edges): Updated.
  1753. * src/autofit/aflatin.c: Include `afpic.h'.
  1754. (af_latin_metrics_init_widths, af_latin_metrics_init_blues,
  1755. af_latin_metrics_scale_dim, af_latin_hint_edges): Updated.
  1756. * src/autofit/afglobal.c (af_face_globals_get_metrics): Updated.
  1757. * src/autofit/afloader.c (af_loader_load_g, af_loader_load_glyph):
  1758. Updated.
  1759. 2013-12-18 Werner Lemberg <wl@gnu.org>
  1760. [autofit] s/ScriptMetrics/StyleMetrics/.
  1761. 2013-12-18 Werner Lemberg <wl@gnu.org>
  1762. [autofit] s/script_{metrics,hints}/style_{metrics,hints}/
  1763. 2013-12-18 Werner Lemberg <wl@gnu.org>
  1764. [autofit] s/gscripts/gstyles/.
  1765. 2013-12-18 Werner Lemberg <wl@gnu.org>
  1766. [autofit] s/glyph_scripts/glyph_styles/.
  1767. This is the first commit of a series to create a new top-level
  1768. structure (a `style') for handling scripts, writing_systems, and
  1769. soon-to-be-added coverages.
  1770. 2013-12-17 Werner Lemberg <wl@gnu.org>
  1771. [autofit] s/AF_Script_/AF_WritingSystem_/ where appropriate.
  1772. 2013-12-11 Infinality <infinality@infinality.net>
  1773. [truetype] Simplify logic of rendering modes.
  1774. This patch unifies the subpixel and non-subpixel cases.
  1775. * src/truetype/ttinterp.h (TT_ExecContextRec): Remove
  1776. `grayscale_hinting'; all code should refer to `grayscale' instead.
  1777. Remove unused `native_hinting' member.
  1778. Rename `subpixel_hinting' member to `subpixel.
  1779. * src/truetype/ttgload.c (TT_LOADER_SET_PP): Updated.
  1780. (tt_loader_init): Updated.
  1781. * src/truetype/ttinterp.c (Ins_GETINFO): Simplify.
  1782. Updated.
  1783. 2013-12-11 Werner Lemberg <wl@gnu.org>
  1784. [documentation] Add section how to include FreeType header files.
  1785. Problem reported by David Kastrup <dak@gnu.org>.
  1786. Surprisingly, a description how to do that was completely missing in
  1787. the API reference.
  1788. * include/freetype.h, include/ftchapters.h: New documentation
  1789. section `header_inclusion'.
  1790. 2013-12-10 Werner Lemberg <wl@gnu.org>
  1791. [autofit] s/DFLT/NONE/, s/dflt/none/.
  1792. 2013-12-10 Werner Lemberg <wl@gnu.org>
  1793. [autofit] s/AF_SCRIPT_NONE/AF_SCRIPT_UNASSIGNED/.
  1794. 2013-12-10 Werner Lemberg <wl@gnu.org>
  1795. [truetype] Fix scaling of vertical phantom points.
  1796. * src/truetype/ttgload.c (load_truetype_glyph): Scale pp3.x and
  1797. pp4.x also.
  1798. 2013-12-10 Werner Lemberg <wl@gnu.org>
  1799. [truetype] Fix positioning of composite glyphs.
  1800. Problem reported by Nigel Tao <nigeltao@golang.org>.
  1801. * src/truetype/ttgload.c (TT_Hint_Glyph): Remove code that shifts
  1802. the glyph (component) by a fractional value computed from the LSB
  1803. phantom point. This is wrong, since the horizontal phantom points
  1804. get rounded horizontally later on.
  1805. 2013-12-08 Werner Lemberg <wl@gnu.org>
  1806. * Version 2.5.2 released.
  1807. =========================
  1808. Tag sources with `VER-2-5-2'.
  1809. * docs/VERSION.DLL: Update documentation and bump version number to
  1810. 2.5.2.
  1811. * README, Jamfile (RefDoc), builds/windows/vc2005/freetype.vcproj,
  1812. builds/windows/vc2005/index.html,
  1813. builds/windows/vc2008/freetype.vcproj,
  1814. builds/windows/vc2008/index.html,
  1815. builds/windows/vc2010/freetype.vcxproj,
  1816. builds/windows/vc2010/index.html,
  1817. builds/windows/visualc/freetype.dsp,
  1818. builds/windows/visualc/freetype.vcproj,
  1819. builds/windows/visualc/index.html,
  1820. builds/windows/visualce/freetype.dsp,
  1821. builds/windows/visualce/freetype.vcproj,
  1822. builds/windows/visualce/index.html,
  1823. builds/wince/vc2005-ce/freetype.vcproj,
  1824. builds/wince/vc2005-ce/index.html,
  1825. builds/wince/vc2008-ce/freetype.vcproj,
  1826. builds/wince/vc2008-ce/index.html: s/2.5.1/2.5.2/, s/251/252/.
  1827. * include/freetype/freetype.h (FREETYPE_PATCH): Set to 2.
  1828. * builds/unix/configure.raw (version_info): Set to 17:1:11.
  1829. * CMakeLists.txt (VERSION_PATCH): Set to 2.
  1830. * docs/CHANGES: Updated.
  1831. 2013-12-07 Werner Lemberg <wl@gnu.org>
  1832. [truetype] Next round in phantom point handling.
  1833. Greg Hitchcock provided very interesting insights into the
  1834. complicated history of the horizontal positions of the TSB and BSB
  1835. phantom points.
  1836. * src/truetype/ttgload.c (TT_LOADER_SET_PP)
  1837. [TT_CONFIG_OPTION_SUBPIXEL_HINTING]: Use `subpixel_hinting' and
  1838. `grayscale_hinting' flags as conditionals for the x position of TSB
  1839. and BSB.
  1840. 2013-12-05 Werner Lemberg <wl@gnu.org>
  1841. * builds/freetype.mk (FT_CC): Removed. Unused.
  1842. 2013-12-04 Werner Lemberg <wl@gnu.org>
  1843. [sfnt] Fix handling of embedded bitmap strikes.
  1844. This corrects the commit from 2013-11-21. Problem reported by
  1845. Andrey Panov <panov@canopus.iacp.dvo.ru>.
  1846. * src/sfnt/ttsbit.c (tt_sbit_decoder_load_bitmap): Fix logic to
  1847. detect excessive bytes for bit-aligned bitmaps.
  1848. 2013-12-03 Werner Lemberg <wl@gnu.org>
  1849. [truetype] Remove dead code.
  1850. Reported by Nigel Tao <nigeltao@golang.org>.
  1851. * include/internal/tttypes.h (TT_LoaderRec): Remove unused
  1852. `preserve_pps' field.
  1853. * src/truetype/ttgload.c (TT_Hint_Glyph): Updated.
  1854. 2013-12-03 Werner Lemberg <wl@gnu.org>
  1855. [truetype] Fix phantom point handling.
  1856. This is a further improvement to the changes from 2013-11-06.
  1857. * src/truetype/ttgload.c (TT_Hint_Glyph): Horizontal phantom points
  1858. are rounded horizontally, vertical ones are rounded vertically.
  1859. (TT_LOADER_SET_PP): The horizontal position of vertical phantom
  1860. points in pre-ClearType mode is zero, as shown in the OpenType
  1861. specification.
  1862. 2013-12-02 Werner Lemberg <wl@gnu.org>
  1863. [truetype] Fix change from 2013-11-20.
  1864. Problem reported by Akira Kakuto <kakuto@fuk.kindai.ac.jp>.
  1865. * src/truetype/ttgload.c (TT_Load_Simple_Glyph): Protect call to
  1866. `Update_Max' with both a TT_USE_BYTECODE_INTERPRETER guard and a
  1867. `IS_HINTED' clause.
  1868. Also remove redundant check using `maxSizeOfInstructions' – in
  1869. simple glyphs, the bytecode data comes before the outline data, and
  1870. a validity test for this is already present.
  1871. 2013-11-27 Werner Lemberg <wl@gnu.org>
  1872. [autofit] Fix use of dumping functions in `ftgrid' demo program.
  1873. * src/autofit/afhints.c (AF_DUMP) [FT_DEBUG_AUTOFIT]: New macro.
  1874. (af_glyph_hints_dump_points, af_glyph_hints_dump_segments,
  1875. af_glyph_hints_dump_edges) [FT_DEBUG_AUTOFIT]: Add parameter to
  1876. handle output to stdout.
  1877. Use AF_DUMP.
  1878. (af_glyph_hints_dump_points, af_glyph_hints_dump_segments,
  1879. af_glyph_hints_dump_edges) [!FT_DEBUG_AUTOFIT]: Removed.
  1880. 2013-11-25 Werner Lemberg <wl@gnu.org>
  1881. * Version 2.5.1 released.
  1882. =========================
  1883. Tag sources with `VER-2-5-1'.
  1884. * docs/VERSION.DLL: Update documentation and bump version number to
  1885. 2.5.1.
  1886. * README, Jamfile (RefDoc), builds/windows/vc2005/freetype.vcproj,
  1887. builds/windows/vc2005/index.html,
  1888. builds/windows/vc2008/freetype.vcproj,
  1889. builds/windows/vc2008/index.html,
  1890. builds/windows/vc2010/freetype.vcxproj,
  1891. builds/windows/vc2010/index.html,
  1892. builds/windows/visualc/freetype.dsp,
  1893. builds/windows/visualc/freetype.vcproj,
  1894. builds/windows/visualc/index.html,
  1895. builds/windows/visualce/freetype.dsp,
  1896. builds/windows/visualce/freetype.vcproj,
  1897. builds/windows/visualce/index.html,
  1898. builds/wince/vc2005-ce/freetype.vcproj,
  1899. builds/wince/vc2005-ce/index.html,
  1900. builds/wince/vc2008-ce/freetype.vcproj,
  1901. builds/wince/vc2008-ce/index.html: s/2.5.0/2.5.1/, s/250/251/.
  1902. * include/freetype/freetype.h (FREETYPE_PATCH): Set to 1.
  1903. * builds/unix/configure.raw (version_info): Set to 17:0:11.
  1904. * CMakeLists.txt (VERSION_PATCH): Set to 1.
  1905. * docs/CHANGES, docs/release: Updated.
  1906. 2013-11-23 Werner Lemberg <wl@gnu.org>
  1907. [truetype]: Add tricky font names `hkscsiic.ttf' and `iicore.ttf'.
  1908. * src/truetype/ttobjs.c (TRICK_NAMES_MAX_CHARACTERS,
  1909. TRICK_NAMES_COUNT): Updated.
  1910. (trick_names): Add family name for the two fonts.
  1911. 2013-11-23 Werner Lemberg <wl@gnu.org>
  1912. * src/sfnt/ttsbit.c (tt_sbit_decoder_load_bitmap): Typo.
  1913. 2013-11-21 Werner Lemberg <wl@gnu.org>
  1914. [sfnt] Typo.
  1915. Problem reported by Hin-Tak Leung <htl10@users.sourceforge.net>.
  1916. * src/sfnt/sfobjs.c (sfnt_load_face): Return correct `bsize->width'
  1917. value if the font lacks an `OS/2' table.
  1918. 2013-11-21 Werner Lemberg <wl@gnu.org>
  1919. [sfnt] Improve handling of buggy embedded bitmap strikes.
  1920. We are now able to successfully load `AppleMyoungJo.ttf'.
  1921. Problem reported by Hin-Tak Leung <htl10@users.sourceforge.net>.
  1922. * src/sfnt/ttsbit.c (tt_sbit_decoder_load_bitmap): Don't trust glyph
  1923. format.
  1924. 2013-11-20 Werner Lemberg <wl@gnu.org>
  1925. [truetype] Don't trust `maxp's `maxSizeOfInstructions'.
  1926. Problem reported by Hin-Tak Leung <htl10@users.sourceforge.net>; see
  1927. http://lists.nongnu.org/archive/html/freetype-devel/2013-08/msg00005.html
  1928. for details.
  1929. * src/base/ftobjs.c (FT_Load_Glyph): Check size of `fpgm' and `prep'
  1930. tables also for setting `autohint'.
  1931. * src/truetype/ttgload.c (TT_Load_Simple_Glyph): Use code from
  1932. `TT_Process_Composite_Glyph' for handling unreliable values of
  1933. `maxSizeOfInstructions'.
  1934. 2013-11-16 Werner Lemberg <wl@gnu.org>
  1935. [sfnt] Fix `OS/2' table version 5 support.
  1936. We now follow the `official' announcement from Microsoft (on the
  1937. OpenType mailing list, which unfortunately hasn't a public archive).
  1938. * include/freetype/tttables.h (TT_OS2):
  1939. s/usLowerPointSize/usLowerOpticalPointSize/,
  1940. s/usUpperPointSize/usUpperOpticalPointSize/.
  1941. * src/sfnt/ttload.c (tt_face_load_os2): Update, and set correct
  1942. default values.
  1943. 2013-11-13 Werner Lemberg <wl@gnu.org>
  1944. * builds/unix/ft2unix.h: Remove. No longer necessary.
  1945. * builds/unix/install.mk (install): Updated.
  1946. 2013-11-13 Werner Lemberg <wl@gnu.org>
  1947. Simplify header file hierarchy.
  1948. This large patch changes the header file directory layout from
  1949. `include/freetype/...' to `include/...', effectively removing one
  1950. level. Since the file `ft2build.h' is also located in `include'
  1951. (and it stays there even after installation), all FreeType header
  1952. files are now in a single directory.
  1953. Applications that use (a) `freetype-config' or FreeType's
  1954. `pkg-config' file to get the include directory for the compiler, and
  1955. (b) the documented way for header inclusion like
  1956. #include <ft2build.h>
  1957. #include FT_FREETYPE_H
  1958. ...
  1959. don't need any change to the source code.
  1960. * include/freetype/*: Move up to...
  1961. * include/*: ... this directory.
  1962. * builds/amiga/include/freetype/*: Move up to...
  1963. * builds/amiga/include/*: ... this directory.
  1964. */*: Essentially do `s@/freetype/@/@' where appropriate.
  1965. * CMakeList.txt: Simplify.
  1966. * builds/unix/freetype-config.in, builds/unix/freetype2.in: For
  1967. `--cflags', return a single directory.
  1968. * builds/unix/install.mk (install): No longer try to remove `cache'
  1969. and `internal' subdirectories; instead, remove the `freetype'
  1970. subdirectory.
  1971. 2013-11-12 Werner Lemberg <wl@gnu.org>
  1972. [truetype] Fix last `truetype' commit.
  1973. * src/truetype/ttgload.c (tt_get_metrics): Preserve stream position.
  1974. Return error value.
  1975. (load_truetype_glyph): Updated.
  1976. 2013-11-10 Werner Lemberg <wl@gnu.org>
  1977. * docs/CMAKE: New dummy file.
  1978. 2013-11-08 Dave Arnold <darnold@adobe.com>
  1979. [cff] Fix for hints that touch.
  1980. * src/cff/cf2hints.c (cf2_hintmap_insertHint): Fix condition for
  1981. finding index value of insertion point.
  1982. 2013-11-06 Werner Lemberg <wl@gnu.org>
  1983. [truetype] Fix handling of phantom points in composite glyphs.
  1984. Problem reported by Nigel Tao <nigeltao@golang.org>.
  1985. This is a follow-up commit to the previous one.
  1986. * src/truetype/ttgload.c (load_truetype_glyph): Call
  1987. `tt_get_metrics' after loading the glyph header.
  1988. 2013-11-06 Werner Lemberg <wl@gnu.org>
  1989. [truetype] Improve emulation of vertical metrics.
  1990. This commit also improves the start values of vertical phantom
  1991. points. Kudos to Greg Hitchcock for help.
  1992. * src/truetype/ttgload.c (TT_Get_VMetrics): Add parameter to pass
  1993. `yMax' value. Replace code with fixed Microsoft definition.
  1994. (tt_get_metrics): Updated.
  1995. (TT_LOADER_SET_PP): Add explanation how to initialize phantom
  1996. points, taken from both the OpenType specification and private
  1997. communication with Greg (which will eventually be added to the
  1998. standard).
  1999. Fix horizontal position of `pp3' and `pp4'.
  2000. * src/truetype/ttgload.h: Updated.
  2001. * src/truetype/ttdriver.c (tt_get_advances): Updated.
  2002. * docs/CHANGES: Updated.
  2003. 2013-11-05 Werner Lemberg <wl@gnu.org>
  2004. * builds/windows/vc2010/freetype.vcxproj: s/v110/v100/.
  2005. PlatformToolSet version 110 is for VC2012.
  2006. Problem reported (with solution) by Dave Arnold <darnold@adobe.com>.
  2007. 2013-11-05 Werner Lemberg <wl@gnu.org>
  2008. [truetype] Correctly reset point tags for glyph components.
  2009. Problem reported by Nigel Tao <nigeltao@golang.org>.
  2010. * src/truetype/ttgload.c (TT_Process_Composite_Glyph): Fix loop.
  2011. 2013-11-02 Werner Lemberg <wl@gnu.org>
  2012. [truetype] Fix GETINFO opcode handling of subpixel hinting bits.
  2013. * src/truetype/ttinterp.c (Ins_GETINFO): Don't request bit 6 set to
  2014. get info on subpixel hinting.
  2015. * docs/CHANGES: Updated.
  2016. 2013-11-02 Werner Lemberg <wl@gnu.org>
  2017. Fix Savannah bug #40451.
  2018. Simply apply the patch from the bug report.
  2019. * builds/unix/ftconfig.in, builds/vms/ftconfig.h,
  2020. include/freetype/config/ftconfig.h: The used #pragma directives only
  2021. work with gcc versions 4.6 and higher.
  2022. 2013-11-01 Werner Lemberg <wl@gnu.org>
  2023. * docs/CHANGES: Updated.
  2024. 2013-11-01 Werner Lemberg <wl@gnu.org>
  2025. [truetype] Minor code refactoring.
  2026. Two benefits: The allocated FDEF (and IDEF) array gets slightly
  2027. smaller, and the `ttdebug' demo program has access to function
  2028. numbers without additional costs.
  2029. Fortunately, no changes to FontForge are necessary – this is the
  2030. only external TrueType debugger I know of, but others may exist and
  2031. should check the code accordingly.
  2032. * src/truetype/ttinterp.h (TT_CallRec): Replace `Cur_Restart' and
  2033. `Cur_End' with a pointer to the corresponding `TT_DefRecord'
  2034. structure.
  2035. * src/truetype/ttinterp.c (DO_JROT, DO_JMPR, DO_JROF, Ins_ENDF,
  2036. Ins_CALL, Ins_LOOPCALL, Ins_UNKNOWN, TT_RunIns <Invalid_Opcode>):
  2037. Updated.
  2038. 2013-10-27 Werner Lemberg <wl@gnu.org>
  2039. [sfnt] Implement support for `OS/2' table version 5.
  2040. See
  2041. http://typedrawers.com/discussion/470/new-microsoft-size-specific-design-selection-mechanism
  2042. for the announcement.
  2043. * include/freetype/tttables.h (TT_OS2): Add fields
  2044. `usLowerPointSize' and `usUpperPointSize'. Since FreeType returns
  2045. this structure only as a pointer through `FT_Get_Sfnt_Table', there
  2046. shouldn't be any ABI problems.
  2047. * src/sfnt/ttload.c (tt_face_load_os2): Implement it.
  2048. * docs/CHANGES: Updated.
  2049. 2013-10-24 Werner Lemberg <wl@gnu.org>
  2050. * README.git, docs/CHANGES, docs/INSTALL: Updated.
  2051. 2013-10-24 John Cary <cary@txcorp.com>
  2052. Provide cmake support.
  2053. * CMakeLists.txt: New file.
  2054. 2013-10-23 Kenneth Miller <kennethadammiller@yahoo.com>
  2055. Werner Lemberg <wl@gnu.org>
  2056. Provide support for x64 builds in Visual C++ project files.
  2057. * src/builds/win32: Renamed to...
  2058. * src/builds/windows: This.
  2059. * src/builds/windows/vc2010/*: Updated to handle x64 target.
  2060. * src/builds/windows/*.mk, docs/INSTALL.GNU: s/win32/windows/ where
  2061. appropriate.
  2062. 2013-10-22 Werner Lemberg <wl@gnu.org>
  2063. * src/base/md5.c, src/base/md5.h: Updated to recent version.
  2064. * src/base/ftobjs.c: Updated; `md5.c' no longer uses `free'.
  2065. The canonical URL to get updates for this file is
  2066. http://cvsweb.openwall.com/cgi/cvsweb.cgi/Owl/packages/popa3d/popa3d/md5/
  2067. as the author told me in private communication.
  2068. 2013-10-19 Werner Lemberg <wl@gnu.org>
  2069. [autofit] s/SMALL_TOP/X_HEIGHT/.
  2070. * src/autofit/afblue.dat: Updated.
  2071. * src/autofit/afblue.c, src/autofit/afblue.h: Regenerated.
  2072. * src/autofit/aflatin.c, src/autofit/aflatin.h,
  2073. src/autofit/atlatin2.c: Updated.
  2074. 2013-10-19 Werner Lemberg <wl@gnu.org>
  2075. * src/autofit/afblue.dat: s/MINOR/DESCENDER/.
  2076. * src/autofit/afblue.c, src/autofit/afblue.h: Regenerated.
  2077. 2013-10-16 Werner Lemberg <wl@gnu.org>
  2078. [autofit] Add description strings to script entries.
  2079. Currently, this is unused.
  2080. * src/autofit/afscript.h: Do it.
  2081. * src/autofit/afglobal.c, src/autofit/afpic.c,
  2082. src/autofit/aftypes.h: Updated.
  2083. 2013-10-16 Werner Lemberg <wl@gnu.org>
  2084. [autofit] Improve tracing message for extra light flag.
  2085. * src/autofit/aflatin.c (af_latin_metrics_scale_dim): Do it.
  2086. 2013-10-15 Chongyu Zhu <lembacon@gmail.com>
  2087. [arm] Fix thumb2 inline assembly under LLVM.
  2088. When using `ADD' with an immediate operand, the instruction is
  2089. actually `ADD Rd, Rn, #<imm12>', that is, the maximum of the
  2090. immediate operand cannot exceed 4095. It will fail to compile with
  2091. LLVM.
  2092. However, in GCC, due to some legacy compatibility considerations,
  2093. `ADD.W' will be automatically emitted when the immediate operand is
  2094. larger than 4095.
  2095. * builds/unix/ftconfig.in, include/freetype/config/ftconfig.h
  2096. (FT_MulFix_arm) [__GNUC__]: Support clang compiler.
  2097. * src/truetype/ttinterp.c (TT_MulFix14_arm) [__GNUC__]: Ditto.
  2098. 2013-10-12 Werner Lemberg <wl@gnu.org>
  2099. [autofit] Improve tracing of `latin' hinter.
  2100. * src/autofit/aflatin.c (af_latin_metrics_init_blues): Report blue
  2101. zone types.
  2102. (af_latin_metrics_scale_dim): Report scaling changes due to x height
  2103. alignment.
  2104. Report scaled stroke width and blue zone values.
  2105. 2013-10-03 Dave Arnold <darnold@adobe.com>
  2106. * src/cff/cf2font.c (cf2_computeDarkening): Avoid division by zero.
  2107. Note that the old code avoided using a region of the piecewise
  2108. linear function where the slope was zero. The recovery was to use a
  2109. different section of the function, which produced a different,
  2110. incorrect amount of darkening.
  2111. 2013-10-02 Darrell Bellert <darrell.bellert@hl.konicaminolta.us>
  2112. * src/sfnt/ttload.c (tt_face_load_pclt): Fix `pclt_fields'.
  2113. 2013-10-02 Dave Arnold <darnold@adobe.com>
  2114. * src/cff/cf2font.c (cf2_computeDarkening): Initialize darkenAmount.
  2115. This line was lost in commit 89ca1fd6 (from 2013-06-25). The effect
  2116. is to use a previous darkening amount when producing an unhinted,
  2117. unscaled outline. This can cause autohint samples in ftgrid and
  2118. ftview to be based on darkened CFF outlines instead of unhinted,
  2119. undarkened ones.
  2120. 2013-09-29 Dave Arnold <darnold@adobe.com>
  2121. Fix Savannah bug #39295.
  2122. The bug was caused by switching to the initial hintmap (the one in
  2123. effect when `moveto' executes) just before drawing the final element
  2124. in the charstring. This ensured that the path was closed (in both
  2125. Character Space and Device Space). But if the final element was a
  2126. curve and if the final hintmap was different enough from the initial
  2127. one, then the curve was visibly distorted.
  2128. The first part of the fix is to draw the final curve using the final
  2129. hintmap as specified by the charstring. This corrects the
  2130. distortion but does not ensure closing in Device Space. It may
  2131. require the rasterizer to automatically generate an extra closing
  2132. line. Depending on the hintmap differences, this line could be from
  2133. zero to a couple pixels in length.
  2134. The second part of the fix covers the case where the charstring
  2135. subpath is closed with an explicit line. We now modify that line's
  2136. end point to avoid the distortion.
  2137. Some glyphs in the bug report font (TexGyreHeros-Regular) that show
  2138. the change are:
  2139. 25ppem S (98)
  2140. 24ppem eight (52)
  2141. 25.5ppem p (85)
  2142. Curves at the *end* of a subpath are no longer distorted. However,
  2143. some of these glyphs have bad hint substitutions in the middle of a
  2144. subpath, and these are not affected.
  2145. The patch has been tested with a set of 106 fonts that shipped with
  2146. Adobe Creative Suite 4, together with 756 Open Source CFF fonts from
  2147. Google Fonts. There are 1.5 million glyphs, of which some 20k are
  2148. changed with the fix. A sampling of a few hundred of these changes
  2149. have been examined more closely, and the changes look good (or at
  2150. least acceptable).
  2151. * src/cff/cf2hints.h (CF2_GlyphPathRec): New element `pathIsClosing'
  2152. to indicate that we synthesize a closepath line.
  2153. * src/cff/cf2hints.c (cf2_glyphpath_init): Updated.
  2154. (cf2_glyphpath_pushPrevElem): If closing, use first hint map (for
  2155. `lineto' operator) and adjust hint zone.
  2156. For synthesized closing lines, use end point in first hint zone.
  2157. (cf2_glyphpath_lineTo): Take care of synthesized closing lines. In
  2158. particular, shift the detection of zero-length lines from character
  2159. space to device space.
  2160. (cf2_glyphpath_closeOpenPath): Remove assertion.
  2161. Updated.
  2162. 2013-09-25 Werner Lemberg <wl@gnu.org>
  2163. * src/autofit/aflatin.c (af_{grek,cyrl}_uniranges): Fix arrays.
  2164. 2013-09-25 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  2165. [bdf, pcf] Refuse non-zero face_index.
  2166. Suggested by Akira Tagoh, see
  2167. http://lists.gnu.org/archive/html/freetype/2013-09/msg00030.html
  2168. * src/bdf/bdfdrivr.c (BDF_Face_Init): Return `Invalid_Argument'
  2169. error if the font could be opened but non-zero `face_index' is
  2170. given.
  2171. * src/pcf/pcfdrivr.c (PCF_Face_Init): Ditto.
  2172. * src/type42/t42objs.c (T42_Face_Init): Remove unrequired FT_UNUSED
  2173. macro for `face_index' because it is validated later.
  2174. 2013-09-23 Werner Lemberg <wl@gnu.org>
  2175. Fix Savannah bug #40090.
  2176. * src/autofit/afcjk.c (af_cjk_metrics_scale): Revert commit
  2177. 306f8c5d (from 2013-08-25) affecting this function.
  2178. 2013-09-22 Werner Lemberg <wl@gnu.org>
  2179. [autofit] Disunify Cyrillic and Greek handling from Latin.
  2180. * src/autofit/afscript.h: Add Cyrillic and Greek.
  2181. * src/autofit/afblue.dat (AF_BLUE_STRINGSET_GREK,
  2182. AF_BLUE_STRINGSET_CYRL): Add blue zones for Greek and Cyrillic.
  2183. (AF_BLUE_STRINGSET_LATN): Fix typo.
  2184. * src/autofit/afblue.c, src/autofit/afblue.h: Regenerated.
  2185. * src/autofit/aflatin.c (af_grek_uniranges, af_cyrl_uniranges): New
  2186. arrays.
  2187. (af_grek_script_class, af_cyrl_script_class): New scripts.
  2188. * src/autofit/aflatin.h: Updated.
  2189. 2013-09-20 Werner Lemberg <wl@gnu.org>
  2190. * docs/CHANGES: Updated.
  2191. 2013-09-20 Behdad Esfahbod <behdad@behdad.org>
  2192. Fix vertical size of emboldened glyphs.
  2193. Cf. https://bugzilla.gnome.org/show_bug.cgi?id=686709
  2194. * src/base/ftsynth.c (FT_GlyphSlot_Embolden): Adjust `horiBearingY'
  2195. also.
  2196. 2013-09-11 Alexei Podtelezhnikov <apodtele@gmail.com>
  2197. * include/freetype/ftoutln.h: Correct FT_Outline_Get_Orientation
  2198. algorithm description.
  2199. 2013-09-11 Werner Lemberg <wl@gnu.org>
  2200. [autofit] Improve Hebrew rendering.
  2201. This change introduces a new blue zone property
  2202. `AF_BLUE_PROPERTY_LATIN_LONG' to make the auto-hinter ignore short
  2203. top segments.
  2204. * src/autofit/afblue.dat: Fix Hebrew blue strings.
  2205. Use AF_BLUE_PROPERTY_LATIN_LONG for AF_BLUE_STRING_HEBREW_TOP.
  2206. * src/autofit/afblue.hin (AF_BLUE_PROPERTY_LATIN_LONG): New macro.
  2207. * src/autofit/afblue.c, src/autofit/afblue.h: Updated.
  2208. * src/autofit/aflatin.c (af_latin_metrics_init_blues): Handle
  2209. `AF_LATIN_IS_LONG_BLUE'.
  2210. * src/autofit/aflatin.h (AF_LATIN_IS_LONG_BLUE): New macro.
  2211. 2013-08-28 Behdad Esfahbod <behdad@google.com>
  2212. [sfnt] Fix frame access while reading WOFF table directory.
  2213. * src/sfnt/sfobjs.c (woff_open_font): Using single memory frame
  2214. while reading the directory entries for the whole loop.
  2215. 2013-08-29 Werner Lemberg <wl@gnu.org>
  2216. Behdad Esfahbod <behdad@google.com>
  2217. Implement support for WOFF containers.
  2218. We simply synthesize a SFNT from the WOFF, create a memory stream
  2219. for the new data, and load the SFNT as usual.
  2220. Does NOT add any API to access WOFF metadata or private blocks.
  2221. * include/freetype/internal/tttypes.h (WOFF_HeaderRec,
  2222. WOFF_TableRec): New structures.
  2223. * include/freetype/tttags.h (TTAG_wOFF): New macro.
  2224. * src/base/ftobjs.c (FT_Open_Face): Set `stream' after calling
  2225. `open_face'.
  2226. * src/sfnt/sfobjs.c [FT_CONFIG_OPTION_SYSTEM_ZLIB]: Include
  2227. `FT_GZIP_H'.
  2228. (WRITE_BYTE, WRITE_USHORT, WRITE_ULONG): New temporary macros for
  2229. writing to a stream.
  2230. (sfnt_stream_close, compare_offsets, woff_open_font): New functions.
  2231. (sfnt_open_font): Handle `TTAG_wOFF'.
  2232. (sfnt_init_face): Set `stream' after calling `sfnt_open_font'.
  2233. * src/truetype/ttobjs.c (tt_face_init): Set `stream' after calling
  2234. `sfnt->init_face'.
  2235. * src/base/ftobjs.c (open_face): Use a pointer to FT_Stream as an
  2236. argument so that a changed stream survives.
  2237. Update callers.
  2238. 2013-08-28 Werner Lemberg <wl@gnu.org>
  2239. [gzip] New function `FT_Gzip_Uncompress'.
  2240. This is modeled after zlib's `uncompress' function. We need this
  2241. for WOFF support.
  2242. * include/freetype/ftgzip.h, src/gzip/ftgzip.c (FT_Gzip_Uncompress):
  2243. New function.
  2244. * src/gzip/rules.mk: Rewrite to better reflect dependencies.
  2245. 2013-08-28 Werner Lemberg <wl@gnu.org>
  2246. [autofit] Fix `make multi' compilation.
  2247. * src/autofit/afblue.cin, src/autofit/afblue.c: Don't include
  2248. `afblue.h' but `aftypes.h'.
  2249. * src/autofit/afcjk.c: Don't include `aftypes.h' but `afglobal.h'.
  2250. 2013-08-28 Werner Lemberg <wl@gnu.org>
  2251. [autofit] Fix C++ compilation.
  2252. * src/autofit/afglobal.c (af_face_globals_get_metrics),
  2253. src/autofit/afdummy.c (af_dflt_script_class), src/autofit/afindic.c
  2254. (af_deva_script_class): Use proper casts.
  2255. 2013-08-27 Behdad Esfahbod <behdad@google.com>
  2256. * src/sfnt/ttload.c (tt_face_load_font_dir): Fix sign typos.
  2257. 2013-08-27 Behdad Esfahbod <behdad@google.com>
  2258. FT_Open_Face: Improve external stream handling.
  2259. If the font's `clazz->init_face' function wants to swap to new
  2260. stream, handling of whether original stream was external could
  2261. result to either memory leak or double free. Mark externality into
  2262. face flags before calling `init_face' such that the clazz can handle
  2263. external streams properly.
  2264. * src/base/ftobjs.c (FT_Open_Face): Move code to set
  2265. FT_FACE_FLAG_EXTERNAL_STREAM to...
  2266. (open_face): This function.
  2267. 2013-08-27 Werner Lemberg <wl@gnu.org>
  2268. Remove `FT_SqrtFixed' function.
  2269. It's no longer used.
  2270. * include/freetype/internal/ftcalc.h, src/base/ftcalc.c: Do it.
  2271. 2013-08-27 Werner Lemberg <wl@gnu.org>
  2272. [autofit] While tracing, report script names instead of ID values.
  2273. * src/autofit/afglobal.c (af_script_names) [FT_DEBUG_LEVEL_TRACE]:
  2274. New array.
  2275. * src/autofit/afglobal.h: Updated.
  2276. * src/autofit/afcjk.c (af_cjk_metrics_init_widths,
  2277. af_cjk_hint_edges): Use `af_script_names'.
  2278. * src/autofit/aflatin.c (af_latin_metrics_init_widths,
  2279. af_latin_hint_edges): Ditto.
  2280. 2013-08-26 Werner Lemberg <wl@gnu.org>
  2281. [autofit] Report used script while hinting a glyph.
  2282. * src/autofit/afcjk.c (af_cjk_hint_edges), src/autofit/aflatin.c
  2283. (af_latin_hint_edges): Implement it.
  2284. 2013-08-26 Werner Lemberg <wl@gnu.org>
  2285. [autofit] Add support for Hebrew script.
  2286. * src/autofit/afblue.dat: Add blue strings for Hebrew.
  2287. * src/autofit/afblue.c, src/autofit/afblue.h: Regenerated.
  2288. * src/autofit/aflatin.c (af_hebr_uniranges): New array.
  2289. (af_hebr_script_class): New script.
  2290. * src/autofit/aflatin.h, src/autofit/afscript.h: Updated.
  2291. 2013-08-26 Werner Lemberg <wl@gnu.org>
  2292. [autofit] Improve tracing messages.
  2293. * src/autofit/afcjk.c (af_cjk_metrics_init_widths): Mention script
  2294. ID in tracing message.
  2295. (af_cjk_metrics_init_blues): Initialize `axis' outside of the inner
  2296. loop.
  2297. Improve tracing messages.
  2298. (af_cjk_hint_edges) [FT_DEBUG_LEVEL_TRACE]: New variable
  2299. `num_actions' to count hinting actions.
  2300. Improve tracing messages.
  2301. * src/autofit/aflatin.c (af_latin_metrics_init_widths): Mention
  2302. script ID in tracing message.
  2303. (af_latin_metrics_init_blues, af_latin_hint_edges): Improve tracing
  2304. messages.
  2305. 2013-08-26 Werner Lemberg <wl@gnu.org>
  2306. Better tracing of loaded glyphs.
  2307. Previously, the loading of a glyph was traced at level 4, if at all.
  2308. With this change, all font loading routines emit a tracing message
  2309. at level 1, making it easier to select tracing output (for example
  2310. using F2_DEBUG="any:1 afhints:7 aflatin:7").
  2311. * src/bdf/bdfdrivr.c (BDF_Glyph_Load): Add tracing message.
  2312. * src/cff/cffdrivr.c (cff_glyph_load): Ditto.
  2313. * src/cff/cffgload.c (cff_decoder_prepare): Improve tracing
  2314. messages.
  2315. * src/cid/cidgload.c (cid_load_glyph): Use level 1 for tracing
  2316. message.
  2317. * src/pcf/pcfdrivr.c (PCF_Glyph_Load): Ditto.
  2318. * src/pfr/pfrobjs.c (pfr_slot_load): Add tracing message.
  2319. * src/truetype/ttgload.c (TT_Load_Glyph): Ditto.
  2320. * src/type1/t1gload.c (T1_Load_Glyph): Ditto.
  2321. * src/type42/t42objs.c (T42_GlyphSlot_Load): Ditto.
  2322. * src/winfonts/winfnt.c (FNT_Load_Glyph): Ditto.
  2323. 2013-08-26 Werner Lemberg <wl@gnu.org>
  2324. [autofit] Fix script selection.
  2325. * src/autofit/afglobal.c (af_face_globals_get_metrics): Use
  2326. `AF_SCRIPT_DFLT', not value 0.
  2327. Simplify code.
  2328. * src/autofit/afscript.h: Sort by script name.
  2329. 2013-08-26 Werner Lemberg <wl@gnu.org>
  2330. [autofit] Make `dummy' hinter work as expected.
  2331. * src/autofit/afdummy.c (af_dummy_hints_init): Properly set scaling
  2332. information.
  2333. (af_dummy_hints_apply): Scale the glyphs.
  2334. 2013-08-25 Werner Lemberg <wl@gnu.org>
  2335. [autofit] Make `cjk' module use blue stringsets.
  2336. * src/autofit/afcjk.c (AF_CJK_MAX_TEST_CHARACTERS): Removed.
  2337. (af_cjk_hani_blue_chars): Removed.
  2338. (AF_CJK_BLUE_TYPE_*): Removed.
  2339. (af_cjk_metrics_init_blues): Replace AF_CJK_MAX_TEST_CHARACTERS with
  2340. AF_BLUE_STRING_MAX_LEN.
  2341. Change loops to use offsets (in file `afblue.h') into the new arrays
  2342. `af_blue_stringsets' and `af_blue_strings' (in file `afblue.c').
  2343. Instead of three dimensions (as used in the old blue string array)
  2344. we now use properties to do the same, saving one loop nesting level.
  2345. * src/autofit/afcjk.h: Remove old enumeration values superseded by
  2346. the new data in `afblue.h'.
  2347. (AF_CJK_IS_TOP_BLUE, AF_CJK_IS_HORIZ_BLUE, AF_CJK_IS_FILLED_BLUE,
  2348. AF_CJK_IS_RIGHT_BLUE): New macros, to be used in
  2349. `af_cjk_metrics_init_blues'.
  2350. (AF_CJK_BLUE_IS_RIGHT): Remove this now redundant enum value.
  2351. (AF_CJK_BLUE_IS_TOP): Renamed to...
  2352. (AF_CJK_BLUE_TOP): This.
  2353. (AF_CJK_MAX_BLUES): Remove.
  2354. (AF_CJKAxisRec): Updated.
  2355. 2013-08-25 Werner Lemberg <wl@gnu.org>
  2356. [autofit] Typo.
  2357. * src/autofit/afblue.hin, src/autofit/afblue.c (GET_UTF8_CHAR): Use
  2358. cast.
  2359. 2013-08-25 Werner Lemberg <wl@gnu.org>
  2360. [autofit] Synchronize `cjk' with `latin' module (and vice versa).
  2361. * src/autofit/afcjk.c (af_cjk_metrics_init_widths): Add tracing
  2362. messages.
  2363. (af_cjk_metrics_init_blues): Don't pass blue string array as
  2364. argument but use the global array directly.
  2365. Use `outline' directly.
  2366. Update and add tracing messages.
  2367. (af_cjk_metrics_init): Simplify code.
  2368. (af_cjk_metrics_scale_dim): Improve tracing message.
  2369. (af_cjk_metrics_scale): Synchronize.
  2370. * src/autofit/aflatin.c (af_latin_metrics_init_widths,
  2371. af_latin_metrics_init_blues): Improve and add tracing messages.
  2372. 2013-08-25 Werner Lemberg <wl@gnu.org>
  2373. [autofit] Make `latin' module use blue stringsets.
  2374. * src/autofit/aflatin.c (AF_LATIN_MAX_TEST_CHARACTERS): Removed.
  2375. (af_latin_blue_chars): Removed.
  2376. (af_latin_metrics_init_blues): Replace AF_LATIN_MAX_TEST_CHARACTERS
  2377. with AF_BLUE_STRING_MAX_LEN.
  2378. Change loops to use offsets (in file `afblue.h') into the new arrays
  2379. `af_blue_stringsets' and `af_blue_strings' (in file `afblue.c').
  2380. Use `AF_LATIN_IS_SMALL_TOP_BLUE' macro.
  2381. * src/autofit/aflatin.h: Remove old enumeration values superseded by
  2382. the new data in `afblue.h'.
  2383. (AF_LATIN_IS_TOP_BLUE): Updated definition.
  2384. (AF_LATIN_IS_SMALL_TOP_BLUE): New macro.
  2385. (AF_LATIN_MAX_BLUES): Remove.
  2386. (AF_LatinAxisRec): Updated.
  2387. 2013-08-25 Werner Lemberg <wl@gnu.org>
  2388. [autofit] Add blue stringsets.
  2389. * src/autofit/aftypes.h: Include `afblue.h'.
  2390. (AF_ScriptClassRec): Add `blue_stringset' field.
  2391. (AF_DEFINE_SCRIPT_CLASS): Updated.
  2392. * src/autofit/autofit.c: Include `afblue.c'.
  2393. * src/autofit/afcjk.c (af_hani_script_class), src/autofit/afdummy.c
  2394. (af_dflt_script_class), src/autofit/afindic.c
  2395. (af_deva_script_class), src/autofit/aflatin.c
  2396. (af_latn_script_class), src/autofit/aflatin2.c
  2397. (af_ltn2_script_class): Updated.
  2398. * src/autofit/rules.mk (AUTOF_DRV_SRC): Add `afblue.c'.
  2399. 2013-08-25 Werner Lemberg <wl@gnu.org>
  2400. [autofit] Introduce data file for blue strings.
  2401. The idea is to have a central file which gets processed by a Perl
  2402. script to create proper `.c' and `.h' files using templates. There
  2403. are two other reasons to do that:
  2404. . The data file should be easily readable. We use UTF-8 encoding
  2405. which then gets converted to single bytes.
  2406. . Since the number of supported scripts will increase soon, the
  2407. current usage of blue string arrays is a waste of space. Using
  2408. the Perl script it is possible to imitate jagged arrays,
  2409. defining enumeration constants as offsets into the arrays.
  2410. This commit only adds files without changing any functionality.
  2411. * src/autofit/afblue.dat: New data file.
  2412. * src/tools/afblue.pl: New Perl script for processing `afblue.dat'.
  2413. * src/autofit/afblue.cin, src/autofit/afblue.hin: New template files
  2414. for...
  2415. * src/autofit/afblue.c, src/autofit/afblue.c: New source files.
  2416. To avoid a dependency on Perl, we add them too.
  2417. 2013-08-19 Alexei Podtelezhnikov <apodtele@gmail.com>
  2418. [base] Enable new algorithm for `BBox_Cubic_Check'.
  2419. * src/base/ftbbox.c: Enable new BBox_Cubic_Check algorithm, remove
  2420. the old one.
  2421. Improve comments.
  2422. 2013-08-18 Werner Lemberg <wl@gnu.org>
  2423. * builds/unix/unix-def.in (freetype2.pc): Don't set executable bit.
  2424. 2013-08-18 Werner Lemberg <wl@gnu.org>
  2425. Fix Savannah bug #39804.
  2426. * builds/unix/configure.raw (LIBPNG): Define and export.
  2427. * builds/unix/freetype-config.in, builds/unix/freetype2.in: Handle
  2428. libpng.
  2429. 2013-08-17 Alexei Podtelezhnikov <apodtele@gmail.com>
  2430. [base] Clean up BBox_Conic_Check.
  2431. * src/base/ftbbox.c (BBox_Conic_Check): Remove redundant checks for
  2432. extremum at the segment ends, which are already within the bbox.
  2433. Slightly modify calculations.
  2434. 2013-08-15 Alexei Podtelezhnikov <apodtele@gmail.com>
  2435. [base] Finish experimental (disabled) BBox_Cubic_Check implementation.
  2436. * src/base/ftbbox.c (BBox_Cubic_Check): Scale arguments to improve
  2437. accuracy and avoid overflows.
  2438. 2013-08-13 Alexei Podtelezhnikov <apodtele@gmail.com>
  2439. [base] Refactor experimental (disabled) BBox_Cubic_Check.
  2440. * src/base/ftbbox.c (BBox_Cubic_Check): Implement the minimum search
  2441. as the mirror image of the maximum search implemented here...
  2442. (update_max): New function.
  2443. 2013-08-06 John Tytgat <John.Tytgat@esko.com>
  2444. Fix Savannah bug #39702.
  2445. * src/cff/cffload.c (cff_index_get_pointers): Check for `cur_offset
  2446. != 0'; this stronger test is mandated by the CFF specification.
  2447. Fix test for INDEX structures which have one or more empty entries
  2448. at the end.
  2449. 2013-08-05 Werner Lemberg <wl@gnu.org>
  2450. Fix gcc pragmas, part 2.
  2451. * src/truetype/ttinterp.c (TT_MulFix14_long_long,
  2452. TT_DotFix14_long_long): `#pragma gcc diagnostic {push,pop}' has been
  2453. introduced with gcc version 4.6.
  2454. 2013-08-05 Werner Lemberg <wl@gnu.org>
  2455. Fix gcc pragmas.
  2456. * src/truetype/ttinterp.c (TT_MulFix14_long_long,
  2457. TT_DotFix14_long_long): Older gcc versions don't accept diagnostic
  2458. pragmas within a function body.
  2459. 2013-08-05 Werner Lemberg <wl@gnu.org>
  2460. Fix Savannah bug #39700.
  2461. * builds/unix/ftconfig.h: Synchronize with
  2462. `include/freetype/config/ftconfig.h'.
  2463. * builds/vms/ftconfig.h: Ditto.
  2464. Make the differences to the master `ftconfig.h' file as small as
  2465. possible for easier maintainance.
  2466. 2013-08-05 Werner Lemberg <wl@gnu.org>
  2467. [autofit] Improve handling of `near' points.
  2468. Points which are very near to each other are now marked as such.
  2469. The `weak' flag is then computed by using the `in' vector of the
  2470. first and the `out' vector of the last point of a group of near
  2471. points.
  2472. For example, this fixes the rendering of glyph `Oslash' in
  2473. `Roboto-Thin.ttf'.
  2474. * src/autofit/afhints.h (AF_Flags): New value `AF_FLAGS_NEAR'.
  2475. * src/autofit/afhints.c (af_glyph_hints_reload): Introduce
  2476. the heuristic value `near_limit' to decide whether the current point
  2477. is near to the previous one, then set `AF_FLAG_NEAR' accordingly.
  2478. Store good `in' vector (of last non-near point) in
  2479. `last_good_in_{x,y}' and use it as an argument to
  2480. `ft_corner_is_flat' if necessary.
  2481. 2013-08-02 Werner Lemberg <wl@gnu.org>
  2482. * include/freetype/ftcffdrv.h: Improve documentation.
  2483. This is based on blog entries from David Lemon and Dave Arnold (both
  2484. from Adobe) with kind permission. Dave also helped in
  2485. proof-reading.
  2486. 2013-08-02 Werner Lemberg <wl@gnu.org>
  2487. [autofit] Move declaration of scripts into separate file.
  2488. This has the benefit that we don't need to duplicate the data at
  2489. different places.
  2490. * src/autofit/afscript.h: New file.
  2491. * src/autofit/aftypes.h (AF_Script): Include `afscript.h' to define
  2492. the enumeration values.
  2493. * src/autofit/afglobal.c: Include `afscript.h' to get the script
  2494. specific header files.
  2495. (af_script_classes): Include `afscript.h' to fill this array.
  2496. * src/autofit/afpic.c: Include `afscript.h' to get the script
  2497. specific header files.
  2498. (autofit_module_class_pic_init): Include `afscript.h' for
  2499. initialization.
  2500. * src/autofit/afpic.h (AF_SCRIPT_CLASSES_COUNT,
  2501. AF_SCRIPT_CLASSES_REC_COUNT): Removed. Use `AF_SCRIPT_MAX' instead.
  2502. * src/autofit/rules.mk (AUTOF_DRV_H): Updated.
  2503. 2013-08-02 Werner Lemberg <wl@gnu.org>
  2504. [autofit] Move declaration of writing systems into separate file.
  2505. This has the benefit that we don't need to duplicate the data at
  2506. different places.
  2507. * src/autofit/afwrtsys.h: New file.
  2508. * src/autofit/aftypes.h (AF_WritingSystem): Include `afwrtsys.h' to
  2509. define the enumeration values.
  2510. * src/autofit/afglobal.c: Include `afwrtsys.h' to get the writing
  2511. system specific header files.
  2512. Include `afpic.h'.
  2513. (af_writing_system_classes): Include `afwrtsys.h' to fill this
  2514. array.
  2515. * src/autofit/afpic.c: Include `afwrtsys.h' to get the writing
  2516. system specific header files.
  2517. (autofit_module_class_pic_init): Include `afwrtsys.h' for
  2518. initialization.
  2519. * src/autofit/afpic.h (AF_WRITING_SYSTEM_CLASSES_COUNT,
  2520. AF_WRITING_SYSTEM_CLASSES_REC_COUNT): Removed. Use
  2521. `AF_WRITING_SYSTEM_MAX' instead.
  2522. 2013-08-02 Werner Lemberg <wl@gnu.org>
  2523. [sfnt] Fix compilation with g++.
  2524. * src/sfnt/pngshim.c (error_callback, read_data_from_FT_stream): Use
  2525. cast.
  2526. (Load_SBit_Png): Pacify compiler.
  2527. 2013-08-02 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  2528. Werner Lemberg <wl@gnu.org>
  2529. [autofit] Fix `make multi'.
  2530. * include/freetype/config/ftconfig.h (FT_LOCAL_ARRAY,
  2531. FT_LOCAL_ARRAY_DEF): New macros.
  2532. * src/autofit/afglobal.c (af_writing_system_classes,
  2533. af_script_classes): Use FT_LOCAL_ARRAY_DEF.
  2534. * src/autofit/afglobal.h: Declare `af_writing_system_classes' and
  2535. `af_script_classes'.
  2536. * src/autofit/afloader.c: Include `afpic.h'.
  2537. 2013-08-01 Werner Lemberg <wl@gnu.org>
  2538. Another round of cppcheck nitpicks.
  2539. The call was (from the top-level of the FreeType tree):
  2540. cppcheck --force \
  2541. --enable=all \
  2542. -I /usr/include \
  2543. -I /usr/local/include \
  2544. -I /usr/lib/gcc/i586-suse-linux/4.7/include \
  2545. -I include \
  2546. -I include/freetype \
  2547. -I include/freetype/config \
  2548. -I include/freetype/internal \
  2549. -DFT2_BUILD_LIBRARY \
  2550. . &> cppcheck.log
  2551. using cppcheck git commit f7e93f99.
  2552. Note that cppcheck still can't handle `#include FOO' (with `FOO' a
  2553. macro).
  2554. */* Improve variable scopes.
  2555. */* Remove redundant initializations which get overwritten.
  2556. * src/gxvalid/*: Comment out redundant code or guard it with
  2557. FT_DEBUG_LEVEL_TRACE.
  2558. 2013-07-30 Werner Lemberg <wl@gnu.org>
  2559. [autofit] Introduce `writing systems'.
  2560. This patch adds a new top level to the auto-hinter's script class
  2561. hierarchy. It defines `writing systems' which can contain multiple
  2562. scripts.
  2563. For example, the `latin' writing system (in file `aflatin.c') is
  2564. able to support scripts like Latin, Cyrillic, Armenian, etc., which
  2565. can be handled similarly.
  2566. Scripts are now named using four-letter OpenType tags.
  2567. * src/autofit/aftypes.h (AF_ScriptClassRec): Move relevant members
  2568. to...
  2569. (AF_WritingSystemClassRec): This new structure. It holds pointers
  2570. to functions which can be shared among related scripts.
  2571. (AF_WritingSystem): New enumeration.
  2572. (AF_Script): Revised values using four-letter tags.
  2573. (AF_DEFINE_WRITING_SYSTEM_CLASS): New macro.
  2574. (AF_DEFINE_SCRIPT_CLASS): Updated.
  2575. * src/autofit/afglobal.c (af_writing_system_classes): New global,
  2576. constant array.
  2577. (af_script_classes): Updated.
  2578. (af_face_globals_free): Updated.
  2579. Remove assertion.
  2580. (af_face_globals_get_metrics): Updated.
  2581. * src/autofit/afglobal.h (AF_SCRIPT_FALLBACK)
  2582. [!AF_CONFIG_OPTION_CJK]: Handle this case.
  2583. * src/autofit/afloader.c (af_loader_load_g, af_loader_load_glyph):
  2584. Updated.
  2585. * src/autofit/afpic.c (autofit_module_class_pic_init): Updated;
  2586. initialize structures for both writing systems and scripts.
  2587. * src/autofit/afpic.h: Updated.
  2588. (AF_WRITING_SYSTEM_CLASSES_GET): New macro.
  2589. * src/autofit/afcjk.c (af_cjk_writing_system_class): New writing
  2590. system.
  2591. (af_cjk_uniranges): Renamed to...
  2592. (af_hani_uniranges): This.
  2593. (af_cjk_script_class): Reduced and renamed to...
  2594. (af_hani_script_class): This.
  2595. * src/autofit/afcjk.h: Updated.
  2596. * src/autofit/afdummy.c (af_dummy_writing_system_class): New writing
  2597. system.
  2598. (af_dummy_script_class): Reduced and renamed to...
  2599. (af_dflt_script_class): This.
  2600. * src/autofit/afdummy.h: Updated.
  2601. * src/autofit/afindic.c (af_indic_writing_system_class): New writing
  2602. system.
  2603. (af_indic_uniranges): Renamed to...
  2604. (af_deva_uniranges): This.
  2605. (af_indic_script_class): Reduced and renamed to...
  2606. (af_deva_script_class): This.
  2607. * src/autofit/afcjk.h: Updated.
  2608. * src/autofit/aflatin.c (af_latin_writing_system_class): New writing
  2609. system.
  2610. (af_latin_uniranges): Renamed to...
  2611. (af_latn_uniranges): This.
  2612. (af_latin_script_class): Reduced and renamed to...
  2613. (af_latn_script_class): This.
  2614. * src/autofit/aflatin.h: Updated.
  2615. * src/autofit/aflatin2.c (af_latin2_writing_system_class): New
  2616. writing system.
  2617. (af_latin2_uniranges): Renamed to...
  2618. (af_ltn2_uniranges): This.
  2619. Synchronize ranges with `latin'.
  2620. (af_latin2_script_class): Reduced and renamed to...
  2621. (af_ltn2_script_class): This.
  2622. * src/autofit/aflatin2.h: Updated.
  2623. 2013-07-30 Werner Lemberg <wl@gnu.org>
  2624. [autofit] Variable renaming.
  2625. * src/autofit/aftypes.h (AF_ScriptMetricsRec):
  2626. s/clazz/script_class/.
  2627. Update all users.
  2628. 2013-07-30 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  2629. Ignore libpng-config under cross-building configuration,
  2630. because it will return the flags for the hosting environment.
  2631. * builds/unix/configure.raw: Ignore libpng-config when
  2632. `cross_compiling' == yes.
  2633. 2013-07-30 Behdad Esfahbod <behdad@google.com>
  2634. Prevent division by zero by a transparent color.
  2635. * src/base/ftbitmap.c (ft_gray_for_premultiplied_srgb_bgra):
  2636. Return 0 immediately, when alpha channel is zero.
  2637. 2013-07-25 Behdad Esfahbod <behdad@google.com>
  2638. Add FT_FACE_FLAG_COLOR and FT_HAS_COLOR.
  2639. Also disambiguate Google's color bitmap tables.
  2640. * include/freetype/freetype.h (FT_FACE_FLAG_COLOR, FT_HAS_COLOR):
  2641. New macros.
  2642. * include/freetype/internal/tttypes.h (TT_SbitTableType): Add
  2643. TT_SBIT_TABLE_TYPE_CBLC.
  2644. * src/sfnt/sfobjs.c (sfnt_load_face): Handle FT_FACE_FLAG_COLOR.
  2645. * src/sfnt/ttsbit.c (tt_face_load_sbit,
  2646. tt_face_load_strike_metrics, tt_face_load_sbit_image): Handle
  2647. TT_SBIT_TABLE_TYPE_CBLC.
  2648. 2013-07-24 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  2649. [sfnt] Fix for `make multi' target.
  2650. * src/sfnt/pngshim.c (Load_SBit_Png): Use FT_LOCAL_DEF().
  2651. 2013-07-20 Werner Lemberg <wl@gnu.org>
  2652. * docs/INSTALL.GNU: Updated.
  2653. 2013-07-20 Behdad Esfahbod <behdad@google.com>
  2654. [sfnt] Fix `sbix' table version handling.
  2655. * src/sfnt/ttsbit.c (tt_face_load_sbit) [TT_SBIT_TABLE_TYPE_SBIX]:
  2656. USHORT version numbers are to be considered as `minor'.
  2657. 2013-07-19 Werner Lemberg <wl@gnu.org>
  2658. [autofit] Fix segment classification for blue zones.
  2659. The old code (essentially unchanged since the very beginning)
  2660. incorrectly handled this configuration
  2661. x -o- x
  2662. / \
  2663. / \
  2664. / \
  2665. o o
  2666. as flat and this
  2667. o o
  2668. / /
  2669. x| x|
  2670. | |
  2671. o---------------o
  2672. as round. (`o' and `x' are on and off points, respectively).
  2673. This is a major change which should improve the rendering results
  2674. enormously for many TrueType fonts, especially in the range approx.
  2675. 20-40ppem, fixing the appearance of many overshoots.
  2676. * src/autofit/aflatin.c (af_latin_metrics_init_blues): Look at the
  2677. first and last points of the segment, not the points right before
  2678. and after.
  2679. 2013-07-19 Behdad Esfahbod <behdad@google.com>
  2680. [sfnt] `sbix' fix-ups.
  2681. * src/sfnt/sfobjs.c (sfnt_load_face): Apple's `sbix' color bitmaps
  2682. are rendered scaled and then the `glyf' outline rendered on top. We
  2683. don't support that yet, so just ignore the `glyf' outline and
  2684. advertise it as a bitmap-only font.
  2685. * src/sfnt/ttsbit.c (tt_face_load_strike_metrics)
  2686. [TT_SBIT_TABLE_TYPE_SBIX]: Return metrics in 26.6 units.
  2687. (tt_face_load_sbix_image): Typo.
  2688. 2013-07-18 Behdad Esfahbod <behdad@google.com>
  2689. [sfnt] Add support for Apple's `sbix' color bitmap table.
  2690. * include/freetype/internal/tttypes.h (TT_SBit_MetricsRec): Widen
  2691. fields to FT_Short and FT_UShort, respectively.
  2692. (TT_SBitTableType): New enumeration.
  2693. (TT_FaceRec): Add `sbit_table_type' field.
  2694. * include/freetype/tttags.h (TTAG_sbix): New macro.
  2695. * src/sfnt/pngshim.c (Load_SBit_Png): Pass a more generic
  2696. FT_GlyphSlot argument instead FT_Bitmap.
  2697. Add flag to control map and metrics handling.
  2698. Update all users.
  2699. * src/sfnt/ttsbit.c: Include `ttmtx.h'.
  2700. (tt_face_load_eblc): Renamed to...
  2701. (tt_face_load_sbit): This.
  2702. Handlic `sbix' bitmaps.
  2703. (tt_face_free_eblc): Renamed to...
  2704. (tt_face_load_sbit): This.
  2705. Updated.
  2706. (tt_face_load_strike_metrics): Handle `sbix' bitmaps.
  2707. (tt_face_load_sbix_image): New function.
  2708. (tt_sbit_decoder_alloc_bitmap, tt_sbit_decoder_load_image,
  2709. tt_sbit_decoder_load_byte_aligned, tt_sbit_decoder_load_bit_aligned,
  2710. tt_sbit_decoder_load_compound, tt_sbit_decoder_load_png,
  2711. tt_sbit_decoder_load_image, tt_sbit_decoder_load_bitmap): Don't pass
  2712. and handle load flags.
  2713. (tt_sbit_decoder_load_bitmap) [!FT_CONFIG_OPTION_USE_PNG]: Better
  2714. handle formats 17-19.
  2715. Move color to grayscale conversion to...
  2716. (tt_face_load_sbit_image): Here.
  2717. Handle `sbix' bitmaps.
  2718. * src/sfnt/pngshim.h: Updated.
  2719. * src/sfnt/ttsbit.h: Updated.
  2720. * src/sfnt/sfdriver.c: Updated.
  2721. 2013-07-18 Werner Lemberg <wl@gnu.org>
  2722. [sfnt] Ignore invalid magic number in `head' or `bhed'.
  2723. Other font engines seem to ignore it also. Problem reported by
  2724. Hin-Tak Leung <htl10@users.sourceforge.net>.
  2725. * src/sfnt/ttload.c (check_table_dir): Don't abort but warn only if
  2726. we have an invalid magic number.
  2727. 2013-07-16 Werner Lemberg <wl@gnu.org>
  2728. [smooth] Fix segfault caused by previous commit.
  2729. * src/smooth/ftgrays.c (gray_set_cell): Always compute
  2730. `ras.invalid'.
  2731. 2013-07-16 David Turner <digit@google.com>
  2732. [smooth] Improve performance.
  2733. Provide a work-around for an ARM-specific performance bug in GCC.
  2734. This speeds up the rasterizer by more than 5%.
  2735. Also slightly optimize `set_gray_cell' and `gray_record_cell' (which
  2736. also improves performance on other platforms by a tiny bit (<1%).
  2737. * src/smooth/ftgrays.c (FT_DIV_MOD): New macro.
  2738. Use it where appropriate.
  2739. (gray_record_cell, gray_set_cell, gray_move_to,
  2740. gray_convert_glyph_inner): Streamline condition handling.
  2741. 2013-07-16 David Turner <digit@google.com>
  2742. [truetype] Add assembler code for TT_MulFix14 and TT_DotFix14.
  2743. This patch provides slightly optimized versions for ARM, x86, and
  2744. x86_64 CPUs if built with GCC.
  2745. Also remove some dead code.
  2746. * src/truetype/ttinterp.c (TT_MulFix14_arm, TT_MulFix14_long_long,
  2747. TT_DotFix14_long_long): New functions.
  2748. 2013-07-16 David Turner <digit@google.com>
  2749. Optimize FT_MulFix for x86_64 GCC builds.
  2750. This patch provides an optimized `FT_MulFix' implementation for
  2751. x86_64 machines when FreeType is built with GCC, or compatible
  2752. compilers like Clang.
  2753. Example:
  2754. bin/ftbench -p -t 5 -s 14 -f 0008 Arial.ttf
  2755. Before:
  2756. Load 4.863 us/op
  2757. Load_Advances (Normal) 4.816 us/op
  2758. Load_Advances (Fast) 0.028 us/op
  2759. Render 2.753 us/op
  2760. Get_Glyph 0.463 us/op
  2761. Get_CBox 0.077 us/op
  2762. Get_Char_Index 0.023 us/op
  2763. Iterate CMap 13.898 us/op
  2764. New_Face 12.368 us/op
  2765. Embolden 0.028 us/op
  2766. Get_BBox 0.302 us/op
  2767. After:
  2768. Load 4.617 us/op
  2769. Load_Advances (Normal) 4.645 us/op
  2770. Load_Advances (Fast) 0.027 us/op
  2771. Render 2.789 us/op
  2772. Get_Glyph 0.460 us/op
  2773. Get_CBox 0.077 us/op
  2774. Get_Char_Index 0.024 us/op
  2775. Iterate CMap 13.403 us/op
  2776. New_Face 12.278 us/op
  2777. Embolden 0.028 us/op
  2778. Get_BBox 0.301 us/op
  2779. * builds/unix/ftconfig.in, include/freetype/config/ftconfig.h
  2780. (FT_MulFix_x86_64): New function.
  2781. 2013-07-16 David Turner <digit@google.com>
  2782. Speed up ARMv7 support.
  2783. When building for ARMv7 with thumb2 instructions, the optimized
  2784. `FT_MulFix_arm' assembly routine was not being used.
  2785. The reason for this is in the `ftconfig.h' header, namely:
  2786. - The assembly routine uses the `smull' instruction which is not
  2787. available when generating Thumb-1 machine code. It is available
  2788. in Thumb-2 mode, though.
  2789. - The header was written a long time ago before Thumb-2 became
  2790. widely popular (e.g. with Android). So it simply doesn't use the
  2791. assembly routine if the `__thumb__' built-in macro is defined.
  2792. - When compiling in Thumb-2 mode, the compiler will define both
  2793. `__thumb__' and `__thumb2__'.
  2794. By checking for `(__thumb2__ || !__thumb__)', we ensure that the
  2795. assembly routine is only avoided when generating Thumb-1 code.
  2796. Given that this is performance-sensitive function, this improves
  2797. `ftbench' as follows on a Galaxy Nexus:
  2798. Before (us/op) After (us/op)
  2799. - loading Arial.ttf glyphs at 14 ppem [1]
  2800. Load 34.285 33.098
  2801. - same operation with the light auto-hinter [2]
  2802. Load 31.317 29.590
  2803. - same operation without hinting [3]
  2804. Load 6.143 5.376
  2805. - loading Arial.ttf advances at 14 ppem [4]
  2806. Load_Advances (normal) 34.216 33.016
  2807. Load_Advances (fast) 0.176 0.176
  2808. [1] ftbench -t 5 -p -s 14 -b a -f 0008 Arial.ttf
  2809. [2] ftbench -t 5 -p -s 14 -b a -r 1 -f 0028 Arial.ttf
  2810. [3] ftbench -t 5 -p -s 14 -b a -f 000a Arial.ttf
  2811. [4] ftbench -t 5 -p -s 14 -b b -f 0008 Arial.ttf
  2812. * builds/unix/ftconfig.in, include/freetype/config/ftconfig.h
  2813. (FT_MULFIX_ASSEMBLER): Fix handling for ARMv7.
  2814. 2013-06-28 Werner Lemberg <wl@gnu.org>
  2815. * docs/CHANGES: Updated.
  2816. 2013-06-27 Werner Lemberg <wl@gnu.org>
  2817. * src/winfonts/winfnt.c (FNT_Load_Glyph): Fix bitmap width guard.
  2818. 2013-06-25 Werner Lemberg <wl@gnu.org>
  2819. [cff] Add darkening limit to `darkening-parameters'.
  2820. * src/cff/cffdrivr.c (cff_property_set): Add check.
  2821. 2013-06-25 Werner Lemberg <wl@gnu.org>
  2822. [cff] Add `darkening-parameters' property.
  2823. * include/freetype/ftcffdrv.h: Document it.
  2824. * src/cff/cffdrivr.c (cff_property_set, cff_property_get): Handle
  2825. `darkening-parameters' property.
  2826. * src/cff/cf2font.h (CF2_FontRec): Add `darkenParams' array.
  2827. * src/cff/cf2font.c (cf2_computeDarkening): Add `darkenParams'
  2828. argument and use it.
  2829. Update all callers.
  2830. * src/cff/cf2ft.c (cf2_decoder_parse_charstrings): Copy
  2831. `darken_params' values.
  2832. * src/cff/cffobjs.h (CFF_DriverRec): Add `darken_params' array.
  2833. * src/cff/cffobjs.c (cff_driver_init): Set default values for
  2834. `darken_params'.
  2835. 2013-06-25 Werner Lemberg <wl@gnu.org>
  2836. [docmaker] Code shuffling.
  2837. * src/tools/docmaker/tohtml.py (re_url): Move regexp...
  2838. * src/tools/docmaker/sources.py: ... to this file.
  2839. 2013-06-25 Werner Lemberg <wl@gnu.org>
  2840. [docmaker] Remove unused functions.
  2841. * src/tools/docmaker/content.py (DocMarkup.get_start,
  2842. DocBlock.get_markup_name): Removed.
  2843. * src/tools/docmaker/tohtml.py (html_quote0, dump_html_code,
  2844. HtmlFormatter.make_html_words): Removed.
  2845. 2013-06-25 Werner Lemberg <wl@gnu.org>
  2846. * builds/freetype.mk (dll): Remove target.
  2847. Problem reported by Jörg Günnewig <joerg.guennewig@googlemail.com>.
  2848. 2013-06-25 Werner Lemberg <wl@gnu.org>
  2849. [docmaker] Recognise URLs.
  2850. * src/tools/docmaker/tohtml.py (re_url): New regular expression.
  2851. (make_html_para): Use it.
  2852. 2013-06-19 Werner Lemberg <wl@gnu.org>
  2853. * Version 2.5.0.1 released.
  2854. ===========================
  2855. Tag sources with `VER-2-5-0-1'.
  2856. * include/freetype/config/ftoption.h: Undefine
  2857. CFF_CONFIG_OPTION_OLD_ENGINE.
  2858. * devel/ftoption.h: Define CFF_CONFIG_OPTION_OLD_ENGINE.
  2859. 2013-06-19 Werner Lemberg <wl@gnu.org>
  2860. * builds/unix/install.mk (install): Don't create `cache' directory.
  2861. Found by Peter Breitenlohner <peb@mppmu.mpg.de>.
  2862. 2013-06-19 Werner Lemberg <wl@gnu.org>
  2863. * Version 2.5.0 released.
  2864. =========================
  2865. Tag sources with `VER-2-5-0'.
  2866. * docs/VERSION.DLL: Update documentation and bump version number to
  2867. 2.5.0.
  2868. * README, Jamfile (RefDoc),
  2869. builds/win32/vc2005/freetype.vcproj, builds/win32/vc2005/index.html,
  2870. builds/win32/vc2008/freetype.vcproj, builds/win32/vc2008/index.html,
  2871. builds/win32/vc2010/freetype.vcxproj, builds/win32/vc2010/index.html,
  2872. builds/win32/visualc/freetype.dsp,
  2873. builds/win32/visualc/freetype.vcproj,
  2874. builds/win32/visualc/index.html, builds/win32/visualce/freetype.dsp,
  2875. builds/win32/visualce/freetype.vcproj,
  2876. builds/win32/visualce/index.html,
  2877. builds/wince/vc2005-ce/freetype.vcproj,
  2878. builds/wince/vc2005-ce/index.html,
  2879. builds/wince/vc2008-ce/freetype.vcproj,
  2880. builds/wince/vc2008-ce/index.html: s/2.4.12/2.5.0/, s/2412/250/.
  2881. * include/freetype/freetype.h (FREETYPE_MINOR): Set to 5.
  2882. (FREETYPE_PATCH): Set to 0.
  2883. * builds/unix/configure.raw (version_info): Set to 16:2:10.
  2884. * src/base/ftobjs.c (FT_Open_Face): Pacify compiler.
  2885. * src/truetype/ttinterp.c (Ins_MSIRP, Ins_MIRP): Ditto.
  2886. 2013-06-18 Werner Lemberg <wl@gnu.org>
  2887. Fix Savannah bug #39269.
  2888. * src/base/ftgloadr.c (FT_GlyphLoader_CheckPoints): Free memory in
  2889. case of reacollocation failures.
  2890. 2013-06-18 Andrew Church <achurch+savannah@achurch.org>
  2891. Fix Savannah bug #39266.
  2892. If memory allocations fail at certain points while opening a font,
  2893. FreeType can either crash due to a NULL dereference or leak memory.
  2894. * include/freetype/internal/ftobjs.c (FT_Face_InternalRec,
  2895. FT_LibraryRec): Make `refcount' a signed integer. If, for example,
  2896. FT_Open_Face() fails in a memory allocation before the face's
  2897. reference count is set to 1, a subsequent `FT_Done_Library' call
  2898. would otherwise loop over `FT_Done_Face' 2^32 times before freeing
  2899. the face.
  2900. * src/base/ftobjs.c (open_face): Initialize `stream' and friends
  2901. earlier.
  2902. (FT_Open_Face) <Fail>: Behave correctly if `node' is NULL.
  2903. (FT_Destroy_Module) <Fail>: Check that `renderer_clazz' is valid.
  2904. 2013-06-14 Werner Lemberg <wl@gnu.org>
  2905. * src/smooth/ftgrays.c One final pragma to silence 64-bit MSVC.
  2906. 2013-06-06 Dave Arnold <darnold@adobe.com>
  2907. Werner Lemberg <wl@gnu.org>
  2908. [cff] Add code to Adobe's engine to handle ppem > 2000.
  2909. * src/cff/cffgload.c (cff_slot_load): If we get
  2910. FT_Err_Glyph_Too_Big, retry unhinted and scale up later on.
  2911. 2013-06-12 Werner Lemberg <wl@gnu.org>
  2912. Another try on pragmas.
  2913. * include/freetype/internal/ftdebug.h: Move pragmas to...
  2914. * include/freetype/internal/internal.h: ... this file since it gets
  2915. included by all source files.
  2916. * include/freetype/internal/ftserv.h: Remove pragma which has no
  2917. effect.
  2918. 2013-06-12 Werner Lemberg <wl@gnu.org>
  2919. * include/freetype/internal/ftdebug.h: Disable MSVC warning C4127.
  2920. This partially undoes commit 3f6e0e0c.
  2921. 2013-06-12 Werner Lemberg <wl@gnu.org>
  2922. More compiler warning fixes.
  2923. */*: Use cast to `FT_Bool' (or `Bool') where appropriate.
  2924. 2013-06-10 Werner Lemberg <wl@gnu.org>
  2925. [truetype] Improve handling of broken sbit advance widths.
  2926. * src/truetype/ttgload.c (TT_Load_Glyph): Use the glyph's (scaled)
  2927. `linearHoriAdvance' if the sbit's `horiAdvance' value is zero.
  2928. Cf. font `Fixedsys Excelsior' v3.01 (FSEX300.ttf), glyph A, 16ppem.
  2929. 2013-06-10 Werner Lemberg <wl@gnu.org>
  2930. [sfnt] Improve embedded bitmap tracing.
  2931. * src/base/ftobjs.c (FT_Request_Size): Move trace message regarding
  2932. bitmap strike match to...
  2933. (FT_Match_Size): This function.
  2934. * src/sfnt/ttsbit.c (tt_sbit_decoder_load_metrics,
  2935. tt_sbit_decoder_load_byte_aligned, tt_sbit_decoder_load_bit_aligned,
  2936. tt_sbit_decoder_load_compound, tt_sbit_decoder_load_png,
  2937. tt_sbit_decoder_load_image): Decorate with tracing messages.
  2938. 2013-06-10 Werner Lemberg <wl@gnu.org>
  2939. Fix Savannah bug #39160.
  2940. * src/truetype/ttinterp.c (Ins_SDPVTL): Set projection vector too
  2941. for the degenerate case.
  2942. 2013-06-09 David Turner <digit@google.com>
  2943. * src/cache/ftcmanag.c (FTC_Manager_Reset): Add missing cache flush.
  2944. This code, present since eight(!) years in the unused `CACHE'
  2945. branch, has been forgotten to apply to the master branch. It's
  2946. really amazing that noone has ever complained since
  2947. `FTC_Manager_Reset' is pretty useless without flushing the cache.
  2948. 2013-06-07 Werner Lemberg <wl@gnu.org>
  2949. Add and improve pragmas for MSVC compiler.
  2950. * include/freetype/internal/ftdebug.h: Remove pragmas.
  2951. * include/freetype/internal/ftserv.h: Use push and pop for pragmas.
  2952. * include/freetype/internal/ftvalid.h: Handle warning C4324.
  2953. * src/base/ftobjs.c: Use push and pop for pragmas.
  2954. * src/gzip/ftgzip.c: Handle warning C4244.
  2955. 2013-06-07 Werner Lemberg <wl@gnu.org>
  2956. [cff] s/cf2_getGlyphWidth/cf2_getGlyphOutline/.
  2957. * src/cff/cf2font.c, src/cff/cf2font.h, src/cff/cf2ft.c: Do it.
  2958. 2013-06-06 Dave Arnold <darnold@adobe.com>
  2959. [cff] Add early exit feature for width-only calls.
  2960. This is for `FT_Get_Advance'.
  2961. There are 7 places where the spec says the width can be defined:
  2962. hstem/hstemhm
  2963. vstem/vstemhm
  2964. cntrmask/hintmask
  2965. hmoveto
  2966. vmoveto
  2967. rmoveto
  2968. endchar
  2969. * src/cff/cf2intrp.c (cf2_doStems): Exit early for width-only calls,
  2970. if possible.
  2971. (cf2_interpT2CharString) <cf2_cmdHSTEM>, <cf2_cmdVSTEM>,
  2972. <cf2_cmdVMOVETO>, <cf2_cmdENDCHAR>, <cf2_cmdHINTMASK>,
  2973. <cf2_cmdRMOVETO>, <cf2_cmdHMOVETO>: Exit early for width-only calls.
  2974. 2013-06-06 Werner Lemberg <wl@gnu.org>
  2975. Next round of compiler fixes.
  2976. * builds/win32/ftdebug.c, builds/wince/ftdebug.c (ft_debug_init):
  2977. Add proper cast.
  2978. * include/freetype/internal/ftserv.h (FT_SERVICE_UNAVAILABLE): Fix
  2979. cast.
  2980. * include/freetype/internal/ftstream.h: Decorate stream and frame
  2981. macros with `FT_Long' and `FT_ULong' as appropriate.
  2982. * src/base/ftrfork.c (raccess_guess_darwin_hfsplus,
  2983. raccess_guess_darwin_newvfs): Use cast.
  2984. * src/bdf/bdflib.c (_bdf_set_default_spacing): Use cast.
  2985. * src/cache/ftcmanag.c (FTC_Manager_Check): Fix cast.
  2986. * src/cache/ftcmanag.h (FTC_ManagerRec): Ditto.
  2987. * src/cff/cf2arrst.c (cf2_arrstack_setNum_Elements): Use cast.
  2988. * src/cff/cf2ft.c (cf2_freeSeacComponent): Ditto.
  2989. * src/cff/cffobjs.c (remove_subset_prefix, remove_style): Ditto.
  2990. * src/cid/cidparse.c (cid_parser_new): Use cast.
  2991. * src/pcf/pcfdrivr.c (PCF_Glyph_Load): Use cast.
  2992. * src/psaux/psobjs.c (reallocate_t1_table): Fix argument type.
  2993. * src/raster/ftraster.c (ft_black_reset): Use cast.
  2994. * src/truetype/ttgxvar.c (FT_Stream_FTell): Use cast.
  2995. (ALL_POINTS): Fix cast.
  2996. * src/type1/t1driver.c (t1_ps_get_font_value): Add casts.
  2997. * src/type1/t1parse.c (T1_Get_Private_Dict): Add cast.
  2998. 2013-06-05 Dave Arnold <darnold@adobe.com>
  2999. Fix more MSVC Win32 compiler warnings.
  3000. * src/base/ftobjs.c: Fix typo in MS pragma.
  3001. * src/base/bdflib.c (_bdf_set_default_spacing, _bdf_add_property):
  3002. `lineno' is only used in debug mode.
  3003. * src/cff/cf2ft.c (cf2_builder_moveTo): `params' is only used in
  3004. debug mode.
  3005. 2013-06-05 Werner Lemberg <wl@gnu.org>
  3006. Fix compiler warnings.
  3007. * include/freetype/internal/ftmemory.h: Decorate memory allocation
  3008. macros with `FT_Long' where appropriate.
  3009. Remove duplicate of FT_MEM_QRENEW_ARRAY definition.
  3010. * src/base/ftbitmap.c (ft_gray_for_premultiplied_srgb_bgra): Use
  3011. cast.
  3012. * src/base/ftobjs.c: Add warning disabling pragma for MSVC while
  3013. including `md5.c'.
  3014. * src/cff/cf2intrp.c (cf2_interpT2CharString) <cf2_cmdESC>: Add
  3015. cast.
  3016. * src/sfnt/ttsbit.c (tt_sbit_decoder_load_compound): Fix casts.
  3017. (tt_sbit_decoder_load_bitmap): Beautification.
  3018. * src/smooth/ftsmooth.c (ft_smooth_render_generic): Initialize
  3019. variables (earlier).
  3020. * src/truetype/ttgload.c (TT_Process_Simple_Glyph): Pacify compiler.
  3021. * src/truetype/ttgxvar.c (TT_Get_MM_Var): Use unsigned constants
  3022. where appropriate.
  3023. * src/type1/t1load.c (T1_Get_MM_Var): Ditto.
  3024. 2013-06-04 Werner Lemberg <wl@gnu.org>
  3025. * src/cff/cf2font.c (cf2_getGlyphWidth): Initialize `advWidth'.
  3026. Problem reported by Ingmar Sittl <ingmar.sittl@elektrobit.com>.
  3027. 2013-06-04 Werner Lemberg <wl@gnu.org>
  3028. Apply fixes for cppcheck nitpicks.
  3029. http://cppcheck.sourceforge.net/
  3030. The call was (from the top-level of the FreeType tree):
  3031. cppcheck --force \
  3032. --enable=all \
  3033. -I include \
  3034. -I include/freetype/ \
  3035. -I include/freetype/config/ \
  3036. -I include/freetype/internal/ \
  3037. . &> cppcheck.log
  3038. Note that the current version heavily chokes on FreeType, delivering
  3039. many wrong results. I will report those issues to the cppcheck team
  3040. so that a newer version gives improved results hopefully.
  3041. */* Improve variable scopes.
  3042. */* Remove redundant initializations which get overwritten.
  3043. * src/base/ftmac.c, builds/mac/ftmac.c (count_faces_scalable):
  3044. Remove unused variable.
  3045. * src/base/ftdbgmem.c (ft_mem_table_destroy): `table' can't be zero.
  3046. * src/gxvalid/gxvkern.c (gxv_kern_subtable_fmt1_entry_validate):
  3047. Remove functionless code.
  3048. * src/tools/ftrandom.c (main): Fix memory leak.
  3049. 2013-06-03 Werner Lemberg <wl@gnu.org>
  3050. Add CFF_CONFIG_OPTION_OLD_ENGINE configuration option.
  3051. This controls whether the old FreeType CFF engine gets compiled into
  3052. FreeType. It is now disabled by default.
  3053. * devel/ftoption.h, include/freetype/config/ftoption.h
  3054. (CFF_CONFIG_OPTION_OLD_ENGINE): New macro.
  3055. * src/cff/cffdrivr.c (cff_property_set), src/cff/cffgload.c
  3056. (CFF_Operator, cff_argument_counts, cff_builder_add_point,
  3057. cff_operator_seac, cff_decoder_parse_charstrings, cff_slot_load),
  3058. src/cff/cffgload.h, src/cff/cffobjs.c (cff_driver_init): Use
  3059. CFF_CONFIG_OPTION_OLD_ENGINE to guard the affected code.
  3060. * docs/CHANGES: Updated.
  3061. 2013-06-02 Werner Lemberg <wl@gnu.org>
  3062. Fix PNG library handling.
  3063. * builds/unix/configure.raw: Don't use LIBPNG_LIBS but
  3064. LIBPNG_LDFLAGS.
  3065. 2013-05-23 Behdad Esfahbod <behdad@google.com>
  3066. Add support for color embedded bitmaps (eg. color emoji).
  3067. A new load flag, FT_LOAD_COLOR, makes FreeType load color
  3068. embedded-bitmaps, following this draft specification
  3069. https://color-emoji.googlecode.com/git/specification/v1.html
  3070. which defines two new SFNT tables, `CBDT' and `CBLC' (named and
  3071. modeled after `EBDT' and `EBLC', respectively). The color bitmaps
  3072. are stored in the new FT_PIXEL_MODE_BGRA format to represent BGRA
  3073. pre-multiplied sRGB images. If PNG support is available, PNG color
  3074. images as defined in the same proposed specification are supported
  3075. also.
  3076. Note that color bitmaps are converted to grayscale if client didn't
  3077. ask for color.
  3078. * builds/unix/configure.raw: Search for libpng.
  3079. Add `--without-png' option.
  3080. * devel/ftoption.h, include/freetype/config/ftoption.h
  3081. (FT_CONFIG_OPTION_USE_PNG): New macro.
  3082. * include/freetype/freetype.h (FT_LOAD_COLOR): New load flag.
  3083. * include/freetype/ftimage.h (FT_Pixel_Mode): Add
  3084. `FT_PIXEL_MODE_BGRA'.
  3085. * include/freetype/tttags.h (TTAG_CBDT, TTAG_CBLC): New tags.
  3086. * src/base/ftbitmap.c (FT_Bitmap_Embolden): Updated.
  3087. (ft_gray_for_premultiplied_srgb_bgra): New function.
  3088. (FT_Bitmap_Convert): Handle FT_PIXEL_MODE_BGRA.
  3089. * src/sfnt/pngshim.c, src/sfnt/pngshim.h: New files.
  3090. * src/sfnt/sfnt.c: Include `pngshim.c'.
  3091. * src/sfnt/ttsbit.c: Include FT_BITMAP_H and `pngshim.h'
  3092. (tt_face_load_eblc): Load `CBLC'.
  3093. (tt_sbit_decoder_init): Load `CBDT'.
  3094. (tt_sbit_decoder_alloc_bitmap): Pass load flags to select between
  3095. color and grayscale bitmaps.
  3096. Set `num_grays'. This is used by `ftview' to choose the blending
  3097. algorithm.
  3098. (tt_sbit_decoder_load_byte_aligned,
  3099. tt_sbit_decoder_load_bit_aligned, tt_sbit_decoder_load_compound,
  3100. tt_sbit_decoder_load_image): Pass load flag.
  3101. s/write/pwrite/.
  3102. Don't call `tt_sbit_decoder_alloc_bitmap'.
  3103. Updated.
  3104. (tt_sbit_decoder_load_png) [FT_CONFIG_OPTION_USE_PNG]: New function.
  3105. (tt_sbit_decoder_load_bitmap): Pass load flag.
  3106. Handle new glyph formats 17, 18, and 19.
  3107. Call `tt_sbit_decoder_alloc_bitmap'.
  3108. Flatten color bitmaps if necessary.
  3109. (tt_face_load_sbit_image): Updated.
  3110. * src/sfnt/rules.mk (SFNT_DRV_SRC): Add `pngshim.c'.
  3111. * docs/CHANGES: Updated.
  3112. 2013-05-24 Guenter <info@gknw.net>
  3113. Apply Savannah patch #8055.
  3114. Make `apinames' create an import file for NetWare.
  3115. * src/tools/apinames.c (PROGRAM_VERSION): Set to 0.2.
  3116. (OutputFormat): Add `OUTPUT_NETWARE_IMP'.
  3117. (names_dump): Handle it.
  3118. (usage): Updated.
  3119. (main): Handle new command line flag `-wN'.
  3120. 2013-05-23 Behdad Esfahbod <behdad@behdad.org>
  3121. Compilation fix.
  3122. * src/truetype/ttinterp.c (TT_RunIns)
  3123. [!TT_CONFIG_OPTION_SUBPIXEL_HINTING]: Make it work.
  3124. 2013-05-22 Infinality <infinality@infinality.net>
  3125. [truetype] Formatting and an additional subpixel tweak.
  3126. * src/truetype/ttinterp.c (Ins_SHPIX): Formatting fix.
  3127. * src/truetype/ttsubpix.c (SKIP_NONPIXEL_Y_MOVES_Rules):
  3128. Revert previous modification for Verdana clones.
  3129. 2013-05-22 Infinality <infinality@infinality.net>
  3130. [truetype] Adjust subpixel zp2 moves and tweak rules.
  3131. These modifications fix thin diagonal stems in some legacy fonts.
  3132. * src/truetype/ttinterp.c (Direct_Move_X): Remove unused macro.
  3133. (Move_Zp2_Point): Don't always disable x moves for subpixel rendering.
  3134. (Ins_SHP): Disable x moves here for subpixel rendering.
  3135. (Ins_SHPIX): Only disable x moves in compatibility mode.
  3136. Split out zp2 move reversals and reorder conditional respectively.
  3137. * src/truetype/ttsubpix.c (SKIP_NONPIXEL_Y_MOVES_Rules): Fix oversight.
  3138. Only adjust Verdana clones for 17 ppem.
  3139. (SKIP_NONPIXEL_Y_MOVES_Rules_Exceptions): Add Courier New.
  3140. (ALWAYS_SKIP_DELTAP_Rules): Found additional cases for Arial `s'.
  3141. 2013-05-20 Infinality <infinality@infinality.net>
  3142. [truetype] Simplify and improve subpixel function detection.
  3143. Some small enhancements have allowed the removal of many macros and
  3144. the simplification of existing rules in `ttsubpix.c'.
  3145. * src/truetype/ttsubpix.h (SPH_TWEAK_ALLOW_X_DMOVEX,
  3146. SPH_TWEAK_ALLOW_X_MOVE_ZP2,
  3147. SPH_TWEAK_DELTAP_SKIP_EXAGGERATED_VALUES,
  3148. SPH_TWEAK_SKIP_INLINE_DELTAS, SPH_TWEAK_MIRP_CVT_ZERO): Removed.
  3149. (SPH_TWEAK_SKIP_NONPIXEL_Y_MOVES_DELTAP): New rule macro.
  3150. * src/truetype/ttsubpix.c: Updated affected rules.
  3151. * src/truetype/ttinterp.c (Direct_Move_X): Updated.
  3152. (INS_FDEF): Add additional function detection.
  3153. (INS_ENDF): Set runtime flag.
  3154. (Ins_CALL): Skip the call under certain conditions.
  3155. Remove bad code.
  3156. (Ins_LOOPCALL): Skip the call under certain conditions.
  3157. Remove bad code.
  3158. (Move_Zp2_Point): Updated.
  3159. (Ins_SHPIX): Updated.
  3160. Skip the move under some situations.
  3161. (Ins_MIAP): Improve conditions.
  3162. (Ins_MIRP): Updated.
  3163. (Ins_DELTAP): Skip move under certain conditions.
  3164. Simplify conditions.
  3165. (TT_RunIns): Updated.
  3166. Add code to handle new function detection.
  3167. Trace messages.
  3168. 2013-05-17 Werner Lemberg <wl@gnu.org>
  3169. Update more FT_Err_XXX macros using FT_ERR and FT_THROW;
  3170. * builds/amiga/src/base/ftsystem.c, builds/mac/ftmac.c,
  3171. builds/unix/ftsystem.c, builds/vms/ftsystem.c: Do it.
  3172. 2013-05-15 Werner Lemberg <wl@gnu.org>
  3173. [truetype] Add `interpreter-version' property.
  3174. This makes the option TT_CONFIG_OPTION_SUBPIXEL_HINTING controllable
  3175. at runtime.
  3176. * include/freetype/ftttdrv.h: New file.
  3177. * include/freetype/config/ftheader.h (FT_TRUETYPE_DRIVER_H): New
  3178. macro.
  3179. * src/truetype/ttdriver.c: Include FT_TRUETYPE_DRIVER_H.
  3180. (tt_property_set, tt_property_get): Fill templates.
  3181. * src/truetype/ttobjs.h (TT_DriverRec): Add `interpreter_version'
  3182. member.
  3183. Remove unused `extension_component' member.
  3184. * src/truetype/ttgload.c: Include FT_TRUETYPE_DRIVER_H.
  3185. (tt_get_metrics, TT_Hint_Glyph, TT_Process_Simple_Glyph,
  3186. compute_glyph_metrics, tt_loader_init): Use `interpreter_version'.
  3187. * src/truetype/ttinterp.c: Include FT_TRUETYPE_DRIVER_H.
  3188. (SUBPIXEL_HINTING): New macro to check `interpreter_version' flag.
  3189. Update all affected functions to use it.
  3190. Use TT_INTERPRETER_VERSION_XXX where appropriate.
  3191. * src/truetype/ttobjs.c: Include FT_TRUETYPE_DRIVER_H.
  3192. (tt_driver_init): Initialize `interpreter_version'.
  3193. * src/truetype/ttsubpix.c: Include FT_TRUETYPE_DRIVER_H.
  3194. Use TT_INTERPRETER_VERSION_XXX where appropriate.
  3195. 2013-05-13 Werner Lemberg <wl@gnu.org>
  3196. [truetype] Avoid empty source file.
  3197. * src/truetype/ttsubpix.c [!TT_CONFIG_OPTION_SUBPIXEL_HINTING]:
  3198. Provide dummy typedef.
  3199. 2013-05-13 Werner Lemberg <wl@gnu.org>
  3200. * src/cff/cf2font.c (cf2_getGlyphWidth): Fix uninitialized variable.
  3201. Fix suggested by Vaibhav Nagarnaik <vnagarnaik@gmail.com>.
  3202. 2013-05-13 Brian Nixon <bnixon@yahoo.com>
  3203. Fix Savannah bug #38970.
  3204. * src/base/ftdebug.c, builds/win32/ftdebug.c,
  3205. builds/wince/ftdebug.c, builds/amiga/src/base/ftdebug.c
  3206. (ft_debug_init): Don't read past the environment variable FT2_DEBUG.
  3207. 2013-05-12 Werner Lemberg <wl@gnu.org>
  3208. [truetype] Add framework for TrueType properties.
  3209. * src/truetype/ttdrivr.c: Include FT_SERVICE_PROPERTIES_H.
  3210. (tt_property_set, tt_property_get): New functions, still empty.
  3211. Define `tt_service_properties' service.
  3212. Update `tt_services'.
  3213. * src/truetype/ttpic.h: Include FT_SERVICE_PROPERTIES_H.
  3214. (TT_SERVICE_PROPERTIES_GET): New macro.
  3215. (TTModulePIC): Add `tt_service_properties'.
  3216. 2013-05-12 Werner Lemberg <wl@gnu.org>
  3217. Fix Savannah bug #38967.
  3218. * src/base/ftcalc.c (FT_DivFix) [FT_LONG64]: Fix cast.
  3219. 2013-05-12 Werner Lemberg <wl@gnu.org>
  3220. Introduce unsigned 64bit type (if available).
  3221. * include/freetype/config/ftconfig.h: Define FT_UINT64 if available.
  3222. [FT_LONG64]: Provide FT_UInt64.
  3223. * builds/unix/ftconfig.in: Synchronized.
  3224. 2013-05-12 Werner Lemberg <wl@gnu.org>
  3225. Fix Savannah bug #38968.
  3226. * include/freetype/ftmodapi.h: Add `FT_EXPORT' to
  3227. FT_Property_{Set,Get}.
  3228. * src/base/ftobjs.c: Add `FT_EXPORT_DEF' to
  3229. FT_Property_{Set,Get}.
  3230. 2013-05-10 Werner Lemberg <wl@gnu.org>
  3231. [sfnt] Clean up bitmap code.
  3232. * src/sfnt/ttsbit.c: Deleted.
  3233. * src/sfnt/ttsbit0.c: Renamed to `ttsbit.c'.
  3234. * rules.mk (SFNT_DRV_H): Updated.
  3235. 2013-05-10 Werner Lemberg <wl@gnu.org>
  3236. */* [FT_CONFIG_OPTION_OLD_INTERNALS]: Remove macro and guarded code.
  3237. ----------------------------------------------------------------------------
  3238. Copyright 2013-2014 by
  3239. David Turner, Robert Wilhelm, and Werner Lemberg.
  3240. This file is part of the FreeType project, and may only be used, modified,
  3241. and distributed under the terms of the FreeType project license,
  3242. LICENSE.TXT. By continuing to use, modify, or distribute this file you
  3243. indicate that you have read the license and understand and accept it
  3244. fully.
  3245. Local Variables:
  3246. version-control: never
  3247. coding: utf-8
  3248. End: