ChangeLog.25 164 KB

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