CHANGES 211 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686
  1. CHANGES BETWEEN 2.13.1 and 2.13.2 (2023-Aug-25)
  2. I. MISCELLANEOUS
  3. - Better support for CFF2 variation fonts.
  4. - TrueType interpreter version 38 (also known as 'Infinality') has
  5. been removed.
  6. - Improved OpenVMS support.
  7. ======================================================================
  8. CHANGES BETWEEN 2.13.0 and 2.13.1 (2023-Jun-24)
  9. I. MISCELLANEOUS
  10. - New function `FT_Get_Default_Named_Instance` to get the index of
  11. the default named instance of an OpenType Variation Font.
  12. - A new load flag `FT_LOAD_NO_SVG` to make FreeType ignore glyphs in
  13. an 'SVG ' table.
  14. - New function `FT_GlyphSlot_AdjustWeight` to adjust the glyph
  15. weight either horizontally or vertically. This is part of the
  16. `ftsynth.h` header file, which is still considered to be in alpha
  17. stage.
  18. - TrueType interpreter version 38 (also known as 'Infinality') has
  19. been deactivated; the value of `TT_INTERPRETER_VERSION_38` is now
  20. the same as `TT_INTERPRETER_VERSION_40`.
  21. - Updated OpenVMS support.
  22. - The base API documentation has been modularized for easier
  23. handling.
  24. - Switching named instances on and off in Variation Fonts was buggy
  25. if the design coordinates didn't change.
  26. - `ftbench` has a new command-line option `-a` to apply design
  27. coordinates.
  28. - `ftview` can now flip SVG rendering on and off using the 'Z' key.
  29. - In `ftmulti` it is now possible to toggle the fill rule and
  30. overlap flag used for rendering glyphs using the 'F3' and 'F4'
  31. keys, respectively. Toggling the anti-aliased mode has been
  32. changed to the 'TAB' key.
  33. ======================================================================
  34. CHANGES BETWEEN 2.12.1 and 2.13.0 (2023-Feb-09)
  35. I. IMPORTANT CHANGES
  36. - The demo program `ftinspect` has been completely updated and much
  37. enhanced. It now combines the functionality of almost all other
  38. graphical FreeType demo programs into a single application based
  39. on the Qt framework. This was Charlie Jiang's GSoC 2022 project.
  40. - The 'COLR' v1 API is now considered as stable.
  41. https://learn.microsoft.com/en-us/typography/opentype/spec/colr
  42. II. MISCELLANEOUS
  43. - For OpenType Variable Fonts, `avar` table format 2.0 is now
  44. supported. The code was contributed by Behdad Esfahbod.
  45. Note that this is an extension supported on recent Apple platforms
  46. and by HarfBuzz, but not yet in the OpenType standard! See
  47. https://github.com/harfbuzz/boring-expansion-spec/blob/main/avar2.md
  48. for the specification. To deactivate it, define the configuration
  49. macro 'TT_CONFIG_OPTION_NO_BORING_EXPANSION'.
  50. - A new API `FT_GlyphSlot_Slant` to slant a glyph by a given angle
  51. has been added. Note that this function is part of `ftsynth.h`,
  52. which is still considered to be in alpha stage.
  53. - TrueType interpreter version 38 (also known as 'Infinality') that
  54. was first introduced about 10 years ago in FreeType 2.4.11 is now
  55. deprecated and slated to be removed in the next version. TrueType
  56. interpreter version 40 has been FreeType's default version for six
  57. years now and provides an excellent alternative. This is the last
  58. FreeType version with TT_INTERPRETER_VERSION_38 and
  59. TT_INTERPRETER_VERSION_40 treated differently.
  60. - The only referenced but never documented configuration macro
  61. `FT_CONFIG_OPTION_NO_GLYPH_NAMES` has been removed.
  62. - The `ftbench` demo program got a new command line option `-e` to
  63. set a charmap index.
  64. - Specifying a point size is now optional for the demo programs
  65. `ftgrid`, `ftmulti`, `ftstring`, and `ftview`. If not given, a
  66. default size is used.
  67. - For `ftgrid`, `ftstring`, and `ftview`, option `-e` now also
  68. accepts a numeric value to set a charmap index.
  69. - In `ftstring`, it is now possible to set the displayed text
  70. interactively by pressing the 'Enter' key.
  71. - `ftmulti` can now handle up to 16 design axes.
  72. - To avoid reserved identifiers that are globally defined, the
  73. auto-hinter debugging macros (which are only available if
  74. `FT_DEBUG_AUTOFIT` is defined)
  75. ```
  76. _af_debug_disable_horz_hints
  77. _af_debug_disable_vert_hints
  78. _af_debug_disable_blue_hints
  79. _af_debug_hints
  80. ```
  81. have been renamed to
  82. ```
  83. af_debug_disable_horz_hints_
  84. af_debug_disable_vert_hints_
  85. af_debug_disable_blue_hints_
  86. af_debug_hints_
  87. ```
  88. - The internal zlib library was updated to version 1.2.13. Note,
  89. however, that FreeType is *not* affected by CVE-2022-37434 since
  90. it doesn't use the `inflateGetHeader` function.
  91. ======================================================================
  92. CHANGES BETWEEN 2.12.0 and 2.12.1 (2022-May-01)
  93. I. IMPORTANT BUG FIXES
  94. - Loading CFF fonts sometimes made FreeType crash (bug introduced in
  95. version 2.12.0)
  96. - Loading a fully hinted TrueType glyph a second time (without
  97. caching) sometimes yielded different rendering results if TrueType
  98. hinting was active (bug introduced in version 2.12.0).
  99. - The generation of the pkg-config file `freetype2.pc` was broken if
  100. the build was done with cmake (bug introduced in version 2.12.0).
  101. II. MISCELLANEOUS
  102. - New option `--with-librsvg` for the `configure` script for better
  103. FreeType demo support.
  104. - The meson build no longer enforces both static and dynamic
  105. versions of the library by default.
  106. - The internal zlib library was updated to version 1.2.12. Note,
  107. however, that FreeType is *not* affected by CVE-2018-25032 since
  108. it only does decompression.
  109. ======================================================================
  110. CHANGES BETWEEN 2.11.1 and 2.12.0 (2022-Mar-30)
  111. I. IMPORTANT CHANGES
  112. - FreeType now handles OT-SVG fonts, to be controlled with
  113. `FT_CONFIG_OPTION_SVG` configuration macro. By default, it can
  114. only load the 'SVG ' table of an OpenType font. However, by using
  115. the `svg-hooks` property of the new 'ot-svg' module it is possible
  116. to register an external SVG rendering engine. The FreeType demo
  117. programs have been set up to use 'librsvg' as the rendering
  118. library.
  119. This work was Moazin Khatti's GSoC 2019 project.
  120. II. MISCELLANEOUS
  121. - The handling of fonts with an 'sbix' table has been improved.
  122. - Corrected bitmap offsets.
  123. - A new tag `FT_PARAM_TAG_IGNORE_SBIX` for `FT_Open_Face` makes
  124. FreeType ignore an 'sbix' table in a font, allowing applications
  125. to access the font's outline glyphs.
  126. - `FT_FACE_FLAG_SBIX` and `FT_FACE_FLAG_SBIX_OVERLAY` together
  127. with their corresponding preprocessor macros `FT_HAS_SBIX` and
  128. `FT_HAS_SBIX_OVERLAY` enable applications to treat 'sbix' tables
  129. as described in the OpenType specification.
  130. - The internal 'zlib' code has been updated to be in sync with the
  131. current 'zlib' version (1.2.11).
  132. - The previously internal load flag `FT_LOAD_SBITS_ONLY` is now
  133. public.
  134. - Some minor improvements of the building systems, in particular
  135. handling of the 'zlib' library (internal vs. external).
  136. - Support for non-desktop Universal Windows Platform.
  137. - Various other minor bug and documentation fixes.
  138. - The `ftdump` demo program shows more information for Type1 fonts
  139. if option `-n` is given.
  140. - `ftgrid` can now display embedded bitmap strikes.
  141. ======================================================================
  142. CHANGES BETWEEN 2.11.0 and 2.11.1 (2021-Dec-01)
  143. I. IMPORTANT CHANGES
  144. - Some fields in the `CID_FaceDictRec`, `CID_FaceInfoRec`, and
  145. `FT_Data` structures have been changed from signed to unsigned
  146. type, which better reflects the actual usage. It is also an
  147. additional means to protect against malformed input.
  148. II. MISCELLANEOUS
  149. - Cmake support has been further improved. To do that various
  150. backward-incompatible changes were necessary; please see file
  151. `CMakeLists.txt` for more details.
  152. - Since version 2.11.0, a C99 compiler is necessary to compile
  153. FreeType.
  154. - The experimental 'COLR' v1 API has been updated to the latest
  155. OpenType standard 1.9.
  156. - The `apinames` tool got a new option `-wV` to output an OpenVMS
  157. Linker Option File.
  158. - VMS support was updated.
  159. - MS Visual Studio support was added to build the demo programs.
  160. ======================================================================
  161. CHANGES BETWEEN 2.10.4 and 2.11.0 (2021-Jul-18)
  162. I. IMPORTANT CHANGES
  163. - A new rendering module has been added to create 8-bit Signed
  164. Distance Field (SDF) bitmaps for both outline and bitmap glyphs.
  165. The new rendering mode is called `FT_RENDER_MODE_SDF`, the pixel
  166. mode is `FT_PIXEL_MODE_GRAY8`, and the corresponding raster flag
  167. is `FT_RASTER_FLAG_SDF`.
  168. This work was Anuj Verma's GSoC 2020 project.
  169. - A new, experimental API is now available for surfacing properties
  170. of 'COLR' v1 color fonts (as the name says, this is an extension
  171. to the 'COLR' table for outline color fonts using the SFNT
  172. container format). 'COLR' v1 fonts are a recently proposed
  173. addition to OFF and OpenType; specification work currently happens
  174. in
  175. https://github.com/googlefonts/colr-gradients-spec/
  176. 'COLR' v1 is expected to be merged to OpenType; the ISO
  177. standardisation process for adding 'COLR' v1 as an amendment to
  178. OFF is underway.
  179. Functions similar to the already existing 'COLR' API have been
  180. added to access the corresponding data.
  181. FT_Get_Color_Glyph_Paint
  182. Retrieve the root paint for a given glyph ID.
  183. FT_Get_Paint_Layers
  184. Access the layers of a `PaintColrLayers` table.
  185. FT_Get_Colorline_Stops
  186. Retrieve the 'color stops' on a color line. As an input, a
  187. color stop iterator gets used, which in turn is retrieved from
  188. a paint.
  189. FT_Get_Paint
  190. Dereference an `FT_OpaquePaint` object and retrieve the
  191. corresponding `FT_COLR_Paint` object, which contains details
  192. on how to draw the respective 'COLR' v1 `Paint` table.
  193. II. MISCELLANEOUS
  194. - FreeType has moved its infrastructure to
  195. https://gitlab.freedesktop.org/freetype
  196. A side effect is that the git repositories are now called
  197. `freetype.git` and `freetype-demos.git`, which by default expand
  198. to the directories `freetype` and `freetype-demos`, respectively.
  199. The documentation has been updated accordingly.
  200. FreeType's Savannah repositories will stay; they are now mirrors
  201. of the 'freedesktop.org' repositories.
  202. - A new function `FT_Get_Transform` returns the values set by
  203. `FT_Set_Transform`.
  204. - A new configuration macro `FT_DEBUG_LOGGING` is available. It
  205. provides extended debugging capabilities for FreeType, for example
  206. showing a time stamp or displaying the component a tracing message
  207. comes from. See file `docs/DEBUG` for more information.
  208. This work was Priyesh Kumar's GSoC 2020 project.
  209. - The legacy Type 1 and CFF engines are further demoted due to lack
  210. of CFF2 charstring support. You now need to use `FT_Property_Set`
  211. to enable them besides the `T1_CONFIG_OPTION_OLD_ENGINE` and
  212. `CFF_CONFIG_OPTION_OLD_ENGINE` options, respectively.
  213. - The experimental 'warp' mode (AF_CONFIG_OPTION_USE_WARPER) for the
  214. auto-hinter has been removed.
  215. - The smooth rasterizer performance has been improved by >10%. Note
  216. that due to necessary code changes there might be very subtle
  217. differences in rendering. They are not visible by the eye,
  218. however.
  219. - PCF bitmap fonts compressed with LZW (these are usually files with
  220. the extension `.pcf.Z`) are now handled correctly.
  221. - Improved Meson build files, including support to build the
  222. FreeType demo programs.
  223. - A new demo program `ftsdf` is available to display Signed Distance
  224. Fields of glyphs.
  225. - The `ftlint` demo program has been extended to do more testing of
  226. its input. In particular, it can display horizontal and vertical
  227. acutances for quality assessment, together with computing MD5
  228. checksums of rendered glyphs.
  229. [The acutance measures how sharply the pixel coverage changes at
  230. glyph edges. For monochrome bitmaps, it is always 2.0 in either
  231. X or Y direction. For anti-aliased bitmaps, it depends on the
  232. hinting and the shape of a glyph and might approach or even reach
  233. value 2.0 for glyphs like 'I', 'L', '+', '-', or '=', while it
  234. might be lower for glyphs like 'O', 'S', or 'W'.]
  235. - The `ttdebug` demo program didn't show changed point coordinates
  236. (bug introduced in version 2.10.3).
  237. - It is now possible to adjust the axis increment for variable fonts
  238. in the `ftmulti` demo program.
  239. - It is now possible to change the hinting engine in the `ftstring`
  240. demo program.
  241. - The graphical demo programs work better now in native color depth
  242. on win32 and x11.
  243. ======================================================================
  244. CHANGES BETWEEN 2.10.3 and 2.10.4 (2020-Oct-20)
  245. I. IMPORTANT BUG FIXES
  246. - A heap buffer overflow has been found in the handling of embedded
  247. PNG bitmaps, introduced in FreeType version 2.6.
  248. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-15999
  249. If you use option FT_CONFIG_OPTION_USE_PNG you should upgrade
  250. immediately.
  251. ======================================================================
  252. CHANGES BETWEEN 2.10.2 and 2.10.3 (2020-Oct-10)
  253. I. IMPORTANT CHANGES
  254. - New flag `FT_OUTLINE_OVERLAP'. If set, make the smooth rasterizer
  255. do 4x4 oversampling to mitigate artifacts in pixels partially
  256. covered by overlapping contours. Note that this at least
  257. quadruples the rendering time.
  258. If a glyph in a TrueType font has the `OVERLAP_SIMPLE' or
  259. `OVERLAP_COMPOUND' bit set, FreeType automatically selects this
  260. rendering mode.
  261. II. MISCELLANEOUS
  262. - Using the arcane method of including FreeType header files with
  263. macros like `FT_FREETYPE_H' is no longer mandatory (but retained
  264. as an optional feature for backward compatibility).
  265. - Support for building the library with Meson. Building the demo
  266. programs with Meson will follow in a forthcoming release.
  267. - Minor improvements to the B/W rasterizer.
  268. - Auto-hinter support for Medefaidrin script.
  269. - Fix various memory leaks (mainly for CFF) and other issues that
  270. might cause crashes in rare circumstances.
  271. - Jam support has been removed.
  272. - In `ftview', custom LCD filter values are now normalized and
  273. balanced. Unorthodox filters are still available through the `-L'
  274. command line option.
  275. - The GUI demo programs can now be resized.
  276. - Demo programs that accept command line option `-k' can now handle
  277. function keys, too. The corresponding character codes start with
  278. 0xF1. As an example, the POSIX shell syntax (accepted by bash,
  279. ksh, and zsh)
  280. -k $'\xF3q'
  281. emulates the pressing of function key `F3' followed by key `q'.
  282. ======================================================================
  283. CHANGES BETWEEN 2.10.1 and 2.10.2 (2020-May-09)
  284. I. IMPORTANT CHANGES
  285. - Support of WOFF2 fonts. This code contribution was Nikhil
  286. Ramakrishnan's GSoC 2019 project.
  287. II. MISCELLANEOUS
  288. - Function `FT_Get_Var_Axis_Flags' returned random data for Type 1
  289. MM fonts.
  290. - Type 1 fonts with non-integer metrics are now supported by the new
  291. (CFF) engine introduced in FreeType 2.9.
  292. - Drop support for Python 2 in Freetype's API reference generator
  293. `docwriter' (Python >= 3.5 is required for targets `make refdoc'
  294. and `make refdoc-venv').
  295. - Auto-hinter support for Hanifi Rohingya.
  296. - Document the `FT2_KEEP_ALIVE' debugging environment variable.
  297. - The Visual C++ (and Visual C) project files for Windows builds no
  298. longer generate libraries that contain the FreeType version in its
  299. filenames. Instead, a resource file gets used to make the
  300. libraries contain the corresponding information.
  301. - The next release will remove Jam build support.
  302. - The `ftbench' demo program has a new test for testing the
  303. `FT_Glyph_Stroke' functionality.
  304. ======================================================================
  305. CHANGES BETWEEN 2.10.0 and 2.10.1 (2019-Jul-01)
  306. I. IMPORTANT BUG FIXES
  307. - The bytecode hinting of OpenType variation fonts was flawed, since
  308. the data in the `CVAR' table wasn't correctly applied.
  309. II. MISCELLANEOUS
  310. - Auto-hinter support for Mongolian.
  311. - For distribution, `.tar.bz2' packages are replaced with `.tar.xz'
  312. bundles.
  313. - The handling of the default character in PCF fonts as introduced
  314. in version 2.10.0 was partially broken, causing premature abortion
  315. of charmap iteration for many fonts.
  316. - If `FT_Set_Named_Instance' was called with the same arguments
  317. twice in a row, the function returned an incorrect error code the
  318. second time.
  319. - Direct rendering using FT_RASTER_FLAG_DIRECT crashed (bug
  320. introduced in version 2.10.0).
  321. - Increased precision while computing OpenType font variation
  322. instances.
  323. - The flattening algorithm of cubic Bezier curves was slightly
  324. changed to make it faster. This can cause very subtle rendering
  325. changes, which aren't noticeable by the eye, however.
  326. - The auto-hinter now disables hinting if there are blue zones
  327. defined for a `style' (i.e., a certain combination of a script and
  328. its related typographic features) but the font doesn't contain any
  329. characters needed to set up at least one blue zone.
  330. - The `ftmulti' demo program now supports multiple hidden axes with
  331. the same name tag.
  332. - `ftview', `ftstring', and `ftgrid' got a `-k' command line option
  333. to emulate a sequence of keystrokes at start-up.
  334. - `ftview', `ftstring', and `ftgrid' now support screen dumping to a
  335. PNG file.
  336. - The bytecode debugger, `ttdebug', now supports variation TrueType
  337. fonts; a variation font instance can be selected with the new `-d'
  338. command line option.
  339. ======================================================================
  340. CHANGES BETWEEN 2.9.1 and 2.10.0 (2019-Mar-15)
  341. I. IMPORTANT CHANGES
  342. - A bunch of new functions has been added to access and process
  343. COLR/CPAL data of OpenType fonts with color-layered glyphs.
  344. FT_Palette_Data_Get
  345. Retrieve color palette data.
  346. FT_Palette_Select
  347. Select and activate a color palette for color-layered
  348. glyphs.
  349. FT_Palette_Set_Foreground_Color
  350. Set text foreground color for palette index 0xFFFF.
  351. FT_Get_Color_Glyph_Layer
  352. Get color layers for a given glyph (using an interator
  353. object).
  354. FT_Bitmap_Blend
  355. Blend one bitmap onto another with a given color.
  356. - An experimental feature is the new behaviour of the
  357. `FT_LOAD_COLOR' load flag for color-layered glyphs: Internally
  358. it sets a flag so that if `FT_Render_Glyph' is called with
  359. `FT_RENDER_MODE_NORMAL' (or `FT_Load_Glyph' with
  360. `FT_LOAD_RENDER'), a default blending of the color glyph layers
  361. will happen automatically for convenience.
  362. - As a GSoC 2018 project, Nikhil Ramakrishnan completely
  363. overhauled and modernized the API reference.
  364. II. MISCELLANEOUS
  365. - The logic for computing the global ascender, descender, and
  366. height of OpenType fonts has been slightly adjusted for
  367. consistency.
  368. . If the `useTypoMetrics' flag (i.e., bit 7 in the `fsSelection'
  369. field) in the `OS/2' table is set, use the `sTypo' fields in
  370. `OS/2' unconditionally.
  371. . Otherwise use the metrics data from the `hhea' table (if not
  372. zero).
  373. . Otherwise use the `sTypo' fields from the `OS/2' table (if not
  374. zero).
  375. . Otherwise use the `usWin' data from the `OS/2' table as a last
  376. resort.
  377. Variable fonts will apply the `MVAR' deltas to whichever metrics
  378. were picked.
  379. - `TT_Set_MM_Blend' could fail if call repeatedly with the same
  380. arguments.
  381. - The precision of handling deltas in Variation Fonts has been
  382. increased. The problem did only show up with multidimensional
  383. designspaces.
  384. - New function `FT_Library_SetLcdGeometry' to set up the geometry
  385. of LCD subpixels.
  386. - FreeType now uses the `defaultChar' property of PCF fonts to set
  387. the glyph for the undefined character at glyph index 0 (as
  388. FreeType already does for all other supported font formats). As
  389. a consequence, the order of glyphs of a PCF font if accessed
  390. with FreeType can be different now compared to previous
  391. versions.
  392. This change doesn't affect PCF font access with cmaps.
  393. - `FT_Select_Charmap' has been changed to allow parameter value
  394. `FT_ENCODING_NONE', which is valid for BDF, PCF, and Windows FNT
  395. formats to access built-in cmaps that don't have a predefined
  396. `FT_Encoding' value.
  397. - A previously reserved field in the `FT_GlyphSlotRec' structure
  398. now holds the glyph index.
  399. - On Win32 platforms, the use of `_DLL' to build the library has
  400. been replaced with `DLL_EXPORT' and `DLL_IMPORT'.
  401. - The usual round of fuzzer bug fixes to better reject malformed
  402. fonts.
  403. - `FT_Outline_New_Internal' and `FT_Outline_Done_Internal' have
  404. been removed. These two functions were public by oversight only
  405. and were never documented.
  406. - A new function `FT_Error_String' returns descriptions of error
  407. codes if configuration macro FT_CONFIG_OPTION_ERROR_STRINGS is
  408. defined.
  409. - `FT_Set_MM_WeightVector' and `FT_Get_MM_WeightVector' are new
  410. functions limited to Adobe MultiMaster fonts to directly set and
  411. get the weight vector.
  412. - Support for Position Independent Code as needed by systems that
  413. prohibit automatic address fixups, such as BREW, has been
  414. removed. [Compilation with modern compilers that use flags like
  415. `-fPIC' or `-fPIE' is not affected.]
  416. - The `ftdump' demo program has new options `-c' and `-C' to
  417. display charmaps in compact and detailed format, respectively.
  418. Option `-V' has been removed.
  419. - The `ftview', `ftstring', and `ftgrid' demo programs use a new
  420. command line option `-d' to specify the program window's width,
  421. height, and color depth.
  422. - The `ftview' demo program now displays red boxes for zero-width
  423. glyphs.
  424. - `ftglyph' has limited support to display fonts with
  425. color-layered glyphs. This will be improved later on.
  426. - `ftgrid' can now display bitmap fonts also.
  427. - The `ttdebug' demo program has a new option `-f' to select a
  428. member of a TrueType collection (TTC).
  429. - Other various improvements to the demo programs.
  430. ======================================================================
  431. CHANGES BETWEEN 2.9 and 2.9.1 (2019-May-01)
  432. I. IMPORTANT BUG FIXES
  433. - Type 1 fonts containing flex features were not rendered
  434. correctly (bug introduced in version 2.9).
  435. - CVE-2018-6942: Older FreeType versions can crash with certain
  436. malformed variation fonts.
  437. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-6942
  438. II. MISCELLANEOUS
  439. - Bug fix: Multiple calls to `FT_Get_MM_Var' returned garbage.
  440. - The base extensions `ftlcdfil' and `ftfntfmt' are now part of
  441. the base module (and thus no longer configurable in file
  442. `modules.cfg').
  443. - Emboldening of bitmaps didn't work correctly sometimes, showing
  444. various artifacts (bug introduced in version 2.8.1).
  445. - Use of the `freetype-config' script to get compilation and
  446. linking options is deprecated since it doesn't support
  447. cross-compiling, among other deficiencies. Instead, you should
  448. use the `pkg-config' interface.
  449. The `configure' script no longer installs `freetype-config' by
  450. default. For backward compatibility, a new configure option
  451. `--enable-freetype-config' is provided that reverts this
  452. decision.
  453. - The auto-hinter script ranges have been updated for Unicode 11.
  454. No support for new scripts have been added, however, with the
  455. exception of Georgian Mtavruli.
  456. - Support for cmake has been improved.
  457. - The next release will remove support for Position Independent
  458. Code as needed by systems that prohibit automatic address
  459. fixups, such as BREW. [Compilation with modern compilers that
  460. use flags like `-fPIC' or `-fPIE' is not affected.]
  461. ======================================================================
  462. CHANGES BETWEEN 2.8.1 and 2.9 (2018-Jan-08)
  463. I. IMPORTANT BUG FIXES
  464. - Advance width values of variation fonts were often wrong.
  465. - More fixes for variation font support; you should update to this
  466. version if you want to support them.
  467. II. IMPORTANT CHANGES
  468. - As a GSoC project, Ewald Hew extended the new (Adobe) CFF engine
  469. to handle Type 1 fonts also, thus greatly improving the
  470. rendering of this format. This is the new default. The old
  471. engine is still available if the configuration macro
  472. `T1_CONFIG_OPTION_OLD_ENGINE' gets defined; using the
  473. `hinting-engine' property of the `type1' driver module you can
  474. then switch between the two engines.
  475. - A new function, `FT_Set_Named_Instance', can be used to set or
  476. change the current named instance.
  477. - Starting with this FreeType version, resetting variation
  478. coordinates will return to the currently selected named
  479. instance. Previously, FreeType returned to the base font (i.e.,
  480. no instance set).
  481. III. MISCELLANEOUS
  482. - The `face_flags' field of the `FT_Face' structure has a new bit,
  483. `FT_FACE_FLAG_VARIATION', which is set if a variation font has
  484. been altered with `FT_Set_MM_Design_Coordinates',
  485. `FT_Set_Var_Design_Coordinates', or
  486. `FT_Set_Var_Blend_Coordinates'.
  487. - If the current face is a named instance, the new macro
  488. `FT_IS_NAMED_INSTANCE' returns true.
  489. - `FT_IS_VARIATION' is a new macro that returns true whenever a
  490. face object has been altered by `FT_Set_MM_Design_Coordinates',
  491. `FT_Set_Var_Design_Coordinates', or
  492. `FT_Set_Var_Blend_Coordinates'.
  493. - Changing the design coordinates of a variation font with
  494. `FT_Set_Var_Design_Coordinates' or
  495. `FT_Set_Var_Blend_Coordinates' does not influence the named
  496. instance index value (only `FT_Set_Named_Instance' does that).
  497. - Special PostScript names for named instances are only returned
  498. if the named instance is set with `FT_Set_Named_Instance' (and
  499. the font has corresponding entries in its `fvar' table). If
  500. `FT_IS_VARIATION' returns true, the algorithmically derived
  501. PostScript name is provided, not looking up special entries for
  502. named instances.
  503. - A new function `FT_Done_MM_Var' is provided to free the memory
  504. returned in a call to `FT_Get_MM_Var'.
  505. - On platforms using the `configure' script, the installed
  506. `ftoption.h' file now correctly reflects configuration options
  507. like `--with-harfbuzz'.
  508. - Better support to build FreeType as a DLL on Windows using
  509. Visual C.
  510. - All data specific to driver modules is now collected in a single
  511. file, `FT_DRIVER_H'. Consequently, the macros
  512. `FT_AUTOHINTER_H', `FT_CFF_DRIVER_H', `FT_TRUETYPE_DRIVER_H',
  513. and `FT_PCF_DRIVER_H' still work but are deprecated.
  514. - Some fuzzer fixes to better reject malformed fonts.
  515. - The `ftbench' demo program has a new test for opening a new face
  516. and loading some glyphs.
  517. - The `ftbench' demo program has a new option `-j' to specify the
  518. last glyph index to be used in the tests.
  519. - The `ftgrid' demo program has a new option `-n' to suppress
  520. display of named instances of variation fonts.
  521. - The `ttdebug' demo program can now show a stack trace (key `K')
  522. and switch between hexadecimal and decimal display of integers
  523. (key `I').
  524. ======================================================================
  525. CHANGES BETWEEN 2.8 and 2.8.1 (2017-Sep-16)
  526. I. IMPORTANT BUG FIXES
  527. - B/W hinting of TrueType fonts didn't work properly if
  528. interpreter version 38 or 40 was selected.
  529. - Some severe problems within the handling of TrueType Variation
  530. Fonts were found and fixed.
  531. - Function `FT_Set_Var_Design_Coordinates' didn't correctly handle
  532. the case with less input coordinates than axes.
  533. II. IMPORTANT CHANGES
  534. - By default, FreeType now offers high quality LCD-optimized
  535. output without resorting to ClearType techniques of resolution
  536. tripling and filtering. In this method, called Harmony, each
  537. color channel is generated separately after shifting the glyph
  538. outline, capitalizing on the fact that the color grids on LCD
  539. panels are shifted by a third of a pixel. This output is
  540. indistinguishable from ClearType with a light 3-tap filter.
  541. III. MISCELLANEOUS
  542. - Using the new function `FT_Get_Var_Axis_Flags', an application
  543. can access the `flags' field of a variation axis (introduced in
  544. OpenType version 1.8.2)
  545. - More sanity checks.
  546. - The internal representation of buffers for LCD rendering has
  547. changed (to be more precise, the amount of padding gets computed
  548. differently). Applications that use the FreeType API are not
  549. affected.
  550. - To reset all design axis values of a variation font to its
  551. default values you can now say
  552. error = FT_Set_Var_Design_Coordinates( face, 0, NULL );
  553. This also works with functions `FT_Set_MM_Design_Coordinates'
  554. and `FT_Set_MM_Blend_Coordinates'.
  555. - FreeType now synthesizes a missing Unicode cmap for (older)
  556. TrueType fonts also if glyph names are available.
  557. - FreeType has improved handling of BDF fonts without the
  558. `POINT_SIZE', `RESOLUTION_X', or `RESOLUTION_Y' properties; the
  559. library now uses the values of the `SIZE' keyword if they are
  560. missing. Previously, `SIZE' was completely ignored, and
  561. FreeType used heuristic values instead.
  562. - Multiple calls to `FT_Bitmap_Convert' do work now as advertised.
  563. Previously, they failed with an assertion error if there was an
  564. empty bitmap between non-empty ones.
  565. - The warping option has moved from `light' to `normal' hinting
  566. where it replaces the original hinting algorithm. The `light'
  567. mode is now always void of any hinting in x-direction.
  568. - 16bit compiler support is now officially ended. We didn't
  569. provide any maintenance since many years, and given that there
  570. were no error or problem reports either it seems that it is no
  571. longer needed.
  572. - The `ftgrid' demo program can now toggle the display of grid
  573. lines with the `G' key.
  574. - The `ftgrid' demo program can toggle a different set of colors
  575. (suitable to color-blind people) with the `C' key.
  576. - The `ftgrid' demo program now supports the `-e' command line
  577. option to select a cmap.
  578. - The `ftdump' demo program has a new command line option `-t' to
  579. output the SFNT table list.
  580. ======================================================================
  581. CHANGES BETWEEN 2.7.1 and 2.8 (2017-May-13)
  582. I. IMPORTANT CHANGES
  583. - Support for OpenType Variation Fonts is now complete. The last
  584. missing part was handling the `VVAR' and `MVAR' tables, which is
  585. available with this release.
  586. - A new function `FT_Face_Properties' allows the control of some
  587. module and library properties per font. Currently, the
  588. following properties can be handled: stem darkening, LCD filter
  589. weights, and the random seed for the `random' CFF operator.
  590. - The PCF change to show more `colorful' family names (introduced
  591. in version 2.7.1) was too radical; it can now be configured with
  592. PCF_CONFIG_OPTION_LONG_FAMILY_NAMES at compile time. If
  593. activated, it can be switched off at run time with the new pcf
  594. property `no-long-family-names'. If the `FREETYPE_PROPERTIES'
  595. environment variable is available, you can say
  596. FREETYPE_PROPERTIES=pcf:no-long-family-names=1
  597. - Support for the following scripts has been added to the
  598. auto-hinter.
  599. Adlam, Avestan, Bamum, Buhid, Carian, Chakma, Coptic, Cypriot,
  600. Deseret, Glagolitic, Gothic, Kayah, Lisu, N'Ko, Ol Chiki, Old
  601. Turkic, Osage, Osmanya, Saurashtra, Shavian, Sundanese, Tai
  602. Viet, Tifinagh, Unified Canadian Syllabics, Vai
  603. II. IMPORTANT BUG FIXES
  604. - `Light' auto-hinting mode no longer uses TrueType metrics for
  605. TrueType fonts. This bug was introduced in version 2.4.6,
  606. causing horizontal scaling also. Almost all GNU/Linux
  607. distributions (with Fedora as a notable exception) disabled the
  608. corresponding patch for good reasons; chances are thus high that
  609. you won't notice a difference.
  610. If optical backward compatibility for legacy applications is
  611. necessary, you might enable the AF_CONFIG_OPTION_TT_SIZE_METRICS
  612. configuration option. However, it is strongly recommended to
  613. avoid that, adjusting font sizes instead.
  614. - Global size metrics values in the `FT_Size_Metrics' structure
  615. can be different for TrueType fonts. Reason is that in older
  616. FreeType versions the metrics were rounded differently to
  617. integer pixels compared to all other font formats, yielding an
  618. inconsistent behaviour if you used non-native hinting. Starting
  619. with this version, global size metrics for TrueType fonts are
  620. handled the same as other font formats: `ascender' gets rounded
  621. up, `descender' gets rounded down, `height' gets normally
  622. rounded, and `max_advance' gets normally rounded, too.
  623. If you need more precise values of (global) ascender, descender,
  624. height, or `max_advance', please take the corresponding values
  625. from the `FT_Face' structure and scale them manually.
  626. - If a TrueType font gets loaded with FT_LOAD_NO_HINTING, FreeType
  627. now scales the font linearly again (bug introduced in version
  628. 2.4.6).
  629. - CVE-2017-8105, CVE-2017-8287: Older FreeType versions have
  630. out-of-bounds writes caused by heap-based buffer overflows
  631. related to Type 1 fonts.
  632. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-8105
  633. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-8287
  634. III. MISCELLANEOUS
  635. - A new function `FT_Set_Default_Properties' has been added to
  636. parse the `FREETYPE_PROPERTIES' environment variable
  637. (previously, it was internal only). `FT_Init_FreeType' always
  638. call this function, but `FT_New_Library' does not (similar to
  639. `FT_Add_Default_Modules').
  640. - To be in sync with OpenType version 1.7 and newer, macros
  641. FT_PARAM_TAG_IGNORE_PREFERRED_FAMILY,
  642. FT_PARAM_TAG_IGNORE_PREFERRED_SUBFAMILY,
  643. TT_NAME_ID_PREFERRED_FAMILY
  644. TT_NAME_ID_PREFERRED_SUBFAMILY
  645. are renamed to
  646. FT_PARAM_TAG_IGNORE_TYPOGRAPHIC_FAMILY,
  647. FT_PARAM_TAG_IGNORE_TYPOGRAPHIC_SUBFAMILY,
  648. TT_NAME_ID_TYPOGRAPHIC_FAMILY
  649. TT_NAME_ID_TYPOGRAPHIC_SUBFAMILY
  650. The old macro names are deprecated (but still available).
  651. - Support for SFNT `name' tables has been improved.
  652. . Format 1 `name' tables are now supported. Use new function
  653. `FT_Get_Sfnt_LangTag' to access associated language tags.
  654. . Language, encoding, and name IDs have been updated to OpenType
  655. version 1.8.1.
  656. - The new CFF engine now handles the `random' operator. All CFF
  657. opcodes are now supported.
  658. - The CFF module has a new property `random-seed' to control the
  659. pseudo-random number generation for the `random' operator.
  660. - The `freetype-config' script is now a wrapper of `pkg-config' if
  661. this program is available in the path.
  662. - FT_LOAD_TARGET_LCD is now a variant of FT_LOAD_TARGET_LIGHT;
  663. this should provide better rendering results.
  664. - A mode to display light auto-hinting with subpixel positioning
  665. has been added to `ftdiff'.
  666. ======================================================================
  667. CHANGES BETWEEN 2.7 and 2.7.1 (2016-Dec-30)
  668. I. IMPORTANT CHANGES
  669. - Support for the new CFF2 font format as introduced with OpenType
  670. 1.8 has been contributed by Dave Arnolds from Adobe.
  671. - Preliminary support for variation fonts as specified in OpenType
  672. 1.8 (in addition to the already existing support for Adobe's MM
  673. and Apple's GX formats). Dave Arnolds contributed handling of
  674. advance width change variation; more will come in the next
  675. version.
  676. II. IMPORTANT BUG FIXES
  677. - Handling of raw CID fonts was partially broken (bug introduced
  678. in 2.6.4).
  679. - CVE-2016-10328: Older FreeType versions had an out-of-bounds
  680. write caused by a heap-based buffer overflow related to the CFF
  681. fonts.
  682. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2016-10328
  683. III. MISCELLANEOUS
  684. - Some limits for TrueType bytecode execution have been tightened
  685. to speed up FreeType's handling of malformed fonts, in
  686. particular to quickly abort endless loops.
  687. - The number of twilight points can no longer be set to an
  688. arbitrarily large value.
  689. - The total number of jump opcode instructions (like JMPR) with
  690. negative arguments is dynamically restricted; the same holds
  691. for the total number of iterations in LOOPCALL opcodes.
  692. The dynamic limits are based on the number of points in a glyph
  693. and the number of CVT entries. Please report if you encounter a
  694. font where the selected values are not adequate.
  695. - PCF family names are made more `colorful'; they now include the
  696. foundry and information whether they contain wide characters.
  697. For example, you no longer get `Fixed' but rather `Sony Fixed'
  698. or `Misc Fixed Wide'.
  699. - A new function `FT_Get_Var_Blend_Coordinates' (with its alias
  700. name `FT_Get_MM_Blend_Coordinates') to retrieve the normalized
  701. blend coordinates of the currently selected variation instance
  702. has been added to the Multiple Masters interface.
  703. - A new function `FT_Get_Var_Design_Coordinates' to retrieve the
  704. design coordinates of the currently selected variation instance
  705. has been added to the Multiple Masters interface.
  706. - A new load flag `FT_LOAD_BITMAP_METRICS_ONLY' to retrieve bitmap
  707. information without loading the (embedded) bitmap itself.
  708. - Retrieving advance widths from bitmap strikes (using
  709. `FT_Get_Advance' and `FT_Get_Advances') have been sped up.
  710. - The usual round of fuzzer fixes to better reject malformed
  711. fonts.
  712. - The `ftmulti' demo program can now switch engines with key `H'.
  713. - The `ftstring' demo program can now show some built-in,
  714. non-latin sample strings (to be selected with the TAB key).
  715. - The `ftview' demo program can now switch between a font's
  716. charmaps using the TAB key.
  717. ======================================================================
  718. CHANGES BETWEEN 2.6.5 and 2.7 (2016-Sep-08)
  719. I. IMPORTANT CHANGES
  720. - As announced earlier, the 2.7.x series now uses the new subpixel
  721. hinting mode as the default, emulating a modern version of
  722. ClearType.
  723. This change inevitably leads to different rendering results, and
  724. you might change the `TT_CONFIG_OPTION_SUBPIXEL_HINTING'
  725. configuration option to adapt it to your taste (or use the new
  726. `FREETYPE_PROPERTIES' environment variable). See the
  727. corresponding entry below for version 2.6.4, which gives more
  728. information.
  729. - A new option `FT_CONFIG_OPTION_ENVIRONMENT_PROPERTIES' has been
  730. introduced. If set (which is the default), an environment
  731. variable `FREETYPE_PROPERTIES' can be used to control driver
  732. properties. Example:
  733. FREETYPE_PROPERTIES=truetype:interpreter-version=35 \
  734. cff:no-stem-darkening=1 \
  735. autofitter:warping=1
  736. This allows to select, say, the subpixel hinting mode at runtime
  737. for a given application. See file `ftoption.h' for more.
  738. II. IMPORTANT BUG FIXES
  739. - After loading a named instance of a GX variation font, the
  740. `face_index' value in the returned `FT_Face' structure now
  741. correctly holds the named instance index in the upper 16bits as
  742. documented.
  743. III. MISCELLANEOUS
  744. - A new macro `FT_IS_NAMED_INSTANCE' to test whether a given face
  745. is a named instance.
  746. - More fixes to GX font handling.
  747. - Apple's `GETVARIATION' bytecode operator (needed for GX
  748. variation font support) has been implemented.
  749. - Another round of fuzzer fixes, mainly to reject invalid fonts
  750. faster.
  751. - Handling of raw CID fonts was broken (bug introduced in version
  752. 2.6.4).
  753. - The smooth rasterizer has been streamlined to make it faster by
  754. approx. 20%.
  755. - The `ftgrid' demo program now understands command line option
  756. `-d' to give start-up design coordinates.
  757. - The `ftdump' demo program has a new command line option `-p' to
  758. dump TrueType bytecode instructions.
  759. ======================================================================
  760. CHANGES BETWEEN 2.6.4 and 2.6.5 (2016-Jul-12)
  761. I. IMPORTANT BUG FIXES
  762. - Compilation works again on Mac OS X (bug introduced in version
  763. 2.6.4).
  764. II. IMPORTANT CHANGES
  765. - The new subpixel hinting mode is now disabled by default; it
  766. will be enabled by default in the forthcoming 2.7.x series.
  767. Main reason for reverting this feature is the principle of least
  768. surprise: a sudden change in appearance of all fonts (even if
  769. the rendering improves for almost all recent fonts) should not
  770. be expected in a new micro version of a series.
  771. ======================================================================
  772. CHANGES BETWEEN 2.6.3 and 2.6.4 (2016-Jul-05)
  773. I. IMPORTANT CHANGES
  774. - A new subpixel hinting mode has been contributed by Nikolaus
  775. Waxweiler, which is now the default rendering mode for TrueType
  776. fonts. It implements (almost everything of) version 40 of the
  777. bytecode engine.
  778. The existing code base in FreeType (the `Infinality code') was
  779. stripped to the bare minimum and all configurability removed in
  780. the name of speed and simplicity. The configurability was
  781. mainly aimed at legacy fonts like Arial, Times New Roman, or
  782. Courier. [Legacy fonts are fonts that modify vertical stems to
  783. achieve clean black-and-white bitmaps.] The new mode focuses on
  784. applying a minimal set of rules to all fonts indiscriminately so
  785. that modern and web fonts render well while legacy fonts render
  786. okay.
  787. Activation of the subpixel hinting support can be controlled
  788. with the `TT_CONFIG_OPTION_SUBPIXEL_HINTING' configuration
  789. option at compile time: If set to value 1, you get the old
  790. Infinality mode (which was never the default due to its
  791. slowness). Value 2 activates the new subpixel hinting mode, and
  792. value 3 activates both. The default is value 2.
  793. At run time, you can select the subpixel hinting mode with the
  794. `interpreter-version' property (provided you have compiled in
  795. the corresponding hinting mode); see `ftttdrv.h' for more.
  796. - Support for the following scripts has been added to the
  797. auto-hinter.
  798. Armenian, Cherokee, Ethiopic, Georgian, Gujarati, Gurmukhi,
  799. Malayalam, Sinhala, Tamil
  800. II. MISCELLANEOUS
  801. - Type 42 fonts as created by LilyPond are now supported.
  802. - Minor rendering improvements in the auto-hinter.
  803. - For experimental reasons, the old CFF engine now supports all
  804. CFF operators except `random', including the deprecated Multiple
  805. Masters instructions. This allows the display of fonts like
  806. `ITCGaramondMM-It.otf' (without font variations, though).
  807. - Another round of fixes to improve handling of invalid fonts.
  808. - The `ftgrid' demo program now displays the rendered pixels also;
  809. this can be switched off with the `b' key. Selection of various
  810. LCD filtering modes can be done with the `L' key.
  811. - The demo programs have been extended to allow selection of all
  812. available TrueType bytecode engines.
  813. - A very early beta version of a new, Qt based demo program called
  814. `ftinspect' is part of the source code bundle; it will
  815. eventually supersede the other demo programs. Currently, you
  816. have to compile it manually with `qmake; make'; note that many
  817. features are still missing.
  818. ======================================================================
  819. CHANGES BETWEEN 2.6.2 and 2.6.3 (2016-Feb-08)
  820. I. IMPORTANT CHANGES
  821. - Khmer, Myanmar, Bengali, and Kannada script support has been
  822. added to the auto-hinter.
  823. II. MISCELLANEOUS
  824. - Better support of Indic scripts like Devanagari by using a
  825. top-to-bottom hinting flow.
  826. - All FreeType macros starting with two underscores have been
  827. renamed to avoid a violation of both the C and C++ standards.
  828. Example: Header macros of the form `__FOO_H__' are now called
  829. `FOO_H_'. In most cases, this should be completely transparent
  830. to the user. The exception to this is `__FTERRORS_H__', which
  831. must be sometimes undefined by the user to get FreeType error
  832. strings: Both this form and the new `FTERRORS_H_' macro are
  833. accepted for backward compatibility.
  834. - Minor improvements mainly to the Type 1 driver.
  835. - The new CFF engine now supports all Type 2 operators except
  836. `random'.
  837. - The macro `_STANDALONE_', used for compiling the B/W and smooth
  838. rasterizers as stand-alone modules, has been renamed to
  839. `STANDALONE_', since macro names starting with an underscore and
  840. followed by an uppercase letter are reserved in both C and C++.
  841. - Function `FT_Library_SetLcdFilterWeights' now also activates
  842. custom LCD filter weights (instead of just adjusting them).
  843. - Support for `unpatented hinting' has been completely removed:
  844. Consequently, the two functions `FT_Face_CheckTrueTypePatents'
  845. and `FT_Face_SetUnpatentedHinting' now return always false,
  846. doing nothing.
  847. - The `ftgamma' demo program has been modernized; the gamma grid
  848. display has been moved from `ftview' to this program.
  849. - In `ftview', it is now possible to cycle through the available
  850. LCD filtering modes.
  851. ======================================================================
  852. CHANGES BETWEEN 2.6.1 and 2.6.2 (2015-Nov-28)
  853. I. IMPORTANT CHANGES
  854. - The auto-hinter now supports stem darkening, to be controlled by
  855. the new `no-stem-darkening' and `darkening-parameters'
  856. properties. This is an experimental feature contributed by
  857. Nikolaus Waxweiler, and the interface might change in a future
  858. release.
  859. - By default, stem darkening is now switched off (for both the CFF
  860. engine and the auto-hinter). The main reason is that you need
  861. linear alpha blending and gamma correction to get correct
  862. rendering results, and the latter is not yet available in most
  863. freely available rendering stacks like X11. Applying stem
  864. darkening without proper gamma correction leads to far too dark
  865. rendering results.
  866. - The meaning of `FT_RENDER_MODE_LIGHT' has been slightly
  867. modified. It now essentially means `no hinting along the
  868. horizontal axis'; in particular, no change of glyph advance
  869. widths. Consequently, the auto-hinter is used for all scalable
  870. font formats except for CFF. It is planned that other
  871. font-specific rendering engines (TrueType, Type 1) will follow.
  872. II. MISCELLANEOUS
  873. - The default LCD filter has been changed to be normalized and
  874. color-balanced.
  875. - For better compatibility with FontConfig, function
  876. `FT_Library_SetLcdFilter' accepts a new enumeration value
  877. `FT_LCD_FILTER_LEGACY1' (which has the same meaning as
  878. `FT_LCD_FILTER_LEGACY').
  879. - A large number of bugs have been detected by using the libFuzzer
  880. framework, which should further improve handling of invalid
  881. fonts. Thanks again to Kostya Serebryany and Bungeman!
  882. - `TT_CONFIG_OPTION_MAX_RUNNABLE_OPCODES', a new configuration
  883. option, controls the maximum number of executed opcodes within a
  884. bytecode program. You don't want to change this except for very
  885. special situations (e.g., making a library fuzzer spend less
  886. time to handle broken fonts).
  887. - The smooth renderer has been made faster.
  888. - The `ftstring' demo program now supports subpixel rendering; use
  889. key `l' to cycle through the LCD modes.
  890. - The `ftstring' demo program now supports color rendering; use
  891. the `space' key to cycle through various color combinations.
  892. - The graphical demo programs now use a default gamma value of 1.8
  893. (instead of 1.2).
  894. ======================================================================
  895. CHANGES BETWEEN 2.6 and 2.6.1 (2015-Oct-04)
  896. I. IMPORTANT BUG FIXES
  897. - It turned out that for CFFs only the advance widths should be
  898. taken from the `htmx' table, not the side bearings. This bug,
  899. introduced in version 2.6.0, makes it necessary to upgrade if
  900. you are using CFFs; otherwise, you get cropped glyphs with GUI
  901. interfaces like GTK or Qt.
  902. - Accessing Type 42 fonts returned incorrect results if the glyph
  903. order of the embedded TrueType font differs from the glyph order
  904. of the Type 42 charstrings table.
  905. II. IMPORTANT CHANGES
  906. - The header file layout has been changed (again), moving all
  907. header files except `ft2build.h' into a subdirectory tree.
  908. Doing so reduces the possibility of header file name clashes
  909. (e.g., FTGL's `FTGlyph.h' with FreeType's `ftglyph.h') on case
  910. insensitive file systems like Mac OS X or Windows.
  911. Applications that use (a) the `freetype-config' script or
  912. FreeType's `freetype2.pc' file for pkg-config to get the include
  913. directory for the compiler, and (b) the documented way for
  914. header inclusion like
  915. #include <ft2build.h>
  916. #include FT_FREETYPE_H
  917. ...
  918. don't need any change to the source code.
  919. - Simple access to named instances in GX variation fonts is now
  920. available (in addition to the previous method via FreeType's MM
  921. interface). In the `FT_Face' structure, bits 16-30 of the
  922. `face_index' field hold the current named instance index for the
  923. given face index, and bits 16-30 of `style_flags' contain the
  924. number of instances for the given face index. `FT_Open_Face'
  925. and friends also understand the extended bits of the face index
  926. parameter.
  927. You need to enable TT_CONFIG_OPTION_GX_VAR_SUPPORT for this new
  928. feature. Otherwise, bits 16-30 of the two fields are zero (or
  929. are ignored).
  930. - Lao script support has been added to the auto-hinter.
  931. III. MISCELLANEOUS
  932. - The auto-hinter's Arabic script support has been enhanced.
  933. - Superscript-like and subscript-like glyphs as used by various
  934. phonetic alphabets like the IPA are now better supported by the
  935. auto-hinter.
  936. - The TrueType bytecode interpreter now runs slightly faster.
  937. - Improved support for builds with cmake.
  938. - The function `FT_CeilFix' now always rounds towards plus
  939. infinity.
  940. - The function `FT_FloorFix' now always rounds towards minus
  941. infinity.
  942. - A new load flag `FT_LOAD_COMPUTE_METRICS' has been added; it
  943. makes FreeType ignore pre-computed metrics, as needed by font
  944. validating or font editing programs. Right now, only the
  945. TrueType module supports it to ignore data from the `hdmx'
  946. table.
  947. - Another round of bug fixes to better handle broken fonts, found
  948. by Kostya Serebryany <[email protected]>.
  949. ======================================================================
  950. CHANGES BETWEEN 2.5.5 and 2.6 (2015-Jun-07)
  951. I. IMPORTANT CHANGES
  952. - Behdad Esfahbod contributed code for improved thread-safety,
  953. which results in the following model.
  954. * An `FT_Face' object can only be safely used from one thread at
  955. a time.
  956. * An `FT_Library' object can now be used without modification
  957. from multiple threads at the same time.
  958. * `FT_Face' creation and destruction with the same `FT_Library'
  959. object can only be done from one thread at a time.
  960. One can use a single `FT_Library' object across threads as long
  961. as a mutex lock is used around `FT_New_Face' and `FT_Done_Face'.
  962. Any calls to `FT_Load_Glyph' and similar API are safe and do not
  963. need the lock to be held as long as the same `FT_Face' is not
  964. used from multiple threads at the same time.
  965. - Thai script support has been added to the auto-hinter.
  966. - Arabic script support has been added to the auto-hinter.
  967. - Following OpenType version 1.7, advance widths and side bearing
  968. values in CFFs (wrapped in an SFNT structure) are now always
  969. taken from the `hmtx' table.
  970. - Following OpenType version 1.7, the PostScript font name of a
  971. CFF font (wrapped in an SFNT structure) is now always taken from
  972. the `name' table. This is also true for OpenType Collections
  973. (i.e., TTCs using CFFs subfonts instead of TTFs), where it may
  974. have a significant difference.
  975. - Fonts natively hinted for ClearType are now supported, properly
  976. handling selector index 3 of the INSTCTRL bytecode instruction.
  977. - Major improvements to the GX TrueType variation font handling.
  978. II. MISCELLANEOUS
  979. - A new auto-hinter property `warping' can switch on and off the
  980. warping code if this experimental feature is compiled in (by
  981. defining the AF_CONFIG_OPTION_USE_WARPER configuration option;
  982. by default this option is now enabled but warping is switched
  983. off).
  984. The AF_CONFIG_OPTION_USE_WARPER option itself is an old feature,
  985. available since 2006. Warping only works in `light'
  986. auto-hinting mode. The idea of the code is to slightly scale
  987. and shift a glyph along the non-hinted dimension (which is
  988. usually the horizontal axis) so that as much of its segments are
  989. aligned (more or less) to the grid. To find out a glyph's
  990. optimal scaling and shifting value, various parameter
  991. combinations are tried and scored.
  992. See file `ftautoh.h' for more; the demo programs `ftdiff',
  993. `ftview', and `ftgrid' can toggle warping with key `w'.
  994. - Some fields in the `FTC_ImageTypeRec' structure have been
  995. changed from signed to unsigned type, which better reflects the
  996. actual usage. It is also an additional means to protect against
  997. malformed input.
  998. This change doesn't break the ABI; however, it might cause
  999. compiler warnings.
  1000. - Function `FT_Bitmap_New' has been renamed to `FT_Bitmap_Init',
  1001. since this name better reflects its function. For backward
  1002. compatibility, the old function name is still available.
  1003. - Function `FT_Get_X11_Font_Format' has been renamed to
  1004. `FT_Get_Font_Format', since this name better reflects its
  1005. function. For backward compatibility, the old function name is
  1006. still available.
  1007. Additionally, the header file macro for this function has been
  1008. renamed to `FT_FONT_FORMATS_H' (the old name `FT_XFREE86_H' is
  1009. retained for backward compatibility).
  1010. - Various improvements to the `ftgrid' demo program.
  1011. . It can now display GX and MM fonts while interactively
  1012. manipulating the axes (with keys F2, F3, and F4).
  1013. . Anti-aliasing rendering modes can now be selected (with keys
  1014. F5 and F6).
  1015. . The display of point numbers can be toggled with key `D'.
  1016. - Various improvements to the `ftdump' demo program.
  1017. . It now displays information on MM and GX variation axes.
  1018. . New command line option `-u' makes it output data in utf-8
  1019. encoding.
  1020. - The `ftmulti' demo program can now handle up to six MM or GX
  1021. axes.
  1022. ======================================================================
  1023. CHANGES BETWEEN 2.5.4 and 2.5.5 (2014-Dec-30)
  1024. I. IMPORTANT BUG FIXES
  1025. - Handling of uncompressed PCF files works again (bug introduced
  1026. in version 2.5.4).
  1027. ======================================================================
  1028. CHANGES BETWEEN 2.5.3 and 2.5.4 (2014-Dec-06)
  1029. I. IMPORTANT BUG FIXES
  1030. - A variant of vulnerability CVE-2014-2240 was identified
  1031. (cf. https://savannah.nongnu.org/bugs/?43661) and fixed in the
  1032. new CFF driver. All users should upgrade.
  1033. - The new auto-hinter code using HarfBuzz crashed for some invalid
  1034. fonts.
  1035. - Many fixes to better protect against malformed input.
  1036. II. IMPORTANT CHANGES
  1037. - Full auto-hinter support of the Devanagari script.
  1038. - Experimental auto-hinter support of the Telugu script.
  1039. - CFF stem darkening behaviour can now be controlled at build time
  1040. using the eight macros
  1041. CFF_CONFIG_OPTION_DARKENING_PARAMETER_{X,Y}{1,2,3,4} .
  1042. - Some fields in the `FT_Bitmap' structure have been changed from
  1043. signed to unsigned type, which better reflects the actual usage.
  1044. It is also an additional means to protect against malformed
  1045. input.
  1046. This change doesn't break the ABI; however, it might cause
  1047. compiler warnings.
  1048. III. MISCELLANEOUS
  1049. - Improvements to the auto-hinter's algorithm to recognize stems
  1050. and local extrema.
  1051. - Function `FT_Get_SubGlyph_Info' always returned an error even in
  1052. case of success.
  1053. - Version 2.5.1 introduced major bugs in the cjk part of the
  1054. auto-hinter, which are now fixed.
  1055. - The `FT_Sfnt_Tag' enumeration values have been changed to
  1056. uppercase, e.g. `FT_SFNT_HEAD'. The lowercase variants are
  1057. deprecated. This is for orthogonality with all other
  1058. enumeration (and enumeration-like) values in FreeType.
  1059. - `cmake' now supports builds of FreeType as an OS X framework and
  1060. for iOS.
  1061. - Improved project files for vc2010, introducing a property file.
  1062. - The documentation generator for the API reference has been
  1063. updated to produce better HTML code (with proper CSS). At the
  1064. same time, the documentation got a better structure.
  1065. - The FT_LOAD_BITMAP_CROP flag is obsolete; it is not used by any
  1066. driver.
  1067. - The TrueType DELTAP[123] bytecode instructions now work in
  1068. subpixel hinting mode as described in the ClearType whitepaper
  1069. (i.e., for touched points in the non-subpixel direction).
  1070. - Many small improvements to the internal arithmetic routines.
  1071. ======================================================================
  1072. CHANGES BETWEEN 2.5.2 and 2.5.3 (2014-Mar-06)
  1073. I. IMPORTANT BUG FIXES
  1074. - A vulnerability (CVE-2014-2240) was identified and fixed in the
  1075. new CFF driver (cf. https://savannah.nongnu.org/bugs/?41697).
  1076. All users should upgrade.
  1077. - More bug fixes related to correct positioning of composite
  1078. glyphs.
  1079. - Many fixes to better protect against malformed input.
  1080. II. IMPORTANT CHANGES
  1081. - FreeType can now use the HarfBuzz library to greatly improve the
  1082. auto-hinting of fonts that use OpenType features: Many glyphs
  1083. that are part of such features but don't have cmap entries are
  1084. now handled properly, for example small caps or superscripts.
  1085. Define the configuration macro FT_CONFIG_OPTION_USE_HARFBUZZ to
  1086. activate HarfBuzz support.
  1087. You need HarfBuzz version 0.9.19 or newer.
  1088. Note that HarfBuzz depends on FreeType; this currently causes a
  1089. chicken-and-egg problem that can be solved as follows in case
  1090. HarfBuzz is not yet installed on your system.
  1091. 1. Compile and install FreeType without the configuration
  1092. macro FT_CONFIG_OPTION_USE_HARFBUZZ.
  1093. 2. Compile and install HarfBuzz.
  1094. 3. Define macro FT_CONFIG_OPTION_USE_HARFBUZZ, then compile
  1095. and install FreeType again.
  1096. With FreeType's `configure' script the procedure boils down to
  1097. configure, build, and install FreeType, then configure, compile,
  1098. and install HarfBuzz, then configure, compile, and install
  1099. FreeType again (after executing `make distclean').
  1100. - All libraries FreeType depends on are now checked using the
  1101. `pkg-config' configuration files first, followed by alternative
  1102. methods.
  1103. - The new value `auto' for the various `--with-XXX' library
  1104. options (for example `--with-harfbuzz=auto') makes the
  1105. `configure' script automatically link to the libraries it finds.
  1106. This is now the default.
  1107. - In case FreeType's `configure' script can't find a library, you
  1108. can pass environment variables to circumvent pkg-config, and
  1109. those variables have been harmonized as a consequence of the
  1110. changes mentioned above:
  1111. LIBZ -> removed; use LIBZ_CFLAGS and LIBZ_LIBS
  1112. LIBBZ2 -> removed; use BZIP2_CFLAGS and BZIP2_LIBS
  1113. LIBPNG_LDFLAGS -> LIBPNG_LIBS
  1114. `./configure --help' shows all available environment variables.
  1115. - The `freetype-config' script now understands option `--static'
  1116. to emit static linking information.
  1117. ======================================================================
  1118. CHANGES BETWEEN 2.5.1 and 2.5.2 (2013-Dec-08)
  1119. I. IMPORTANT BUG FIXES
  1120. - Improving the display of some broken TrueType fonts introduced a
  1121. bug that made FreeType crash on some popular (but not fully
  1122. conformant) fonts like `ahronbd.ttf'.
  1123. - Another round of improvements to correct positioning and hinting
  1124. of composite glyphs in TrueType fonts.
  1125. II. MISCELLANEOUS
  1126. - Version 2.5.1 introduced a bug in handling embedded bitmap
  1127. strikes of TrueType fonts, causing garbage display under some
  1128. circumstances.
  1129. - The `ftgrid' demo program couldn't be compiled in
  1130. non-development builds.
  1131. ======================================================================
  1132. CHANGES BETWEEN 2.5 and 2.5.1 (2013-Nov-25)
  1133. I. IMPORTANT BUG FIXES
  1134. - For some WinFNT files, the last glyph wasn't displayed but
  1135. incorrectly marked as invalid.
  1136. - The vertical size of glyphs was incorrectly set after a call to
  1137. `FT_GlyphSlot_Embolden', resulting in clipped glyphs.
  1138. - Many fields of the `PCLT' table in SFNT based fonts (if accessed
  1139. with `FT_Get_Sfnt_Table') were computed incorrectly.
  1140. - In TrueType fonts, hinting of composite glyphs could sometimes
  1141. deliver incorrect positions of components or even distorted
  1142. shapes.
  1143. II. IMPORTANT CHANGES
  1144. - WOFF font format support has been added.
  1145. - The auto-hinter now supports Hebrew. Greek and Cyrillic support
  1146. has been improved.
  1147. - Support for the forthcoming `OS/2' SFNT table version 5, as can
  1148. be found e.g. in the `Sitka' font family for Windows 8.1.
  1149. - The header file layout has been changed. After installation,
  1150. all files are now located in `<prefix>/include/freetype2'.
  1151. Applications that use (a) `freetype-config' or FreeType's
  1152. `pkg-config' file to get the include directory for the compiler,
  1153. and (b) the documented way for header inclusion like
  1154. #include <ft2build.h>
  1155. #include FT_FREETYPE_H
  1156. ...
  1157. don't need any change to the source code.
  1158. III. MISCELLANEOUS
  1159. - The stem darkening feature of the new CFF engine can now be
  1160. fine-tuned with the new `darkening-parameters' property.
  1161. - `ftgrid' has been updated to toggle various engines with the `H'
  1162. key, similar to `ftview' and `ftdiff'.
  1163. - The functionality of `ttdebug' has been greatly enhanced.
  1164. . It now displays twilight, storage, and control value data; key
  1165. `T' shows the twilight point table, key `S' the storage data,
  1166. and key `C' the control value table.
  1167. . Some keys have been reassigned from lowercase to their
  1168. uppercase equivalents; for example `q' to quit the program is
  1169. now `Q'.
  1170. . Key `f' finishes the current function.
  1171. . Key `R' restarts the debugger.
  1172. . Keys `b' and `p' set a breakpoint.
  1173. . Key `B' provides a function call backtrace.
  1174. - Better support of ARMv7 and x86_64 processors.
  1175. - Apple's `sbix' color bitmap format is now supported.
  1176. - Improved auto-hinter rendering for many TrueType fonts,
  1177. especially in the range 20-40ppem.
  1178. - A new face flag `FT_FACE_FLAG_COLOR' has been added (to be
  1179. accessed with the macro `FT_HAS_COLOR').
  1180. - `FT_Gzip_Uncompress' (modeled after zlib's `uncompress'
  1181. function) has been added; this is a by-product of the newly
  1182. added WOFF support.
  1183. - Support for a build with `cmake' has been contributed by John
  1184. Cary <[email protected]>.
  1185. - Support for x64 builds with Visual C++ has been contributed by
  1186. Kenneth Miller <[email protected]>
  1187. - Manual pages for most demo programs have been added.
  1188. - The GETINFO bytecode instruction for TrueType fonts was buggy if
  1189. used to retrieve subpixel hinting information. It was necessary
  1190. to set selector bit 6 to get results for selector bits 7-10,
  1191. which is wrong.
  1192. - Improved computation of emulated vertical metrics for TrueType
  1193. fonts.
  1194. - Fixed horizontal start-up position of vertical phantom points in
  1195. TrueType bytecode.
  1196. ======================================================================
  1197. CHANGES BETWEEN 2.4.12 and 2.5 (2013-Jun-19)
  1198. I. IMPORTANT BUG FIXES
  1199. - The cache manager function `FTC_Manager_Reset' didn't flush the
  1200. cache.
  1201. II. IMPORTANT CHANGES
  1202. - Behdad Esfahbod (on behalf of Google) contributed support for
  1203. color embedded bitmaps (eg. color emoji).
  1204. A new load flag, FT_LOAD_COLOR, makes FreeType load color
  1205. embedded-bitmaps, following this draft specification
  1206. https://color-emoji.googlecode.com/git/specification/v1.html
  1207. which defines two new SFNT tables, `CBDT' and `CBLC' (named and
  1208. modeled after `EBDT' and `EBLC', respectively). The color
  1209. bitmaps are stored in the new FT_PIXEL_MODE_BGRA format to
  1210. represent BGRA pre-multiplied sRGB images. If PNG support is
  1211. available, PNG color images as defined in the same proposed
  1212. specification are supported also.
  1213. Note that color bitmaps are converted to grayscale if client
  1214. didn't ask for color.
  1215. - As announced in the previous release, the old FreeType CFF
  1216. engine is now disabled by default. It can be conditionally
  1217. compiled by defining the configuration macro
  1218. CFF_CONFIG_OPTION_OLD_ENGINE.
  1219. - As announced in the previous release, all code related to macro
  1220. FT_CONFIG_OPTION_OLD_INTERNALS has been removed, thus becoming
  1221. obsolete.
  1222. III. MISCELLANEOUS
  1223. - The property API (`FT_Property_Get' and `FT_Property_Set') is
  1224. now declared as stable.
  1225. The exception, however, are the experimental auto-hinter
  1226. properties `glyph-to-script-map' and `fallback-script' which are
  1227. subject to change in a forthcoming release.
  1228. - `ftview' has been updated to support color embedded bitmaps; it
  1229. can be toggled on and off with key `c'. The small cache toggle
  1230. is now key `K'.
  1231. - It is now possible to control the version of the TrueType
  1232. hinting engine using the new `interpreter-version' property of
  1233. the `truetype' module: Versions 35 and 38 (the default) are
  1234. supported, which roughly corresponds to disable and enable
  1235. subpixel hinting support, respectively.
  1236. In both `ftview' and `ftdiff', switching between the two
  1237. versions can be done with key `H'. In the `ftbench' demo
  1238. program, command line option `-H' has been extended to activate
  1239. the non-default interpreter version.
  1240. - The `ttdebug' program has been further improved. In particular,
  1241. it accepts a new command line option `-H' to select the hinting
  1242. engine.
  1243. - `ftdump's verbose option has been renamed to `-V'. For all demo
  1244. programs, `-v' now shows version information.
  1245. - Another round of TrueType subpixel hinting fixes.
  1246. - The `apinames' tool can now create an import file for NetWare.
  1247. - 64bit compilation of the new CFF engine was buggy.
  1248. - Some fixes to improve robustness in memory-tight situations.
  1249. ======================================================================
  1250. CHANGES BETWEEN 2.4.11 and 2.4.12 (2013-May-08)
  1251. - We have another CFF parsing and hinting engine! Written by Dave
  1252. Arnold <[email protected]>, this work has been contributed by
  1253. Adobe in collaboration with Google. It is vastly superior to
  1254. the old CFF engine, and it will replace it in the next release.
  1255. Right now, it is still off by default, and you have to
  1256. explicitly select it using the new `hinting-engine' property of
  1257. the cff driver:
  1258. ...
  1259. #include FT_MODULE_H
  1260. #include FT_CFF_DRIVER_H
  1261. FT_Library library;
  1262. int engine = FT_CFF_HINTING_ADOBE;
  1263. ...
  1264. FT_Property_Set( library, "cff", "hinting-engine", &engine );
  1265. The code has a (mature) beta status; we encourage all users to
  1266. test it and report any problems.
  1267. In case you want to activate the new CFF engine unconditionally,
  1268. apply this patch:
  1269. --- snip ---
  1270. diff --git a/src/cff/cffobjs.c b/src/cff/cffobjs.c
  1271. index ebcf189..3f2ce6b 100644
  1272. --- a/src/cff/cffobjs.c
  1273. +++ b/src/cff/cffobjs.c
  1274. @@ -1056,7 +1056,7 @@
  1275. /* set default property values */
  1276. - driver->hinting_engine = FT_CFF_HINTING_FREETYPE;
  1277. + driver->hinting_engine = FT_CFF_HINTING_ADOBE;
  1278. driver->no_stem_darkening = FALSE;
  1279. return FT_Err_Ok;
  1280. --- snip ---
  1281. - The macro FT_CONFIG_OPTION_OLD_INTERNALS is no longer set by
  1282. default. In the next release, we will completely remove the
  1283. associated code. Please update your programs in case you are
  1284. still using this macro.
  1285. II. MISCELLANEOUS
  1286. - The (top-level) `configure' script now respects the MAKE
  1287. environment variable to specify a `make' binary. For backward
  1288. compatibility, GNUMAKE still overrides MAKE, though.
  1289. - The `ftview' and `ftdiff' demo programs have been redesigned,
  1290. showing more options permanently on the screen, among other
  1291. minor improvements.
  1292. - Using the `H' key, it is now possible to select the CFF engine
  1293. in both `ftview' and `ftdiff'.
  1294. - The new command line option `-H' for `ftbench' selects the Adobe
  1295. CFF engine.
  1296. - It is now possible to directly select the LCD rendering mode
  1297. with the keys `A'-`F' in `ftview'. The key mapping for cycling
  1298. through LCD modes has been changed from `K' and `L' to `k' and
  1299. `l', and toggling custom LCD filtering is no longer mapped to
  1300. key `F' but to key `L'.
  1301. - In `ftdiff', key `x' toggles between layout modes: Either use
  1302. the advance width (this is new and now the default) or the
  1303. bounding box information to determine line breaks.
  1304. - For all demo tools, the new command line option `-v' shows the
  1305. version.
  1306. - For the demo tools with a GUI, the new command line options `-w'
  1307. and `-h' select the width and the height of the output window,
  1308. respectively.
  1309. - The `ttdebug' program was broken and has been reactivated. Note
  1310. that this program is not compiled by default.
  1311. ======================================================================
  1312. CHANGES BETWEEN 2.4.10 and 2.4.11 (2012-Dec-20)
  1313. I. IMPORTANT BUG FIXES
  1314. - Some vulnerabilities in the BDF implementation have been fixed.
  1315. Users of this font format should upgrade.
  1316. II. IMPORTANT CHANGES
  1317. - Subpixel hinting support has been contributed by Infinality,
  1318. based on Greg Hitchcock's whitepaper at
  1319. https://www.microsoft.com/typography/cleartype/truetypecleartype.aspx
  1320. Originally, it was a separate patch available from
  1321. https://web.archive.org/web/20150710073951/http://www.infinality.net:80/blog/
  1322. and which has been integrated.
  1323. Note that ClearType support is not completely implemented! In
  1324. particular, full support for the options `compatible_widths',
  1325. `symmetrical_smoothing, and `bgr' (via the GETINFO bytecode
  1326. instruction) is missing.
  1327. Activation of subpixel hinting support can be controlled with
  1328. the `TT_CONFIG_OPTION_SUBPIXEL_HINTING' configuration option; it
  1329. is switched off by default. This feature is still experimental;
  1330. we welcome test reports!
  1331. - Support for OpenType collections (OTC) has been added.
  1332. - Pure CFF fonts within an SFNT wrapper are now supported.
  1333. III. MISCELLANEOUS
  1334. - Minor rendering improvements to the auto-hinter.
  1335. - `FT_GlyphSlot_Oblique' now uses a shear angle of 12°.
  1336. - Experimental support to handle `property modules', for example
  1337. to control the behaviour of the auto-hinter. The API consists
  1338. of two new functions, `FT_Property_Set' and `FT_Property_Get'.
  1339. The code is still subject to change and should not be used for
  1340. production.
  1341. - The `ftdiff' demo program now supports UTF-8 encoded input files
  1342. for option `-f'.
  1343. - Using keys `r' and `R', you can now adjust the stroker radius in
  1344. the `ftview' demo program.
  1345. - Other, minor fixes and improvements.
  1346. ======================================================================
  1347. CHANGES BETWEEN 2.4.9 and 2.4.10 (2012-Jun-15)
  1348. I. IMPORTANT BUG FIXES
  1349. - Incremental glyph loading as needed by ghostscript was broken.
  1350. II. MISCELLANEOUS
  1351. - A new function `FT_Outline_EmboldenXY', contributed by Alexei
  1352. Podtelezhnikov.
  1353. - In the `ftview' demo program, key `e' has been replaced with `x'
  1354. and `y' to embolden in the horizontal and vertical direction,
  1355. respectively.
  1356. - The glyph spacing computation in `FT_GlyphSlot_Embolden' (and
  1357. similar code in `ftview') has been improved.
  1358. - Minor improvements to the TrueType bytecode interpreter and
  1359. glyph loader, the auto-hinter, and the B/W rasterizer.
  1360. ======================================================================
  1361. CHANGES BETWEEN 2.4.8 and 2.4.9 (2012-Mar-08)
  1362. I. IMPORTANT BUG FIXES
  1363. - Another round of fixes to better handle invalid fonts. Many of
  1364. them are vulnerabilities (see CVE-2012-1126 up to CVE-2012-1144
  1365. and SA48320) so all users should upgrade.
  1366. II. MISCELLANEOUS
  1367. - The `ENCODING -1 <n>' format of BDF fonts is now supported.
  1368. - For BDF fonts, support for the whole Unicode encoding range has
  1369. been added.
  1370. - Better TTF support for x_ppem != y_ppem.
  1371. - `FT_Get_Advances' sometimes returned bogus values.
  1372. - The demo programs no longer recognize and handle default
  1373. suffixes; you now have to always specify the complete font name.
  1374. - Better rendering and LCD mode cycling added to `ftview'.
  1375. ======================================================================
  1376. CHANGES BETWEEN 2.4.7 and 2.4.8 (2011-Nov-14)
  1377. I. IMPORTANT BUG FIXES
  1378. - Some vulnerabilities in handling CID-keyed PostScript fonts have
  1379. been fixed; see CVE-2011-3439.
  1380. II. MISCELLANEOUS
  1381. - Chris Liddell contributed a new API, `FT_Get_PS_Font_Value', to
  1382. retrieve most of the dictionary keys in Type 1 fonts.
  1383. ======================================================================
  1384. CHANGES BETWEEN 2.4.6 and 2.4.7 (2011-Oct-18)
  1385. I. IMPORTANT BUG FIXES
  1386. - Some vulnerabilities in handling Type 1 fonts have been fixed;
  1387. see CVE-2011-3256.
  1388. II. MISCELLANEOUS
  1389. - FreeType now properly handles ZapfDingbats glyph names while
  1390. constructing a Unicode character map (for fonts which don't have
  1391. one).
  1392. ======================================================================
  1393. CHANGES BETWEEN 2.4.5 and 2.4.6 (2011-Jul-29)
  1394. I. IMPORTANT BUG FIXES
  1395. - For TrueType based fonts, the ascender and descender values were
  1396. incorrect sometimes (off by a pixel if the ppem value was not a
  1397. multiple of 5). Depending on the use you might now experience
  1398. a different layout; the change should result in better, more
  1399. consistent line spacing.
  1400. - Fix CVE-2011-0226 which causes a vulnerability while handling
  1401. Type 1 fonts.
  1402. - BDF fonts containing glyphs with negative values for ENCODING
  1403. were incorrectly rejected. This bug has been introduced in
  1404. FreeType version 2.2.0.
  1405. - David Bevan contributed a major revision of the FreeType stroker
  1406. code:
  1407. . The behaviour of FT_STROKER_LINEJOIN_BEVEL has been corrected.
  1408. . A new line join style, FT_STROKER_LINEJOIN_MITER_FIXED, has
  1409. been introduced to support PostScript and PDF miter joins.
  1410. . FT_STROKER_LINEJOIN_MITER_VARIABLE has been introduced as an
  1411. alias for FT_STROKER_LINEJOIN_MITER.
  1412. . Various stroking glitches has been fixed.
  1413. II. MISCELLANEOUS
  1414. - SFNT bitmap fonts which contain an outline glyph for `.notdef'
  1415. only no longer set the FT_FACE_FLAG_SCALABLE flag.
  1416. ======================================================================
  1417. CHANGES BETWEEN 2.4.4 and 2.4.5 (2011-Jun-25)
  1418. I. IMPORTANT BUG FIXES
  1419. - A rendering regression for second-order Bézier curves has been
  1420. fixed, introduced in 2.4.3.
  1421. II. IMPORTANT CHANGES
  1422. - If autohinting is not explicitly disabled, FreeType now uses
  1423. the autohinter if a TrueType based font doesn't contain native
  1424. hints.
  1425. - The load flag FT_LOAD_IGNORE_GLOBAL_ADVANCE_WIDTH has been made
  1426. redundant and is simply ignored; this means that FreeType now
  1427. ignores the global advance width value in TrueType fonts.
  1428. III. MISCELLANEOUS
  1429. - `FT_Sfnt_Table_Info' can now return the number of SFNT tables of
  1430. a font.
  1431. - Support for PCF files compressed with bzip2 has been contributed
  1432. by Joel Klinghed. To make this work, the OS must provide a
  1433. bzip2 library.
  1434. - Bradley Grainger contributed project and solution files in
  1435. Visual Studio 2010 format.
  1436. - Again some fixes to better handle broken fonts.
  1437. - Some improvements to the B/W rasterizer.
  1438. - Fixes to the cache module to improve robustness.
  1439. - Just Fill Bugs contributed (experimental) code to compute blue
  1440. zones for CJK Ideographs, improving the alignment of horizontal
  1441. stems at the top or bottom edges.
  1442. - The `ftgrid' demo program can now display autohinter segments,
  1443. to be toggled on and off with key `s'.
  1444. ======================================================================
  1445. CHANGES BETWEEN 2.4.3 and 2.4.4 (2010-Nov-28)
  1446. I. IMPORTANT BUG FIXES
  1447. - UVS support (TrueType/OpenType cmap format 14) support is fixed.
  1448. This regression has been introduced in version 2.4.0.
  1449. II. MISCELLANEOUS
  1450. - Detect tricky fonts (e.g. MingLiU) by the lengths and checksums
  1451. of Type42-persistent subtables (`cvt ', `fpgm', and `prep') when
  1452. a TrueType font without family name is given. The previous fix,
  1453. introduced in 2.4.3, was too rigorous, causing many subsetted
  1454. fonts (mainly from PDF files) displayed badly because FreeType
  1455. forced rendering with the TrueType bytecode engine instead of
  1456. the autohinter.
  1457. - Better support for 64bit platforms.
  1458. - More fixes to improve handling of broken fonts.
  1459. ======================================================================
  1460. CHANGES BETWEEN 2.4.2 and 2.4.3 (2010-Oct-03)
  1461. I. IMPORTANT BUG FIXES
  1462. - Fix rendering of certain cubic, S-shaped arcs. This regression
  1463. has been introduced in version 2.4.0.
  1464. II. MISCELLANEOUS
  1465. - To fix the above mentioned rendering issue, a new spline
  1466. flattening algorithm has been introduced which speeds up both
  1467. conic and cubic arcs.
  1468. - Handling of broken fonts has been further improved.
  1469. ======================================================================
  1470. CHANGES BETWEEN 2.4.1 and 2.4.2 (2010-Aug-06)
  1471. I. IMPORTANT BUG FIXES
  1472. - A stack overflow in CFF Type2 CharStrings interpreter is fixed.
  1473. - Handling Type 42 font deallocation was broken; additionally, the
  1474. library is now more robust against malformed Type 42 fonts.
  1475. II. MISCELLANEOUS
  1476. - Two new functions, `FT_Reference_Library' (in FT_MODULE_H) and
  1477. `FT_Reference_Face' (in FT_FREETYPE_H), have been added to
  1478. simplify life-cycle management. A counter gets initialized to 1
  1479. at the time an FT_Library (or FT_Face) structure is created.
  1480. The two new functions increment the respective counter.
  1481. `FT_Done_Library' and `FT_Done_Face' then only destroy a library
  1482. or face if the counter is 1, otherwise they simply decrement the
  1483. counter.
  1484. ======================================================================
  1485. CHANGES BETWEEN 2.4.0 and 2.4.1 (2010-Jul-18)
  1486. I. IMPORTANT CHANGES
  1487. - A serious bug in the CFF font module prevented display of many
  1488. glyphs in CFF fonts like `MinionPro-Regular.otf'.
  1489. ======================================================================
  1490. CHANGES BETWEEN 2.3.12 and 2.4.0 (2010-Jul-12)
  1491. I. IMPORTANT CHANGES
  1492. - Since May 2010, all patents regarding the TrueType bytecode
  1493. interpreter have expired worldwide. Consequently, we now define
  1494. TT_CONFIG_OPTION_BYTECODE_INTERPRETER by default (and undefine
  1495. TT_CONFIG_OPTION_UNPATENTED_HINTING).
  1496. - A new function `FT_Library_SetLcdFilterWeights' is available to
  1497. adjust the filter weights set by `FT_Library_SetLcdFilter'.
  1498. II. MISCELLANEOUS
  1499. - Thanks to many reports from Robert Święcki, FreeType's stability
  1500. in handling broken or damaged fonts is much improved.
  1501. - Support for LCD filter control has been added to the demo
  1502. programs `ftdiff' and `ftview'.
  1503. ======================================================================
  1504. CHANGES BETWEEN 2.3.11 and 2.3.12
  1505. I. IMPORTANT CHANGES
  1506. - For `FT_Open_Face', new parameters are available to ignore
  1507. preferred family names: FT_PARAM_TAG_IGNORE_PREFERRED_FAMILY and
  1508. FT_PARAM_TAG_IGNORE_PREFERRED_SUBFAMILY.
  1509. II. MISCELLANEOUS
  1510. - Support for incremental font loading (controlled with the
  1511. FT_CONFIG_OPTION_INCREMENTAL macro) is now active by default.
  1512. - Better support for vertical metrics.
  1513. - Various minor bug fixes.
  1514. ======================================================================
  1515. CHANGES BETWEEN 2.3.10 and 2.3.11
  1516. I. IMPORTANT BUG FIXES
  1517. - Version 2.3.10 broke PCF support.
  1518. ======================================================================
  1519. CHANGES BETWEEN 2.3.10 and 2.3.9
  1520. I. IMPORTANT BUG FIXES
  1521. - If all ASCII digits in a font have the same (unscaled) width,
  1522. the autohinter respects this and won't change it.
  1523. - TrueType fonts are now rasterized correctly if the horizontal
  1524. and vertical resolution differ.
  1525. - Type 1 fonts are now handled with increased precision internally
  1526. to avoid serious rounding issues if non-integral coordinates are
  1527. encountered.
  1528. - Horizontally condensed CFF fonts (using the font matrix) were
  1529. rendered incorrectly. This bug has been introduced after
  1530. release 2.3.5.
  1531. II. IMPORTANT CHANGES
  1532. - Support for the SFNT cmap 13 table format (as defined by the new
  1533. OpenType 1.6 specification) has been added.
  1534. - B/W rasterization of well-hinted TrueType fonts at small sizes
  1535. has been greatly improved.
  1536. - Calculation of vertical metrics in OpenType fonts has been
  1537. improved.
  1538. III. MISCELLANEOUS
  1539. - It is now possible to change the emboldening factor in the
  1540. `ftview' demo program with keys `e' and `E'.
  1541. - It is now possible to change the slant value in the `ftview'
  1542. demo program with keys `s' and `S'.
  1543. - The 5-levels grayscale mode of the `ftraster' module (which
  1544. FreeType doesn't use by default) was broken since version 2.3.0.
  1545. - Compilation of the `ftgrays' and `ftraster' modules was broken
  1546. in stand-alone mode.
  1547. - Various fixes for compilation on 64bit and 16bit architectures.
  1548. ======================================================================
  1549. CHANGES BETWEEN 2.3.9 and 2.3.8
  1550. I. IMPORTANT BUG FIXES
  1551. - Very unfortunately, FreeType 2.3.8 contained a change that broke
  1552. its official ABI. The end result is that programs compiled
  1553. against previous versions of the library, but dynamically linked
  1554. to 2.3.8 can experience memory corruption if they call the
  1555. `FT_Get_PS_Font_Info' function.
  1556. We recommend all users to upgrade to 2.3.9 as soon as possible,
  1557. or to downgrade to a previous release of the library if this is
  1558. not an option.
  1559. The origin of the bug is that a new field was added to the
  1560. publicly defined `PS_FontInfoRec' structure. Unfortunately,
  1561. objects of this type can be stack or heap allocated by callers
  1562. of `FT_Get_PS_Font_Info', resulting in a memory buffer
  1563. overwrite with its implementation in 2.3.8.
  1564. If you want to know whether your code is vulnerable to this
  1565. issue, simply search for the substrings `PS_FontInfo' and
  1566. `PS_Font_Info' in your source code. If none is found, your code
  1567. is safe and is not affected.
  1568. The FreeType team apologizes for the problem.
  1569. - The POSIX support of MacOS resource-fork fonts (Suitcase fonts
  1570. and LaserWriter Type1 PostScript fonts) was broken in 2.3.8. If
  1571. FreeType2 is built without Carbon framework, these fonts are not
  1572. handled correctly. Version 2.3.7 didn't have this bug.
  1573. - `FT_Get_Advance' (and `FT_Get_Advances') returned bad values for
  1574. almost all font formats except TrueType fonts.
  1575. - Fix a bug in the SFNT kerning table loader/parser which could
  1576. crash the engine if certain malformed tables were encountered.
  1577. - Composite SFNT bitmaps are now handled correctly.
  1578. II. IMPORTANT CHANGES
  1579. - The new functions `FT_Get_CID_Is_Internally_CID_keyed' and
  1580. `FT_Get_CID_From_Glyph_Index' can be used to access CID-keyed
  1581. CFF fonts via CID values. This code has been contributed by
  1582. Michael Toftdal.
  1583. III. MISCELLANEOUS
  1584. - `FT_Outline_Get_InsideBorder' returns FT_STROKER_BORDER_RIGHT
  1585. for empty outlines. This was incorrectly documented.
  1586. - The `ftview' demo program now supports UTF-8 encoded strings.
  1587. ======================================================================
  1588. CHANGES BETWEEN 2.3.8 and 2.3.7
  1589. I. IMPORTANT BUG FIXES
  1590. - CID-keyed fonts in an SFNT wrapper were not handled correctly.
  1591. - The smooth renderer produced truncated images (on the right) for
  1592. outline parts with negative horizontal values. Most fonts don't
  1593. contain outlines left to the y coordinate axis, but the effect
  1594. was very noticeable for outlines processed with FT_Glyph_Stroke,
  1595. using thick strokes.
  1596. - `FT_Get_TrueType_Engine_Type' returned a wrong value if both
  1597. configuration macros TT_CONFIG_OPTION_BYTECODE_INTERPRETER and
  1598. TT_CONFIG_OPTION_UNPATENTED_HINTING were defined.
  1599. - The `face_index' field in the `FT_Face' structure wasn't
  1600. initialized properly after calling FT_Open_Face and friends with
  1601. a positive face index for CFFs, WinFNTs, and, most importantly,
  1602. for TrueType Collections (TTCs).
  1603. II. IMPORTANT CHANGES
  1604. - Rudimentary support for Type 1 fonts and CID-keyed Type 1 fonts
  1605. in an SFNT wrapper has been added -- such fonts are used on the
  1606. Mac. The core SFNT tables `TYP1' and `CID ' are passed to the
  1607. PS Type 1 and CID-keyed PS font drivers; other tables (`ALMX',
  1608. `BBOX', etc.) are not supported yet.
  1609. - A new interface to extract advance values of glyphs without
  1610. loading their outlines has been added. The functions are called
  1611. `FT_Get_Advance' and `FT_Get_Advances'; they are defined in file
  1612. `ftadvanc.h' (to be accessed as FT_ADVANCES_H).
  1613. - A new function `FT_Get_FSType_Flags' (in FT_FREETYPE_H) has been
  1614. contributed by David Bevan to access the embedding and
  1615. subsetting restriction information of fonts.
  1616. III. MISCELLANEOUS
  1617. - FT_MulFix is now an inlined function; by default, assembler code
  1618. is provided for x86 and ARM. See FT_CONFIG_OPTION_INLINE_MULFIX
  1619. and FT_CONFIG_OPTION_NO_ASSEMBLER (in ftoption.h) for more.
  1620. - The handling of `tricky' fonts (that is, fonts which don't work
  1621. with the autohinter, needing the font format's hinting engine)
  1622. has been generalized and changed slightly:
  1623. . A new face flag FT_FACE_FLAG_TRICKY indicates that the font
  1624. format's hinting engine is necessary for correct rendering.
  1625. The macro FT_IS_TRICKY can be used to check this flag.
  1626. . FT_LOAD_NO_HINTING is now ignored for tricky fonts. To really
  1627. force raw loading of such fonts (without hinting), both
  1628. FT_LOAD_NO_HINTING and FT_LOAD_NO_AUTOHINT must be used --
  1629. this is something which you probably never want to do.
  1630. . Tricky TrueType fonts always use the bytecode interpreter,
  1631. either the patented or unpatented version.
  1632. - The function `FT_GlyphSlot_Own_Bitmap' has been moved from
  1633. FT_SYNTHESIS_H to FT_BITMAP_H; it is now part of the `official'
  1634. API. (The functions in FT_SYNTHESIS_H are still subject to
  1635. change, however.)
  1636. - In the `ftdiff' demo program you can now toggle the use of
  1637. FT_LOAD_IGNORE_GLOBAL_ADVANCE_WIDTH with key `a'.
  1638. ======================================================================
  1639. CHANGES BETWEEN 2.3.7 and 2.3.6
  1640. I. IMPORTANT BUG FIXES
  1641. - If the library was compiled on an i386 platform using gcc, and
  1642. compiler option -O3 was given, `FT_MulFix' sometimes returned
  1643. incorrect results which could have caused problems with
  1644. `FT_Request_Metrics' and `FT_Select_Metrics', returning an
  1645. incorrect descender size.
  1646. - Pure CFFs without subfonts were scaled incorrectly if the font
  1647. matrix was non-standard. This bug has been introduced in
  1648. version 2.3.6.
  1649. - The `style_name' field in the `FT_FaceRec' structure often
  1650. contained a wrong value for Type 1 fonts. This misbehaviour
  1651. has been introduced in version 2.3.6 while trying to fix
  1652. another problem. [Note, however, that this value is
  1653. informative only since the used algorithm to extract it is
  1654. very simplistic.]
  1655. II. IMPORTANT CHANGES
  1656. - Two new macros, FT_OUTLINE_SMART_DROPOUTS and
  1657. FT_OUTLINE_EXCLUDE_STUBS, have been introduced. Together with
  1658. FT_OUTLINE_IGNORE_DROPOUTS (which was ignored previously) it is
  1659. now possible to control the dropout mode of the `raster' module
  1660. (for B&W rasterization), using the `flags' field in the
  1661. `FT_Outline' structure.
  1662. - The TrueType bytecode interpreter now passes the dropout mode to
  1663. the B&W rasterizer. This greatly increases the output for small
  1664. ppem values of many fonts like `pala.ttf'.
  1665. ======================================================================
  1666. CHANGES BETWEEN 2.3.6 and 2.3.5
  1667. I. IMPORTANT BUG FIXES
  1668. - A bunch of potential security problems have been found. All
  1669. users should update.
  1670. - Microsoft Unicode cmaps in TrueType fonts are now always
  1671. preferred over Apple cmaps. This is not a bug per se, but there
  1672. exist some buggy fonts created for MS which have broken Apple
  1673. cmaps. This affects only the automatic selection of FreeType;
  1674. it's always possible to manually select an Apple Unicode cmap if
  1675. desired.
  1676. - Many bug fixes to the TrueType bytecode interpreter.
  1677. - Improved Mac support.
  1678. - Subsetted CID-keyed CFFs are now supported correctly.
  1679. - CID-keyed CFFs with subfonts which are scaled in a non-standard
  1680. way are now handled correctly.
  1681. - A call to FT_Open_Face with `face_index' < 0 crashed FreeType if
  1682. the font was a Windows (bitmap) FNT/FON.
  1683. II. IMPORTANT CHANGES
  1684. - The new function `FT_Get_CID_Registry_Ordering_Supplement' gives
  1685. access to those fields in a CID-keyed font. The code has been
  1686. contributed by Derek Clegg.
  1687. - George Williams contributed code to validate the new `MATH'
  1688. OpenType table (within the `otvalid' module). The `ftvalid'
  1689. demo program has been extended accordingly.
  1690. - An API for cmap 14 support (for Unicode Variant Selectors, UVS)
  1691. has been contributed by George Williams.
  1692. - A new face flag FT_FACE_FLAG_CID_KEYED has been added, together
  1693. with a macro FT_IS_CID_KEYED which evaluates to 1 if the font is
  1694. CID-keyed.
  1695. III. MISCELLANEOUS
  1696. - Build support for symbian has been contributed.
  1697. - Better WGL4 glyph name support, contributed by Sergey Tolstov.
  1698. - Debugging output of the various FT_TRACEX macros is now sent to
  1699. stderr.
  1700. - The `ftview' demo program now provides artificial slanting too.
  1701. - The `ftvalid' demo program has a new option `-f' to select the
  1702. font index.
  1703. ======================================================================
  1704. CHANGES BETWEEN 2.3.5 and 2.3.4
  1705. I. IMPORTANT BUG FIXES
  1706. - Some subglyphs in TrueType fonts were handled incorrectly due to
  1707. a missing graphics state reinitialization.
  1708. - Large .Z files (as distributed with some X11 packages) weren't
  1709. handled correctly, making FreeType increase the heap stack in an
  1710. endless loop.
  1711. - A large number of bugs have been fixed to avoid crashes and
  1712. endless loops with invalid fonts.
  1713. II. IMPORTANT CHANGES
  1714. - The two new cache functions `FTC_ImageCache_LookupScaler' and
  1715. `FTC_SBit_Cache_LookupScaler' have been added to allow lookup of
  1716. glyphs using an `FTC_Scaler' object; this makes it possible to
  1717. use fractional pixel sizes in the cache. The demo programs have
  1718. been updated accordingly to use this feature.
  1719. - A new API `FT_Get_CMap_Format' has been added to get the cmap
  1720. format of a TrueType font. This is useful in handling PDF
  1721. files. The code has been contributed by Derek Clegg.
  1722. - The auto-hinter now produces better output by default for
  1723. non-Latin scripts like Indic. This was done by using the CJK
  1724. hinting module as the default instead of the Latin one. Thanks
  1725. to Rahul Bhalerao for this suggestion.
  1726. - A new API `FT_Face_CheckTrueTypePatents' has been added to find
  1727. out whether a given TrueType font uses patented bytecode
  1728. instructions. The `ft2demos' bundle contains a new program
  1729. called `ftpatchk' which demonstrates its usage.
  1730. - A new API `FT_Face_SetUnpatentedHinting' has been added to
  1731. enable or disable the unpatented hinter.
  1732. - Support for Windows FON files in PE format has been contributed
  1733. by Dmitry Timoshkov.
  1734. III. MISCELLANEOUS
  1735. - Vincent Richomme contributed Visual C++ project files for Pocket
  1736. PCs.
  1737. ======================================================================
  1738. CHANGES BETWEEN 2.3.4 and 2.3.3
  1739. I. IMPORTANT BUG FIXES
  1740. - A serious bug in the handling of bitmap fonts (and bitmap
  1741. strikes of outline fonts) has been introduced in 2.3.3.
  1742. ======================================================================
  1743. CHANGES BETWEEN 2.3.3 and 2.3.2
  1744. I. IMPORTANT BUG FIXES
  1745. - Remove a serious regression in the TrueType bytecode interpreter
  1746. that was introduced in version 2.3.2. Note that this does not
  1747. disable the improvements introduced to the interpreter in
  1748. version 2.3.2, only some ill cases that occurred with certain
  1749. fonts (though a few popular ones).
  1750. - The auto-hinter now ignores single-point contours for computing
  1751. blue zones. This bug created `wavy' baselines when rendering
  1752. text with various fonts that use these contours to model
  1753. mark-attach points (these are points that are never rasterized
  1754. and are placed outside of the glyph's real outline).
  1755. - The `rsb_delta' and `lsb_delta' glyph slot fields are now set to
  1756. zero for mono-spaced fonts. Otherwise code that uses them would
  1757. essentially ruin the fixed-advance property.
  1758. - Fix CVE-2007-1351 which can cause an integer overflow while
  1759. parsing BDF fonts, leading to a potentially exploitable heap
  1760. overflow condition.
  1761. II. MISCELLANEOUS
  1762. - Fixed compilation issues on some 64-bit platforms (see ChangeLog
  1763. for details).
  1764. - A new demo program `ftdiff' has been added to compare TrueType
  1765. hinting, FreeType's auto hinting, and rendering without hinting
  1766. in three columns.
  1767. ======================================================================
  1768. CHANGES BETWEEN 2.3.2 and 2.3.1
  1769. I. IMPORTANT BUG FIXES
  1770. - FreeType returned incorrect kerning information from TrueType
  1771. fonts when the bytecode interpreter was enabled. This happened
  1772. due to a typo introduced in version 2.3.0.
  1773. - Negative kerning values from PFM files are now reported
  1774. correctly (they were read as 16-bit unsigned values from the
  1775. file).
  1776. - Fixed a small memory leak when `FT_Init_FreeType' failed for
  1777. some reason.
  1778. - The Postscript hinter placed and sized very thin and ghost stems
  1779. incorrectly.
  1780. - The TrueType bytecode interpreter has been fixed to get rid of
  1781. most of the rare differences seen in comparison to the Windows
  1782. font loader.
  1783. II. IMPORTANT CHANGES
  1784. - The auto-hinter now better deals with serifs and corner cases
  1785. (e.g., glyph '9' in Arial at 9pt, 96dpi). It also improves
  1786. spacing adjustments and doesn't change widths for non-spacing
  1787. glyphs.
  1788. - Many Mac-specific functions are deprecated (but still
  1789. available); modern replacements have been provided for them.
  1790. See the documentation in file `ftmac.h'.
  1791. ======================================================================
  1792. CHANGES BETWEEN 2.3.1 and 2.3.0
  1793. I. IMPORTANT BUG FIXES
  1794. - The TrueType interpreter sometimes returned incorrect horizontal
  1795. metrics due to a bug in the handling of the SHZ instruction.
  1796. - A typo in a security check introduced after version 2.2.1
  1797. prevented FreeType to render some glyphs in CFF fonts.
  1798. ======================================================================
  1799. CHANGES BETWEEN 2.3.0 and 2.2.1
  1800. I. IMPORTANT BUG FIXES
  1801. - The PCF font loader is now much more robust while loading
  1802. malformed font files.
  1803. - Various memory leaks have been found and fixed.
  1804. - The TrueType name loader now deals properly with some fonts that
  1805. encode their names in UTF-16 (the specification was vague, and
  1806. the code incorrectly assumed UCS-4).
  1807. - Fixed the TrueType bytecode loader to deal properly with subtle
  1808. monochrome/gray issues when scaling the CVT. Some fonts
  1809. exhibited bad rendering artifacts otherwise.
  1810. - `FT_GlyphSlot_Embolden' now supports vertical layouts correctly
  1811. (it mangled the vertical advance height).
  1812. - Fixed byte endian issues of `ftmac.c' to support Mac OS X on
  1813. i386.
  1814. - The PFR font loader no longer erroneously tags font files
  1815. without any outlines as FT_FACE_FLAG_SCALABLE.
  1816. II. NEW API FUNCTIONS
  1817. - `FT_Library_SetLcdFilter' allows you to select a special filter
  1818. to be applied to the bitmaps generated by `FT_Render_Glyph' if
  1819. one of the FT_RENDER_MODE_LCD and FT_RENDER_MODE_LCD_V modes has
  1820. been selected. This filter is used to reduce color fringes;
  1821. several settings are available through the FT_LCD_FILTER_XXX
  1822. enumeration.
  1823. Its declaration and documentation can be found in file
  1824. `include/freetype/ftlcdfil.h' (to be accessed with macro
  1825. FT_LCD_FILTER_H).
  1826. *IMPORTANT*: This function returns an error
  1827. (FT_Err_Unimplemented_Feature) in default builds of the library
  1828. for patent reasons. See below.
  1829. - `FT_Get_Gasp' allows you to query the flags of the TrueType
  1830. `gasp' table for a given character pixel size. This is useful
  1831. to duplicate the text rendering of MS Windows when the native
  1832. bytecode interpreter is enabled (which isn't the default for
  1833. other patent reasons).
  1834. Its declaration and documentation can be found in file
  1835. `include/freetype/ftgasp.h' (to be accessed with macro
  1836. FT_GASP_H).
  1837. III. IMPORTANT CHANGES
  1838. - The auto-hinter has been tuned a lot to improve its results with
  1839. serif fonts, resulting in much better font rendering of many web
  1840. pages.
  1841. - The unpatented hinter is now part of the default build of the
  1842. library; we have added code to automatically support `tricky'
  1843. fonts that need it.
  1844. This means that FreeType should `just work' with certain Asian
  1845. fonts, like MingLiU, which cannot properly be loaded without a
  1846. bytecode interpreter, but which fortunately do not use any of
  1847. the patented bytecode opcodes. We detect these fonts by name,
  1848. so please report any font file that doesn't seem to work with
  1849. FreeType, and we shall do what we can to support it in a next
  1850. release.
  1851. Note that the API hasn't changed, so you can still force
  1852. unpatented hinting with a special parameter to `FT_Open_Face' as
  1853. well. This might be useful in same cases; for example, a PDF
  1854. reader might present a user option to activate it to deal with
  1855. certain `tricky' embedded fonts which cannot be clearly
  1856. identified.
  1857. If you are a developer for embedded systems, you might want to
  1858. *disable* the feature to save code space by undefining
  1859. TT_CONFIG_OPTION_UNPATENTED_HINTING in file `ftoption.h'.
  1860. - LCD-optimized rendering is now *disabled* in all default builds
  1861. of the library, mainly due to patent issues. For more
  1862. information see:
  1863. https://lists.gnu.org/archive/html/freetype/2006-09/msg00064.html
  1864. A new configuration macro FT_CONFIG_OPTION_SUBPIXEL_RENDERING
  1865. has been introduced in `ftoption.h'; manually define it in this
  1866. file if you want to re-enable the feature.
  1867. The change only affects the implementation, not the FreeType
  1868. API. This means that clients don't need to be modified, because
  1869. the library still generates LCD decimated bitmaps, but with the
  1870. added constraint that R=G=B on each triplet.
  1871. The displayed result should be equal to normal anti-aliased
  1872. rendering.
  1873. Additionally, if FT_CONFIG_OPTION_SUBPIXEL_RENDERING is not
  1874. defined, the new `FT_Library_SetLcdFilter' function returns the
  1875. FT_Err_Unimplemented_Feature error code.
  1876. - Some computation bugs in the TrueType bytecode interpreter were
  1877. found, which allow us to get rid of very subtle and rare
  1878. differences we had experienced with the Windows renderer.
  1879. - It is now possible to cross-compile the library easily. See the
  1880. file `docs/INSTALL.CROSS' for details.
  1881. - The file `src/base/ftmac.c' now contains code for Mac OS X only;
  1882. its deprecated function `FT_GetFile_From_Mac_Font_Name' always
  1883. returns an error even if the QuickDraw framework is available.
  1884. The previous version has been moved to `builds/mac/ftmac.c'.
  1885. Selecting configure option `--with-quickdraw-carbon' makes the
  1886. build process use the original `ftmac.c' file instead of the Mac
  1887. OS X-only version.
  1888. IV. MISCELLANEOUS
  1889. - Various performance and memory footprint optimizations have been
  1890. performed on the TrueType and CFF font loaders, sometimes with
  1891. very drastic benefits (e.g., the TrueType loader is now about
  1892. 25% faster; FreeType should use less heap memory under nearly
  1893. all conditions).
  1894. - The anti-aliased rasterizer has been optimized and is now 15% to
  1895. 25% percent faster than in previous versions, depending on
  1896. content.
  1897. - The Type 1 loader has been improved; as an example, it now skips
  1898. top-level dictionaries properly.
  1899. - Better support for Mac fonts on POSIX systems, plus compilation
  1900. fixes for Mac OS X on ppc64 where `ftmac.c' cannot be built.
  1901. - Configuration without `--with-old-mac-fonts' does not include
  1902. `ftmac.c' (this was the behaviour in FreeType version 2.1.10).
  1903. - The TrueTypeGX validator (gxvalid) checks the order of glyph IDs
  1904. in the kern table.
  1905. ======================================================================
  1906. CHANGES BETWEEN 2.2.1 and 2.2
  1907. I. IMPORTANT BUG FIXES
  1908. - Various integer overflows have been fixed.
  1909. - PFB fonts with MacOS resource fork weren't handled correctly on
  1910. non-MacOS platforms.
  1911. ======================================================================
  1912. CHANGES BETWEEN 2.2 and 2.1.10
  1913. (not released officially)
  1914. I. IMPORTANT BUG FIXES
  1915. - Vertical metrics for SFNT fonts were incorrect sometimes.
  1916. - The FT_HAS_KERNING macro always returned 0.
  1917. - CFF OpenType fonts didn't return correct vertical metrics for
  1918. glyphs with outlines.
  1919. - If FreeType was compiled without hinters, all font formats based
  1920. on PS outlines weren't scaled correctly.
  1921. II. IMPORTANT CHANGES
  1922. - Version 2.2 no longer exposes its internals, that is, the header
  1923. files located in the `include/freetype/internal' directory of
  1924. the source package are not copied anymore by the `make install'
  1925. command. Consequently, a number of rogue clients which directly
  1926. access FreeType's internal functions and structures won't
  1927. compile without modification.
  1928. We provide patches for most of those rogue clients. See the
  1929. following page for more information:
  1930. https://www.freetype.org/freetype2/patches/rogue-patches.html
  1931. Note that, as a convenience to our Unix desktop users, version
  1932. 2.2 is *binary* compatible with FreeType 2.1.7, which means that
  1933. installing this release on an existing distribution shall not
  1934. break any working desktop.
  1935. - FreeType's build mechanism has been redesigned. With GNU make
  1936. it is now sufficient in most cases to edit two files:
  1937. `modules.cfg', to select the library components, and the
  1938. configuration file `include/freetype/config/ftoption.h' (which
  1939. can be copied to the objects directory). Removing unused module
  1940. directories to prevent its compilation and editing
  1941. `include/freetype/config/ftmodule.h' is no longer necessary.
  1942. - The LIGHT hinting algorithm produces more pleasant results.
  1943. Also, using the FT_LOAD_TARGET_LIGHT flags within FT_Load_Glyph
  1944. always forces auto-hinting, as a special exception. This allows
  1945. you to experiment with it even if you have enabled the TrueType
  1946. bytecode interpreter in your build.
  1947. - The auto hinter now employs a new algorithm for CJK fonts, based
  1948. on Akito Hirai's patch. Note that this only works for fonts
  1949. with a Unicode charmap at the moment.
  1950. - The following callback function types have changed slightly (by
  1951. adding the `const' keyword where appropriate):
  1952. FT_Outline_MoveToFunc
  1953. FT_Outline_LineToFunc
  1954. FT_Outline_ConicToFunc
  1955. FT_Outline_CubicToFunc
  1956. FT_SpanFunc
  1957. FT_Raster_RenderFunc
  1958. FT_Glyph_TransformFunc
  1959. FT_Renderer_RenderFunc
  1960. FT_Renderer_TransformFunc
  1961. Note that this doesn't affect binary backward compatibility.
  1962. - On MacOS, new APIs have been added as replacements for legacy
  1963. APIs: `FT_New_Face_From_FSRef' for `FT_New_Face_From_FSSpec',
  1964. and `FT_GetFile_From_Mac_ATS_Name' for
  1965. `FT_GetFile_From_Mac_Name'. Legacy APIs are still available, if
  1966. FreeType is built without disabling them.
  1967. - A new API `FT_Select_Size' has been added to select a bitmap
  1968. strike by its index. Code using other functions to select
  1969. bitmap strikes should be updated to use this function.
  1970. - A new API `FT_Get_SubGlyph_Info' has been added to retrieve
  1971. subglyph data. This can be used by rogue clients which used to
  1972. access the internal headers to get the corresponding data.
  1973. - In 2.1.10, the behaviour of `FT_Set_Pixel_Sizes' was changed for
  1974. BDF/PCF fonts, and only for them. This causes inconsistency.
  1975. In this release, we undo the change. The intent of the change
  1976. in 2.1.10 is to allow size selection through real dimensions,
  1977. which can now be done through `FT_Request_Size'.
  1978. - Some security issues were discovered and fixed in the CFF and
  1979. Type 1 loader, causing crashes of FreeType by malformed font
  1980. files.
  1981. III. MISCELLANEOUS
  1982. - The documentation for FT_LOAD_TARGET_XXX and FT_RENDER_MODE_XXX
  1983. values now better reflects its usage and differences: One set is
  1984. used to specify the hinting algorithm, the other to specify the
  1985. pixel rendering mode.
  1986. - `FT_New_Face' and `FT_New_Face_From_FSSpec' in ftmac.c have been
  1987. changed to count supported scalable faces (sfnt, LWFN) only, and
  1988. to return the number of available faces via face->num_faces.
  1989. Unsupported bitmap faces (fbit, NFNT) are ignored.
  1990. - builds/unix/configure has been improved for MacOS X. It now
  1991. automatically checks available functions in Carbon library, and
  1992. prepare to use newest functions by default. Options to specify
  1993. the dependencies of each Carbon APIs (FSSpec, FSRef, old/new
  1994. QuickDraw, ATS) are available too. By manual disabling of all
  1995. QuickDraw functionality, FreeType can be built without
  1996. `deprecated function' warnings on MacOS 10.4.x, but
  1997. FT_GetFile_Mac_Name in ftmac.c then is changed to a dummy
  1998. function, and returns an `unimplemented' error. For details see
  1999. builds/mac/README.
  2000. - SFNT cmap handling has been improved, mainly to run much faster
  2001. with CJK fonts.
  2002. - A new function `FT_Get_TrueType_Engine_Type (declared in
  2003. `FT_MODULE_H') is provided to determine the status of the
  2004. TrueType bytecode interpreter compiled into the library
  2005. (patented, unpatented, unimplemented).
  2006. - Vertical metrics of glyphs are synthesized if the font does not
  2007. provide such information. You can tell whether the metrics are
  2008. synthesized or not by checking the FT_FACE_FLAG_VERTICAL flag of
  2009. the face.
  2010. - The demo programs `ftview' and `ftstring' have been rewritten
  2011. for better readability. `ftview' has a new switch `-p' to test
  2012. FT_New_Memory_Face (instead of FT_New_Face).
  2013. - FreeType now honours bit 1 in the `head' table of TrueType fonts
  2014. (meaning `left sidebearing point at x=0'). This helps with some
  2015. buggy fonts.
  2016. - Rudimentary support for Adobe's new `SING Glyphlet' format. See
  2017. https://www.adobe.com/content/dam/acom/en/devnet/font/pdfs/5148.SING_Tutorial.pdf
  2018. for more information.
  2019. - The `ftdump' program from the `ft2demos' bundle now shows some
  2020. information about charmaps. It also supports a new switch `-v'
  2021. to increase verbosity.
  2022. - Better AFM support. This includes track kerning support.
  2023. ======================================================================
  2024. CHANGES BETWEEN 2.1.10 and 2.1.9
  2025. I. IMPORTANT BUG FIXES
  2026. - The size comparison for BDF and PCF files could fail sometimes.
  2027. - Some CFF files were still not loaded correctly. Patch from
  2028. Derek Noonburg.
  2029. - The stroker still had some serious bugs.
  2030. - Boris Letocha fixed a bug in the TrueType interpreter: The
  2031. NPUSHW instruction wasn't skipped correctly in IF clauses. Some
  2032. fonts like `Helvetica 75 Bold' failed.
  2033. - Another serious bug in handling TrueType hints caused many
  2034. distortions. It has been introduced in version 2.1.8, and it is
  2035. highly recommended to upgrade.
  2036. - FreeType didn't properly parse empty Type 1 glyphs.
  2037. - An unbound dynamic buffer growth was fixed in the PFR loader.
  2038. - Several bugs have been fixed in the cache sub-system.
  2039. - FreeType behaved incorrectly when resizing two distinct but very
  2040. close character pixel sizes through `FT_Set_Char_Size' (Savannah
  2041. bug #12263).
  2042. - The auto-hinter didn't work properly for fonts without a Unicode
  2043. charmap -- it even refused to load the glyphs.
  2044. II. IMPORTANT CHANGES
  2045. - Many fixes have been applied to drastically reduce the amount of
  2046. heap memory used by FreeType, especially when using
  2047. memory-mapped font files (which is the default on Unix systems
  2048. which support them).
  2049. - The auto-hinter has been replaced with a new module, called the
  2050. `auto-fitter'. It consumes less memory than its predecessor,
  2051. and it is prepared to support non-latin scripts better in next
  2052. releases.
  2053. - George Williams contributed code to read kerning data from PFM
  2054. files.
  2055. - FreeType now uses the TT_NAME_ID_PREFERRED_FAMILY and
  2056. TT_NAME_ID_PREFERRED_SUBFAMILY strings (if available) for
  2057. setting family and style in SFNT fonts (patch from Kornfeld
  2058. Eliyahu Peter).
  2059. - A new API `FT_Sfnt_Table_Info' (in FT_TRUETYPE_TABLES_H) has
  2060. been added to retrieve name and size information of SFNT tables.
  2061. - A new API `FT_OpenType_Validate' (in FT_OPENTYPE_VALIDATE_H) has
  2062. been added to validate OpenType tables (BASE, GDEF, GPOS, GSUB,
  2063. JSTF). After validation it is no longer necessary to check
  2064. for errors in those tables while accessing them.
  2065. Note that this module might be moved to another library in the
  2066. future to avoid a tight dependency between FreeType and the
  2067. OpenType specification.
  2068. - A new API in FT_BITMAP_H (`FT_Bitmap_New', `FT_Bitmap_Convert',
  2069. `FT_Bitmap_Copy', `FT_Bitmap_Embolden', `FT_Bitmap_Done') has
  2070. been added. Its use is to convert an FT_Bitmap structure in
  2071. 1bpp, 2bpp, 4bpp, or 8bpp format into another 8bpp FT_Bitmap,
  2072. probably using a different pitch, and to further manipulate it.
  2073. - A new API `FT_Outline_Embolden' (in FT_OUTLINE_H) gives finer
  2074. control how outlines are emboldened.
  2075. - `FT_GlyphSlot_Embolden' (in FT_SYNTHESIS_H) now handles bitmaps
  2076. also (code contributed by Chia I Wu). Note that this function
  2077. is still experimental and may be replaced with a better API.
  2078. - The method how BDF and PCF bitmap fonts are accessed has been
  2079. refined. Formerly, FT_Set_Pixel_Sizes and FT_Set_Char_Size
  2080. were synonyms in FreeType's BDF and PCF interface. This has
  2081. changed now. FT_Set_Pixel_Sizes should be used to select the
  2082. actual font dimensions (the `strike', which is the sum of the
  2083. `FONT_ASCENT' and `FONT_DESCENT' properties), while
  2084. FT_Set_Char_Size selects the `nominal' size (the `PIXELSIZE'
  2085. property). In both functions, the width parameter is ignored.
  2086. III. MISCELLANEOUS
  2087. - The BDF driver no longer converts all returned bitmaps with a
  2088. depth of 2bpp or 4bpp to a depth of 8bpp. The documentation has
  2089. not mentioned this explicitly, but implementors might have
  2090. relied on this after looking into the source files.
  2091. - A new option `--ftversion' has been added to freetype-config to
  2092. return the FreeType version.
  2093. - The memory debugger has been updated to dump allocation
  2094. statistics on all allocation sources in the library. This is
  2095. useful to spot greedy allocations when loading and processing
  2096. fonts.
  2097. - We removed a huge array of constant pointers to constant strings
  2098. in the `psnames' module. The problem was that compilations in
  2099. PIC mode (i.e., when generating a Unix shared object/dll) put
  2100. the array into the non-shared writable section of the library
  2101. since absolute pointers are not relocatable by nature.
  2102. This reduces the memory consumption by approximately 16KByte per
  2103. process linked to FreeType. We now also store the array in a
  2104. compressed form (as a trie) which saves about 20KByte of code as
  2105. well.
  2106. - Kirill Smelkov provided patches to make src/raster/ftraster.c
  2107. compile stand-alone again.
  2108. ======================================================================
  2109. CHANGES BETWEEN 2.1.9 and 2.1.8
  2110. I. IMPORTANT BUG FIXES
  2111. - The function `FT_Get_CharMap_Index' was only declared, without
  2112. any real code. For consistency, it has been renamed to
  2113. `FT_Get_Charmap_Index'. (This function is needed to implement
  2114. cmap caches.)
  2115. - `FT_Outline_Get_BBox' sometimes returned incorrect values for
  2116. conic outlines (e.g., for TrueType fonts).
  2117. - Handling of `bhed' table has been fixed.
  2118. - The TrueType driver with enabled byte code interpreter sometimes
  2119. returned artifacts due to incorrect rounding. This bug has been
  2120. introduced after version 2.1.4.
  2121. - The BDF driver dropped the last glyph in the font.
  2122. - The BDF driver now uses the DEFAULT_CHAR property (if available)
  2123. to select a glyph shape for the undefined glyph.
  2124. - The stroker failed for closed outlines and single points.
  2125. II. IMPORTANT CHANGES
  2126. - George Williams contributed code to handle Apple's font
  2127. distortion technology found in GX fonts (`avar', `cvar', `fvar',
  2128. and `gvar' tables; the Multiple Masters API has been slightly
  2129. extended to cope with the new functionality).
  2130. - The `FT_GlyphSlotRec' structure has been extended: The elements
  2131. `lsb_delta' and `rsb_delta' give the difference between hinted
  2132. and unhinted left and right side bearings if autohinting is
  2133. active. Using those values can improve the inter-letter spacing
  2134. considerably. See the documentation of `FT_GlyphSlotRec' and
  2135. the `ftstring' demo program how to use it.
  2136. - Loading TrueType and Type 1 fonts has been made much faster.
  2137. - The stroker is no longer experimental (but the cache subsystem
  2138. still is).
  2139. III. MISCELLANEOUS
  2140. - A new documentation file `formats.txt' describes various font
  2141. formats supported (and not supported) by FreeType.
  2142. ======================================================================
  2143. CHANGES BETWEEN 2.1.8 and 2.1.7
  2144. I. IMPORTANT BUG FIXES
  2145. - The native TrueType hinter contained some bugs which prevented
  2146. some fonts to be rendered correctly, most notably Legendum.otf.
  2147. - The PostScript hinter now produces improved results.
  2148. - The linear advance width and height values were incorrectly
  2149. rounded, making them virtually unusable if not loaded with
  2150. FT_LOAD_LINEAR_DESIGN.
  2151. - Indexing CID-keyed CFF fonts is now working: The glyph index is
  2152. correctly treated as a CID, similar to FreeType's CID driver
  2153. module. Note that CID CMap support is still missing.
  2154. - The FT_FACE_FLAG_GLYPH_NAMES flag is now set correctly for all
  2155. font formats.
  2156. - Some subsetted Type 1 fonts weren't parsed correctly. This bug
  2157. has been introduced in 2.1.7. In summary, the Type 1 parser has
  2158. become more robust.
  2159. - Non-decimal numbers weren't parsed correctly in PS fonts.
  2160. - The WinFNT driver now correctly reports FT_ENCODING_NONE for all
  2161. but one encoding. Use the new FT_WinFNT_ID_XXX values together
  2162. with `FT_Get_WinFNT_Header' to get the WinFNT charset ID.
  2163. - The descender metrics (face->size->metrics.descender) for WinFNT
  2164. bitmap fonts had the wrong sign.
  2165. - The (emulated) `seac' support for CFF fonts was broken.
  2166. - The `flex' operator didn't work for CFF fonts.
  2167. - PS glyphs which use the `hintmask' operator haven't been
  2168. rendered correctly in some cases.
  2169. - Metrics for BDF and PCF bitmap font formats have been fixed.
  2170. - Autohinting is now disabled for glyphs which are vertically
  2171. distorted or mirrored (using a transformation matrix). This
  2172. fixes a bug which produced zero-height glyphs.
  2173. - The `freetype-config' script now handles --prefix and
  2174. --exec-prefix correctly; it also returns the proper --rpath (or
  2175. -R) value if FreeType has been built as a shared library.
  2176. II. IMPORTANT CHANGES
  2177. - Both PCF and BDF drivers now handle the SETWIDTH_NAME and
  2178. ADD_STYLE_NAME properties. Values are appended to
  2179. face->style_name; example: `Bold SemiCondensed'.
  2180. - The PCF driver now handles bitmap fonts compressed with the LZW
  2181. algorithm (extension .pcf.Z, compressed with `compress').
  2182. - A new API function `FT_Get_CMap_Language_ID' (declared in
  2183. `tttables.h') is available to get the language ID of a
  2184. TrueType/SFNT cmap.
  2185. - The hexadecimal format of data after the `StartData' command in
  2186. CID-keyed Type 1 fonts is now supported. While this can't occur
  2187. in file-based fonts, it can happen in document-embedded
  2188. resources of PostScript documents.
  2189. - Embedded bitmaps in SFNT-based CFF fonts are now supported.
  2190. - A simple API is now available to control FreeType's tracing
  2191. mechanism if compiled with FT_DEBUG_LEVEL_TRACE. See the file
  2192. `ftdebug.h' for more details.
  2193. - YAMATO Masatake contributed improved handling of MacOS resource
  2194. forks on non-MacOS platforms (for example, Linux can mount MacOS
  2195. file systems).
  2196. - Support for MacOS has been improved; there is now a new function
  2197. `FT_New_Face_From_FSSpec' similar to `FT_New_Face' except that
  2198. it accepts an FSSpec instead of a path.
  2199. - The cache sub-system has been rewritten.
  2200. - There is now support for deinstallation of faces.
  2201. - A new API function `FTC_Manager_RemoveFaceID' has been added
  2202. to delete all `idle' nodes that correspond to a given
  2203. FTC_FaceID. All `locked' nodes (i.e., those with a reference
  2204. count > 0), will be modified to prevent them from appearing in
  2205. further lookups (they will be cleaned normally when their
  2206. reference count reaches 0).
  2207. - There is now support for point scaling (i.e., providing
  2208. character sizes in points + dpis, instead of pixels).
  2209. - Three abstract cache classes are now available:
  2210. FTC_GCache: Used to store one glyph item per cache node,
  2211. with the ability to group common attributes into
  2212. `families'. This replaces the old
  2213. FTC_GlyphCache class.
  2214. FTC_ICache: Used to store one FT_Glyph per cache node. This
  2215. extends FTC_GCache. Family definition, family
  2216. comparison, and glyph loading are however left
  2217. to sub-classes.
  2218. FTC_SCache: Used to store up to 16 small bitmaps per cache
  2219. node. This extends FTC_GCache. Family
  2220. definition, family comparison and glyph loading
  2221. are however left to sub-classes.
  2222. - The file `src/cache/ftcbasic.c' implements:
  2223. FTC_ImageCache: Extends FTC_ICache; implements family
  2224. definitions and glyph loading similar to the
  2225. old API.
  2226. FTC_SBitCache: Extends FTC_SCache, implements family
  2227. definitions and glyph loading similar to the
  2228. old API
  2229. Client applications should be able to extend FTC_GCache,
  2230. FTC_ICache, or FTC_SCache much more easily (i.e., less code to
  2231. write, and less callbacks). For example, one could envision
  2232. caches that are capable of storing transformed (obliqued),
  2233. stroked, emboldened, or colored glyph images. Use
  2234. `ftcbasic.c' as an example.
  2235. - All public APIs are now in `include/freetype/ftcache.h', (to
  2236. be accessed as `FT_CACHE_H'). The contents of
  2237. `include/freetype/cache/' is only needed by applications that
  2238. wish to implement their own caches.
  2239. - There were some major performance improvements through the use
  2240. of various programming tricks. Cache hits are up to 70%
  2241. faster than in the old code.
  2242. - The FTC_CMapCache has been simplified. Charmaps can only be
  2243. accessed by index right now. There is also a new API named
  2244. `FT_Charmap_GetIndex' for this purpose.
  2245. - The demo programs have been updated to the new code. The
  2246. previous versions will not work with the current one.
  2247. - Using an invalid face index in FT_Open_Face and friends now
  2248. causes an error even if the font contains a single face only.
  2249. III. MISCELLANEOUS
  2250. - Wolfgang Domröse contributed support files for building FreeType
  2251. on the Atari using the PureC compiler. Note that the Atari is a
  2252. 16bit platform.
  2253. - Vitaliy Pasternak contributed project files for VS.NET 2003.
  2254. ======================================================================
  2255. CHANGES BETWEEN 2.1.7 and 2.1.6
  2256. I. IMPORTANT BUG FIXES
  2257. - Updated to newest libtool version, fixing build problems on
  2258. various platforms.
  2259. - On Unix platforms, `make install' didn't copy the correct
  2260. `ftconfig.h' file.
  2261. Note that version 2.1.7 contains the same library C source code as
  2262. version 2.1.6.
  2263. ======================================================================
  2264. CHANGES BETWEEN 2.1.6 and 2.1.5
  2265. I. IMPORTANT BUG FIXES
  2266. - The PFR font driver didn't load kerning tables correctly, and
  2267. the functions in FT_PFR_H didn't work at all.
  2268. - Type 1 font files in binary format (PFB) with an end-of-file
  2269. indicator weren't accepted by the FreeType engine.
  2270. - Fonts which contain /PaintType and /StrokeWidth no longer cause
  2271. a segfault. This bug has been introduced in version 2.1.5.
  2272. - Fonts loaded with FT_LOAD_RENDER no longer cause strange
  2273. results. This bug has been introduced in version 2.1.5.
  2274. - Some Windows (bitmap) FNT/FON files couldn't be handled
  2275. correctly.
  2276. II. IMPORTANT CHANGES
  2277. - The internal module API has been heavily changed in favor of
  2278. massive simplifications within the font engine. This also means
  2279. that authors of third-party modules must adapt their code to the
  2280. new scheme.
  2281. NOTE: THE NEW SCHEME IS NOT COMPLETED YET. PLEASE WAIT UNTIL A
  2282. FINAL ANNOUNCEMENT!
  2283. - The PostScript parser has been enhanced to handle comments and
  2284. strings correctly. Additionally, more syntax forms are
  2285. recognized.
  2286. - Added the optional unpatented hinting system for TrueType. It
  2287. allows typefaces which need hinting to produce correct glyph
  2288. forms (e.g., Chinese typefaces from Dynalab) to work acceptably
  2289. without infringing Apple patents. This system is compiled only
  2290. if TT_CONFIG_OPTION_COMPILE_UNPATENTED_HINTING is defined in
  2291. ftoption.h (activated by default).
  2292. III. MISCELLANEOUS
  2293. - There is now a guard in the public header files to protect
  2294. against inclusion of freetype.h from FreeType 1.
  2295. - Direct inclusion of freetype.h and other public header files no
  2296. longer works. You have to use the documented scheme
  2297. #include <ft2build.h>
  2298. #include FT_FREETYPE_H
  2299. to load freetype.h with a symbolic name. This protects against
  2300. renaming of public header files (which shouldn't happen but
  2301. actually has, avoiding two public header files with the same
  2302. name).
  2303. ======================================================================
  2304. CHANGES BETWEEN 2.1.5 and 2.1.4
  2305. I. IMPORTANT BUG FIXES
  2306. - Parsing the /CIDFontName field now removes the leading slash to
  2307. be in sync with other font drivers.
  2308. - gzip support was buggy. Some fonts could not be read.
  2309. - Fonts which have nested subglyphs more than one level deep no
  2310. longer cause a segfault.
  2311. - Creation of synthetic cmaps for fonts in CFF format was broken
  2312. partially.
  2313. - Numeric font dictionary entries for synthetic fonts are no
  2314. longer overwritten.
  2315. - The font matrix wasn't applied to the advance width for Type1,
  2316. CID, and CFF fonts. This caused problems when loading certain
  2317. synthetic Type 1 fonts like `Helvetica Narrow'.
  2318. - The test for the charset registry in BDF and PCF fonts is now
  2319. case-insensitive.
  2320. - FT_Vector_Rotate sometimes returned strange values due to
  2321. rounding errors.
  2322. - The PCF driver now returns the correct number of glyphs
  2323. (including an artificial `notdef' glyph at index 0).
  2324. - FreeType now supports buggy CMaps which are contained in many
  2325. CJK fonts from Dynalab.
  2326. - Opening an invalid font on a Mac caused a segfault due to
  2327. double-freeing memory.
  2328. - BDF fonts with more than 32768 glyphs weren't supported
  2329. properly.
  2330. II. IMPORTANT CHANGES
  2331. - Accessing bitmap font formats has been synchronized. To do that
  2332. the FT_Bitmap_Size structure has been extended to contain new
  2333. fields `size', `x_ppem', and `y_ppem'.
  2334. - The FNT driver now returns multiple faces, not multiple strikes.
  2335. - The `psnames' module has been updated to the Adobe Glyph List
  2336. version 2.0.
  2337. - The `psnames' module now understands `uXXXX[X[X]]' glyph names.
  2338. - The algorithm for guessing the font style has been improved.
  2339. - For fonts in SFNT format, root->height is no longer increased if
  2340. the line gap is zero. There exist fonts (containing e.g. form
  2341. drawing characters) which intentionally have a zero line gap
  2342. value.
  2343. - ft_glyph_bbox_xxx flags are now deprecated in favour of
  2344. FT_GLYPH_BBOX_XXX.
  2345. - ft_module_xxx flags are now deprecated in favour of
  2346. FT_MODULE_XXX.
  2347. - FT_ENCODING_MS_{SJIS,GB2312,BIG5,WANSUNG,JOHAB} are now
  2348. deprecated in favour of
  2349. FT_ENCODING_{SJIS,GB2312,BIG5,WANSUNG,JOHAB} -- those encodings
  2350. are not specific to Microsoft.
  2351. III. MISCELLANEOUS
  2352. - The autohinter has been further improved; for example, `m'
  2353. glyphs now retain its vertical symmetry.
  2354. - Partial support of Mac fonts on non-Mac platforms.
  2355. - `make refdoc' (after first `make') builds the HTML
  2356. documentation. You need Python for this.
  2357. - The make build system should now work more reliably on DOS-like
  2358. platforms.
  2359. - Support for EMX gcc and Watson C/C++ compilers on MS-DOS has
  2360. been added.
  2361. - Better VMS build support.
  2362. - Support for the pkg-config package by providing a `freetype.pc'
  2363. file.
  2364. - New configure option --with-old-mac-fonts for Darwin.
  2365. - Some source files have been renamed (mainly to fit into the 8.3
  2366. naming scheme).
  2367. ======================================================================
  2368. CHANGES BETWEEN 2.1.4 and 2.1.3
  2369. I. IMPORTANT BUG FIXES
  2370. - Updated to newest libtool version, fixing build problems on
  2371. various platforms.
  2372. - A fix in the Gzip stream reader: It couldn't read certain .gz
  2373. files properly due to a small typo. In certain cases, FreeType
  2374. could also loop endlessly when trying to load tiny gzipped
  2375. files.
  2376. - The configure script now tries to use the system-wide zlib when
  2377. it finds one (instead of the copy found in src/gzip). And
  2378. `freetype-config' has been updated to return relevant flags in
  2379. this case when invoked with `--libs' (e.g. `-lzlib').
  2380. - Certain fonts couldn't be loaded by 2.1.3 because they lacked a
  2381. Unicode charmap (e.g. SYMBOL.TTF). FreeType erroneously
  2382. rejected them.
  2383. - The CFF loader was modified to accept fonts which only contain a
  2384. subset of their reference charset. This prevented the correct
  2385. use of PDF-embedded fonts.
  2386. - The logic to detect Unicode charmaps has been modified. This is
  2387. required to support fonts which include both 16-bit and 32-bit
  2388. charmaps (like very recent asian ones) using the new 10 and 12
  2389. SFNT formats.
  2390. - The TrueType loader now limits the depth of composite glyphs.
  2391. This is necessary to prevent broken fonts to break the engine by
  2392. blowing the stack with recursive glyph definitions.
  2393. - The CMap cache is now capable of managing UCS-4 character codes
  2394. that are mapped through extended charmaps in recent
  2395. TrueType/OpenType fonts.
  2396. - The cache sub-system now properly manages out-of-memory
  2397. conditions instead of blindly reporting them to the caller.
  2398. This means that it will try to empty the cache before restarting
  2399. its allocations to see if that can help.
  2400. - The PFR driver didn't return the list of available embedded
  2401. bitmaps properly.
  2402. - There was a nasty memory leak when using embedded bitmaps in
  2403. certain font formats.
  2404. II. IMPORTANT CHANGES
  2405. - David Chester contributed some enhancements to the auto-hinter
  2406. that significantly increase the quality of its output. The
  2407. Postscript hinter was also improved in several ways.
  2408. - The FT_RENDER_MODE_LIGHT render mode was implemented.
  2409. - A new API function called `FT_Get_BDF_Property' has been added
  2410. to FT_BDF_H to retrieve BDF properties from BDF _and_ PCF font
  2411. files. THIS IS STILL EXPERIMENTAL, since it hasn't been
  2412. properly tested yet.
  2413. - A Windows FNT specific API has been added, mostly to access font
  2414. headers. This is used by Wine.
  2415. - TrueType tables without an `hmtx' table are now tolerated when
  2416. an incremental interface is used. This happens for certain
  2417. Type42 fonts passed from Ghostscript to FreeType.
  2418. - The PFR font driver is now capable of returning the font family
  2419. and style names when they are available (instead of the sole
  2420. `FontID'). This is performed by parsing an *undocumented*
  2421. portion of the font file!
  2422. III. MISCELLANEOUS
  2423. - The path stroker in FT_STROKER_H has entered beta stage. It now
  2424. works very well, but its interface might change a bit in the
  2425. future. More on this in later releases.
  2426. - The documentation for FT_Size_Metrics didn't appear properly in
  2427. the API reference.
  2428. - The file docs/VERSION.DLL has been updated to explain versioning
  2429. with FreeType (i.e., comparing release/libtool/so numbers, and
  2430. how to use them in autoconf scripts).
  2431. - The installation documentation has been seriously revamped.
  2432. Everything is now in the `docs' directory.
  2433. ======================================================================
  2434. CHANGES BETWEEN 2.1.3 and 2.1.2
  2435. I. IMPORTANT BUG FIXES
  2436. - FT_Vector_Transform had been incorrectly modified in 2.1.2,
  2437. resulting in incorrect transformations being applied (for
  2438. example, rotations were processed in opposite angles).
  2439. - The format 8 and 12 TrueType charmap enumeration routines have
  2440. been fixed (FT_Get_Next_Char returned invalid values).
  2441. - The PFR font driver returned incorrect advance widths if the
  2442. outline and metrics resolution defined in the font file were
  2443. different.
  2444. - FT_Glyph_To_Bitmap now returns successfully when called with an
  2445. FT_BitmapGlyph argument (it previously returned an error).
  2446. - A bug in the Type 1 loader that prevented valid font bounding
  2447. boxes to be loaded from multiple master fonts.
  2448. - The SFNT validation code has been rewritten. FreeType can now
  2449. load `broken' fonts that were usable on Windows, but not with
  2450. previous versions of the library.
  2451. - The computation of bearings in the BDF driver has been fixed.
  2452. - The Postscript hinter crashed when trying to hint certain glyphs
  2453. (more precisely, when trying to apply hints to an empty glyph
  2454. outline).
  2455. - The TrueType glyph loader now supports composites in `Apple
  2456. format' (they differ slightly from Microsoft/OpenType ones in
  2457. the way transformation offsets are computed).
  2458. - FreeType was very slow at opening certain asian CID/CFF fonts,
  2459. due to fixed increment in dynamic array re-allocations. This
  2460. has been changed to exponential behaviour to get acceptable
  2461. performance.
  2462. II. IMPORTANT CHANGES
  2463. - The PCF driver now supports gzip-compressed font files natively.
  2464. This means that you will be able to use all these bitmap fonts
  2465. that come with XFree86 with FreeType (and libXft/libXft2, by
  2466. extension).
  2467. - The automatic and postscript hinters have both been updated.
  2468. This results in a relatively important increase of rendering
  2469. quality since many nasty defaults have been suppressed. Please
  2470. visit the web page:
  2471. https://www.freetype.org/hinting/smooth-hinting.html
  2472. for additional details on this topic.
  2473. - The `load_flags' parameter of `FT_Load_Glyph' is now an FT_Int32
  2474. (instead of just being an FT_Int). This breaks source and
  2475. binary compatibility for 16bit systems only, while retaining
  2476. both of them for 32 and 64 bit ones.
  2477. Some new flags have been added consequently:
  2478. FT_LOAD_NO_AUTOHINT :: Disable the use of the auto-hinter
  2479. (but not native format hinters).
  2480. FT_LOAD_TARGET_NORMAL :: Hint and render for normal
  2481. anti-aliased displays.
  2482. FT_LOAD_TARGET_MONO :: Hint and render for 1-bit displays.
  2483. FT_LOAD_TARGET_LCD :: Hint and render for horizontal RGB or
  2484. BGR subpixel displays (like LCD
  2485. screens). THIS IS STILL
  2486. EXPERIMENTAL!
  2487. FT_LOAD_TARGET_LCD_V :: Same as FT_LOAD_TARGET_LCD, for
  2488. vertical subpixel displays (like
  2489. rotated LCD screens). THIS IS STILL
  2490. EXPERIMENTAL!
  2491. FT_LOAD_MONOCHROME is still supported, but only affects
  2492. rendering, not the hinting.
  2493. Note that the `ftview' demo program available in the `ft2demos'
  2494. package has been updated to support LCD-optimized display on
  2495. non-paletted displays (under Win32 and X11).
  2496. - The PFR driver now supports embedded bitmaps (all formats
  2497. supported), and returns correct kerning metrics for all glyphs.
  2498. - The TrueType charmap loader now supports certain `broken' fonts
  2499. that load under Windows without problems.
  2500. - The cache API has been slightly modified (it's still a beta!):
  2501. - The type FTC_ImageDesc has been removed; it is now replaced
  2502. by FTC_ImageTypeRec. Note that one of its fields is a
  2503. `load_flag' parameter for FT_Load_Glyph.
  2504. - The field `num_grays' of FT_SBitRec has been changed to
  2505. `max_grays' in order to fit within a single byte. Its
  2506. maximum value is thus 255 (instead of 256 as previously).
  2507. III. MISCELLANEOUS
  2508. - Added support for the DESTDIR variable during `make install'.
  2509. This simplifies packaging of FreeType.
  2510. - Included modified copies of the ZLib sources in `src/gzip' in
  2511. order to support gzip-compressed PCF fonts. We do not use the
  2512. system-provided zlib for now, though this is a probable
  2513. enhancement for future releases.
  2514. - The DocMaker tool used to generate the on-line API reference has
  2515. been completely rewritten. It is now located in
  2516. `src/tools/docmaker/docmaker.py'. Features:
  2517. - better cross-referenced output
  2518. - more polished output
  2519. - uses Python regular expressions (though it didn't speed the
  2520. program)
  2521. - much more modular structure, which allows for different
  2522. `backends' in order to generate HTML, XML, or whatever
  2523. format.
  2524. One can regenerate the API reference by calling:
  2525. python src/tools/docmaker/docmaker.py \
  2526. --prefix=ft2 \
  2527. --title=FreeType-2.1.3 \
  2528. --output=<outputdirectory>
  2529. include/freetype/*.h \
  2530. include/freetype/config/*.h \
  2531. include/freetype/cache/*.h
  2532. - A new, experimental, support for incremental font loading (i.e.,
  2533. loading of fonts where the glyphs are not in the font file
  2534. itself, but provided by an external component, like a Postscript
  2535. interpreter) has been added by Graham Asher. This is still work
  2536. in progress, however.
  2537. - A new, EXPERIMENTAL, path stroker has been added. It doesn't
  2538. suffer from severe rounding errors and treat bezier arcs
  2539. directly. Still work in progress (i.e. not part of the official
  2540. API). See the file <freetype/ftstroker.h> for some of the
  2541. details.
  2542. - The massive re-formatting of sources and internal re-design is
  2543. still under-way. Many internal functions, constants, and types
  2544. have been renamed.
  2545. ======================================================================
  2546. CHANGES BETWEEN 2.1.2 and 2.1.1
  2547. I. IMPORTANT BUG FIXES
  2548. - Many font drivers didn't select a Unicode charmap by default
  2549. when a new face was opened (with the FT_CONFIG_OPTION_USE_CMAPS
  2550. options enabled), causing many applications to not be able to
  2551. display text correctly with the 2.1.x releases.
  2552. - The PFR driver had a bug in its composite loading code that
  2553. produces incorrectly placed accents with many fonts.
  2554. - The Type42 driver crashed sometimes due to a nasty bug.
  2555. - The Type 1 custom encoding charmap didn't handle the case where
  2556. the first glyph index wasn't 0.
  2557. - A serious typo in the TrueType composite loader produced
  2558. incorrectly placed glyphs in fonts like `Wingdings' and a few
  2559. others.
  2560. II. MISCELLANEOUS
  2561. - The Win32 Visual C++ project file has been updated to include
  2562. the PFR driver as well.
  2563. - `freetype.m4' is now installed by default by `make install' on
  2564. Unix systems.
  2565. - The function FT_Get_PS_Font_Info now works with CID and Type42
  2566. fonts as well.
  2567. ======================================================================
  2568. CHANGES BETWEEN 2.1.1 and 2.1.0
  2569. I. IMPORTANT BUG FIXES
  2570. - The `version_info' returned by `freetype-config' in 2.1.0
  2571. returned an invalid value. It now returns 9:1:3 (2.0.9 returned
  2572. 9:0:3).
  2573. - Version 2.1.0 couldn't be linked against applications on Win32
  2574. and Amiga systems due to a new debug function that wasn't
  2575. properly propagated to the system-specific directory in
  2576. `builds'.
  2577. - Various MacOS and Mac OS X specific fixes.
  2578. - Fixed a bug in the TrueType charmap validation routines that
  2579. made version 2.1.0 too restrictive -- many popular fonts have
  2580. been rejected.
  2581. - There was still a very small difference between the monochrome
  2582. glyph bitmaps produced by FreeType 1.x and FreeType 2.x with the
  2583. bytecode interpreter enabled. This was caused by an invalid
  2584. flag setting in the TrueType glyph loader, making the rasterizer
  2585. change its drop-out control mode. Now the results should
  2586. _really_ be completely identical.
  2587. - The TrueType name table loader has been improved to support many
  2588. popular though buggy Asian fonts. It now ignores empty name
  2589. entries, invalid pointer offsets and a few other incorrect
  2590. subtleties. Moreover, name strings are now loaded on demand,
  2591. which reduces the memory load of many faces (e.g. the ARIAL.TTF
  2592. font file contains a 10kByte name table with 70 names).
  2593. - Fixed a bug in the Postscript hinter that prevented family blues
  2594. substitution to happen correctly.
  2595. II. NEW FEATURES
  2596. - Three new font drivers in this release:
  2597. * A BDF font driver, contributed by Franco Zappa Nardelli,
  2598. heavily modified by Werner Lemberg. It also supports
  2599. anti-aliased bitmaps (using a slightly extended BDF format).
  2600. * A Type42 font driver, contributed by Roberto Alameda. It is
  2601. still experimental but seems to work relatively well.
  2602. * A PFR font driver, contributed by David Turner himself. It
  2603. doesn't support PFR hinting -- note that BitStream has at
  2604. least two patents on this format!
  2605. III. MISCELLANEOUS
  2606. - The cache sub-system has been optimized in important ways.
  2607. Cache hits are now significantly faster. For example, using the
  2608. CMap cache is about twice faster than calling FT_Get_Char_Index
  2609. on most platforms. Similarly, using an SBit cache is about five
  2610. times faster than loading the bitmaps from a bitmap file, and
  2611. 300 to 500 times faster than generating them from a scalable
  2612. format.
  2613. Note that you should recompile your sources if you designed a
  2614. custom cache class for the FT2 Cache subsystem, since the
  2615. changes performed are source, but not binary, compatible.
  2616. ======================================================================
  2617. CHANGES BETWEEN 2.1.0 and 2.0.9
  2618. I. IMPORTANT BUG FIXES
  2619. - The TrueType bytecode interpreter has been fixed to produce
  2620. _exactly_ the same output as FreeType 1.x. Previous differences
  2621. were due to slightly distinct fixed-point computation routines
  2622. used to perform dot products and vector length measurements.
  2623. It seems that native TrueType hinting is _extremely_ sensitive
  2624. to rounding errors. The required vector computation routines
  2625. have been optimized and placed within the `ttinterp.c' file.
  2626. - Fixed the parsing of accelerator tables in the PCF font driver.
  2627. - Fixed the Type1 glyph loader routine used to compute the font's
  2628. maximum advance width.
  2629. II. NEW FEATURES
  2630. - The `configure' script used on Unix systems has been modified to
  2631. check that GNU Make is being used to build the library.
  2632. Otherwise, it will display a message proposing to use the
  2633. GNUMAKE environment variable to name it.
  2634. The Unix-specific file README.UNX has been modified accordingly.
  2635. III. MISCELLANEOUS
  2636. - The FreeType License in `docs/FTL.TXT' has been updated to
  2637. include a proposed preferred disclaimer. If you are using
  2638. FreeType in your products, you are encouraged (but not mandated)
  2639. to use the following text in your documentation:
  2640. """
  2641. Portions of this software are copyright © 1996-2002 The
  2642. FreeType Project (www.freetype.org). All rights reserved.
  2643. """
  2644. - The default size of the render pool has been reduced to 16kByte.
  2645. This shouldn't result in any noticeable performance penalty,
  2646. unless you are using the engine as-is to render very large and
  2647. complex glyphs.
  2648. - The FreeType 2 redesign has begun. More information can be
  2649. found at this URL:
  2650. https://www.freetype.org/freetype2/redesign.html
  2651. The following internal changes have been performed within the
  2652. sources of this release:
  2653. - Many internal types have been renamed to increase
  2654. consistency. The following should be true, except for
  2655. public types:
  2656. * All structure types have a name ending in `Rec' (short
  2657. for `record').
  2658. * A pointer-to-structure type has the same name as the
  2659. structure, _without_ the `Rec' suffix.
  2660. Example:
  2661. typedef struct FooRec_
  2662. {
  2663. ...
  2664. } FooRec, *Foo;
  2665. - Many internal macros have been renamed to increase
  2666. consistency. The following should be true:
  2667. * All macros have a name beginning with `FT_'. This
  2668. required a few changes like
  2669. ALLOC => FT_ALLOC
  2670. FREE => FT_FREE
  2671. REALLOC => FT_REALLOC
  2672. * All macros are completely UPPERCASE. This required a
  2673. few changes like:
  2674. READ_Short => FT_READ_SHORT
  2675. NEXT_Short => FT_NEXT_SHORT
  2676. GET_ULongLE => FT_GET_ULONG_LE
  2677. MEM_Set => FT_MEM_SET
  2678. MEM_Copy => FT_MEM_COPY
  2679. etc.
  2680. * Whenever possible, all macro names follow the
  2681. FT_<OBJECT>_<METHOD> pattern. For example
  2682. ACCESS_Frame => FT_FRAME_ENTER
  2683. FORGET_Frame => FT_FRAME_EXIT
  2684. EXTRACT_Frame => FT_FRAME_EXTRACT
  2685. RELEASE_Frame => FT_FRAME_RELEASE
  2686. FILE_Pos => FT_STREAM_POS
  2687. FILE_Seek => FT_STREAM_SEEK
  2688. FILE_Read => FT_STREAM_READ
  2689. FILE_ReadAt => FT_STREAM_READ_AT
  2690. READ_Fields => FT_STREAM_READ_FIELDS
  2691. - Many internal functions have been renamed to follow the
  2692. FT_<Object>_<Method> pattern. For example:
  2693. FT_Seek_Stream => FT_Stream_Seek
  2694. FT_Read_Stream_At => FT_Stream_ReadAt
  2695. FT_Done_Stream => FT_Stream_Close
  2696. FT_New_Stream => FT_Stream_Open
  2697. FT_New_Memory_Stream => FT_Stream_OpenMemory
  2698. FT_Extract_Frame => FT_Stream_ExtractFrame
  2699. Note that method names do not contain `_'.
  2700. - The FT_ALLOC_ARRAY and FT_REALLOC_ARRAY have been replaced
  2701. with FT_NEW_ARRAY and FT_RENEW_ARRAY which do not take a
  2702. type as the fourth argument. Instead, the array element
  2703. type size is computed automatically from the type of the
  2704. target pointer used.
  2705. - A new object class, FT_CMap, has been introduced. These
  2706. internal objects are used to model character maps. This
  2707. eases the support of additional charmap types within the
  2708. engine.
  2709. - A new configuration file named `ftstdlib.h' has been added
  2710. to `include/freetype/config'. It is used to define aliases
  2711. for _every_ routine of the ISO C library that the font
  2712. engine uses. Each aliases has a `ft_' prefix
  2713. (e.g. `ft_strlen' is an alias for `strlen').
  2714. This is used to ease the porting of FreeType 2 to exotic
  2715. runtime environments where the ISO C Library isn't available
  2716. (e.g. XFree86 extension modules).
  2717. More details are available in the `ChangeLog' file.
  2718. ======================================================================
  2719. CHANGES BETWEEN 2.0.9 and 2.0.8
  2720. I. IMPORTANT BUG FIXES
  2721. - Certain fonts like `foxjump.ttf' contain broken name tables with
  2722. invalid entries and wild offsets. This caused FreeType to crash
  2723. when trying to load them.
  2724. The SFNT `name' table loader has been fixed to be able to
  2725. support these strange fonts.
  2726. Moreover, the code in charge of processing this table has been
  2727. changed to always favour Windows-formatted entries over other
  2728. ones. Hence, a font that works on Windows but not on the Mac
  2729. will load cleanly in FreeType and report accurate values for
  2730. Family & PostScript names.
  2731. - The CID font driver has been fixed. It unfortunately returned a
  2732. Postscript Font name with a leading slash, as in
  2733. `/MunhwaGothic-Regular'.
  2734. - FreeType 2 should now compile fine on AIX 4.3.3 as a shared
  2735. library.
  2736. - A bug in the Postscript hinter has been found and fixed,
  2737. removing un-even stem widths at small pixel sizes (like 14-17).
  2738. This improves the quality of a certain number of Postscript
  2739. fonts.
  2740. II. NEW FEATURES
  2741. - A new function named `FT_Library_Version' has been added to
  2742. return the current library's major, minor, and patch version
  2743. numbers. This is important since the macros FREETYPE_MAJOR,
  2744. FREETYPE_MINOR, and FREETYPE_PATCH cannot be used when the
  2745. library is dynamically linked by a program.
  2746. - Two new APIs have been added: `FT_Get_First_Char' and
  2747. `FT_Get_Next_Char'.
  2748. Together, these can be used to iterate efficiently over the
  2749. currently selected charmap of a given face. Read the API
  2750. reference for more details.
  2751. III. MISCELLANEOUS
  2752. - The FreeType sources are under heavy internal re-factoring. As
  2753. a consequence, we have created a branch named `STABLE' on the
  2754. CVS to hold all future releases/fixes in the 2.0.x family.
  2755. The HEAD branch now contains the re-factored sources and
  2756. shouldn't be used for testing or packaging new releases. In
  2757. case you would like to access the 2.0.9 sources from our CVS
  2758. repository, use the tag `VER-2-0-9'.
  2759. ======================================================================
  2760. CHANGES BETWEEN 2.0.8 and 2.0.7
  2761. I. IMPORTANT BUG FIXES
  2762. - There was a small but nasty bug in `freetype-config.in' which
  2763. caused the `freetype-config' script to fail on Unix.
  2764. This didn't prevent the installation of the library or even its
  2765. execution, but caused problems when trying to compile many Unix
  2766. packages that depend on it.
  2767. - Some TrueType or OpenType fonts embedded in PDF documents do not
  2768. have a 'cmap', 'post' and 'name' as is required by the
  2769. specification. FreeType no longer refuses to load such fonts.
  2770. - Various fixes to the PCF font driver.
  2771. ======================================================================
  2772. CHANGES BETWEEN 2.0.7 and 2.0.6
  2773. I. IMPORTANT BUG FIXES
  2774. - Fixed two bugs in the Type 1 font driver. The first one
  2775. resulted in a memory leak in subtle cases. The other one caused
  2776. FreeType to crash when trying to load `.gsf' files (Ghostscript
  2777. so-called Postscript fonts).
  2778. (This made _many_ KDE applications crash on certain systems.
  2779. FreeType _is_ becoming a critical system component on Linux :-)
  2780. - Fixed a memory leak in the CFF font driver.
  2781. - Fixed a memory leak in the PCF font driver.
  2782. - Fixed the Visual C++ project file
  2783. `builds/win32/visualc/freetype.dsp' since it didn't include the
  2784. Postscript hinter component, causing errors at build time.
  2785. - Fixed a small rendering bug in the anti-aliased renderer that
  2786. only occurred when trying to draw thin (less than 1 pixel)
  2787. strokes.
  2788. - Fixed `builds/unix/freetype2.a4' which is used to generate a
  2789. valid `freetype2.m4' for use with autoconf.
  2790. - Fixed the OpenVMS Makefiles.
  2791. II. MISCELLANEOUS
  2792. - Added `configure' and `install' scripts to the top-level
  2793. directory. A GNU-style installation is thus now easily possible
  2794. with
  2795. ./configure <options>
  2796. make
  2797. make install
  2798. ======================================================================
  2799. CHANGES BETWEEN 2.0.6 and 2.0.5
  2800. I. IMPORTANT BUG FIXES
  2801. - It wasn't possible to load embedded bitmaps when the auto-hinter
  2802. was used. This is now fixed.
  2803. - The TrueType font driver didn't load some composites properly
  2804. (the sub-glyphs were slightly shifted, and this was only
  2805. noticeable when using monochrome rendering).
  2806. - Various fixes to the auto-hinter. They merely improve the
  2807. output of sans-serif fonts. Note that there are still problems
  2808. with serifed fonts and composites (accented characters).
  2809. - All scalable font drivers erroneously returned un-fitted glyph
  2810. advances when hinting was requested. This created problems for
  2811. a number of layout applications. This is a very old bug that
  2812. got undetected mainly because most test/demo program perform
  2813. rounding explicitly or implicitly (through the cache).
  2814. - `FT_Glyph_To_Bitmap' did erroneously modify the source glyph in
  2815. certain cases.
  2816. - `glnames.py' still contained a bug that made FreeType return
  2817. invalid names for certain glyphs.
  2818. - The library crashed when loading certain Type 1 fonts like
  2819. `sadn.pfb' (`Stalingrad Normal'), which appear to contain
  2820. pathetic font info dictionaries.
  2821. - The TrueType glyph loader is now much more paranoid and checks
  2822. everything when loading a given glyph image. This was necessary
  2823. to avoid problems (crashes and/or memory overwrites) with broken
  2824. fonts that came from a really buggy automatic font converter.
  2825. II. IMPORTANT UPDATES AND NEW FEATURES
  2826. - Important updates to the Mac-specific parts of the library.
  2827. - The caching sub-system has been completely re-designed, and its
  2828. API has evolved (the old one is still supported for backward
  2829. compatibility).
  2830. The documentation for it is not yet completed, sorry. For now,
  2831. you are encouraged to continue using the old API. However, the
  2832. ftview demo program in the ft2demos package has already been
  2833. updated to use the new caching functions.
  2834. - A new charmap cache is provided too. See `FTC_CMapCache'. This
  2835. is useful to perform character code -> glyph index translations
  2836. quickly, without the need for an opened FT_Face.
  2837. - A NEW POSTSCRIPT HINTER module has been added to support native
  2838. hints in the following formats: PostScript Type 1, PostScript
  2839. CID, and CFF/CEF.
  2840. Please test! Note that the auto-hinter produces better results
  2841. for a number of badly-hinted fonts (mostly auto-generated ones)
  2842. though.
  2843. - A memory debugger is now part of the standard FreeType sources.
  2844. To enable it, define FT_DEBUG_MEMORY in
  2845. <freetype/config/ftoption.h>, and recompile the library.
  2846. Additionally, define the _environment_ variable FT_DEBUG_MEMORY
  2847. and run any program using FreeType. When the library is exited,
  2848. a summary of memory footprints and possible leaks will be
  2849. displayed.
  2850. This works transparently with _any_ program that uses FreeType.
  2851. However, you will need a lot of memory to use this (allocated
  2852. blocks are never released to the heap to detect double deletes
  2853. easily).
  2854. III. MISCELLANEOUS
  2855. - We are aware of subtle differences between the output of
  2856. FreeType versions 1 and 2 when it comes to monochrome
  2857. TrueType-hinted glyphs. These are most probably due to small
  2858. differences in the monochrome rasterizers and will be worked out
  2859. in an upcoming release.
  2860. - We have decided to fork the sources in a `stable' branch, and an
  2861. `unstable' one, since FreeType is becoming a critical component
  2862. of many Unix systems.
  2863. The next bug-fix releases of the library will be named 2.0.7,
  2864. 2.0.8, etc., while the `2.1' branch will contain a version of
  2865. the sources where we will start major reworking of the library's
  2866. internals, in order to produce FreeType 2.2.0 (or even 3.0) in a
  2867. more distant future.
  2868. We also hope that this scheme will allow much more frequent
  2869. releases than in the past.
  2870. ======================================================================
  2871. CHANGES BETWEEN 2.0.5 and 2.0.4
  2872. NOTE THAT 2.0.5 DOES NOT CONTAIN THE POSTSCRIPT HINTER. THIS MODULE
  2873. WILL BE PART OF THE NEXT RELEASE (EITHER 2.0.6 or 2.1)
  2874. - Fixed a bug that made certain glyphs, like `Cacute', `cacute' and
  2875. `lslash' unavailable from Unicode charmaps of Postscript fonts.
  2876. This prevented the correct display of Polish text, for example.
  2877. - The kerning table of Type 1 fonts was loaded by FreeType, when its
  2878. AFM file was attached to its face, but the
  2879. FT_FACE_FLAG_HAS_KERNING bit flags was not set correctly,
  2880. preventing FT_Get_Kerning to return meaningful values.
  2881. - Improved SFNT (TrueType & OpenType) charmap support. Slightly
  2882. better performance, as well as support for the new formats defined
  2883. by the OpenType 1.3 specification (8, 10, and 12)
  2884. - Fixed a serious typo in `src/base/ftcalc.c' which caused invalid
  2885. computations in certain rare cases, producing ugly artefacts.
  2886. - The size of the EM square is computed with a more accurate
  2887. algorithm for Postscript fonts. The old one caused slight errors
  2888. with embedded fonts found in PDF documents.
  2889. - Fixed a bug in the cache manager that prevented normal LRU
  2890. behaviour within the cache manager, causing unnecessary reloads
  2891. (for FT_Face and FT_Size objects only).
  2892. - Added a new function named `FT_Get_Name_Index' to retrieve the
  2893. glyph index of a given glyph name, when found in a face.
  2894. - Added a new function named `FT_Get_Postscript_Name' to retrieve
  2895. the `unique' Postscript font name of a given face.
  2896. - Added a new public header size named FT_SIZES_H (or
  2897. <freetype/ftsizes.h>) providing new FT_Size-management functions:
  2898. FT_New_Size, FT_Activate_Size, FT_Done_Size.
  2899. - Fixed a reallocation bug that generated a dangling pointer (and
  2900. possibly memory leaks) with Postscript fonts (in
  2901. src/psaux/psobjs.c).
  2902. - Many fixes for 16-bit correctness.
  2903. - Removed many pedantic compiler warnings from the sources.
  2904. - Added an Amiga build directory in `builds/amiga'.
  2905. ======================================================================
  2906. CHANGES BETWEEN 2.0.4 and 2.0.3
  2907. - Fixed a rather annoying bug that was introduced in 2.0.3. Namely,
  2908. the font transformation set through FT_Set_Transform was applied
  2909. twice to auto-hinted glyphs, resulting in incorrectly rotated text
  2910. output.
  2911. - Fixed _many_ compiler warnings. FT2 should now compile cleanly
  2912. with Visual C++'s most pedantic warning level (/W4). It already
  2913. compiled fine with GCC and a few other compilers.
  2914. - Fixed a bug that prevented the linear advance width of composite
  2915. TrueType glyphs to be correctly returned.
  2916. - Fixed the Visual C++ project files located in
  2917. `builds/win32/visualc' (previous versions used older names of the
  2918. library).
  2919. - Many 32-bit constants have an `L' appended to their value, in
  2920. order to improve the 16-bitness of the code. Someone is actually
  2921. trying to use FT2 on an Atari ST machine!
  2922. - Updated the `builds/detect.mk' file in order to automatically
  2923. build FT2 on AIX systems. AIX uses `/usr/sbin/init' instead of
  2924. `/sbin/init' and wasn't previously detected as a Unix platform by
  2925. the FreeType build system.
  2926. - Updated the Unix-specific portions of the build system (new
  2927. libtool version, etc.).
  2928. - The SFNT kerning loader now ensures that the table is sorted
  2929. (since some problem fonts do not meet this requirement).
  2930. =======================================================================
  2931. CHANGES BETWEEN 2.0.3 and 2.0.2
  2932. I. CHANGES TO THE MODULES / FONT DRIVERS
  2933. - THE AUTO-HINTER HAS BEEN SLIGHTLY IMPROVED, in order to fix
  2934. several annoying artefacts, mainly:
  2935. - Blue zone alignment of horizontal stems wasn't performed
  2936. correctly, resulting in artefacts like the `d' being placed
  2937. one pixel below the `b' in some fonts like Time New Roman.
  2938. - Overshoot thresholding wasn't performed correctly, creating
  2939. unpleasant artefacts at large character pixel sizes.
  2940. - Composite glyph loading has been simplified. This gets rid
  2941. of various artefacts where the components of a composite
  2942. glyphs were not correctly spaced.
  2943. These are the last changes to the current auto-hinting module.
  2944. A new hinting sub-system is currently in the work in order to
  2945. support native hints in Type 1 / CFF / OpenType fonts, as well
  2946. as globally improve rendering.
  2947. - The PCF driver has been fixed. It reported invalid glyph
  2948. dimensions for the fonts available on Solaris.
  2949. - The Type 1, CID and CFF drivers have been modified to fix the
  2950. computation of the EM size.
  2951. - The Type 1 driver has been fixed to avoid a dangerous bug that
  2952. crashed the library with non-conforming fonts (i.e. ones that do
  2953. not place the .notdef glyph at position 0).
  2954. - The TrueType driver had a rather subtle bug (dangling pointer
  2955. when loading composite glyphs) that could crash the library in
  2956. rare occasions!
  2957. II. HIGH-LEVEL API CHANGES
  2958. - The error code enumeration values have been changed. An error
  2959. value is decomposed in a generic error code, and a module
  2960. number. see <freetype/fterrors.h> for details.
  2961. - A new public header file has been introduced, named
  2962. FT_TRIGONOMETRY_H (include/freetype/fttrigon.h), providing
  2963. trigonometric functions to compute sines, cosines, arctangents,
  2964. etc. with 16.16 fixed precision. The implementation is based on
  2965. the CORDIC algorithm and is very fast while being sufficiently
  2966. accurate.
  2967. III. INTERNALS
  2968. - Added BeOS-specific files in the old build sub-system. Note
  2969. that no changes were required to compile the library with Jam.
  2970. - The configuration is now capable of automatically detecting
  2971. 64-bit integers on a set of predefined compilers (GCC, Visual
  2972. C++, Borland C++) and will use them by default. This provides a
  2973. small performance boost.
  2974. - A small memory leak that happened when opening 0-sized files
  2975. (duh!) have been fixed.
  2976. - Fixed bezier stack depth bug in the routines provided by the
  2977. FT_BBOX_H header file. Also fixed similar bugs in the
  2978. rasterizers.
  2979. - The outline bounding box code has been rewritten to use direct
  2980. computations, instead of bezier sub-division, to compute the
  2981. exact bounding box of glyphs. This is slightly slower but more
  2982. accurate.
  2983. - The build system has been improved and fixed, mainly to support
  2984. `make' on Windows 2000 correctly, avoid problems with `make
  2985. distclean' on non Unix systems, etc.
  2986. - Hexadecimal constants have been suffixed with `U' to avoid
  2987. problems with certain compilers on 64-bit platforms.
  2988. - A new directory named `src/tools' has been created. It contains
  2989. Python scripts and simple unit test programs used to develop the
  2990. library.
  2991. - The DocMaker tool has been moved from `docs' to `src/tools' and
  2992. has been updated with the following:
  2993. - Now accepts the `--title=XXXX' or `-t XXXX' option from the
  2994. command line to set the project's name in the generated API
  2995. reference.
  2996. - Now accepts the `--output=DIR' or `-o DIR' option from the
  2997. command line to set the output directory for all generated
  2998. HTML files.
  2999. - Now accepts the `--prefix=XXXX' or `-p XXX' option from the
  3000. command line to set the file prefix to use for all
  3001. generated HTML files.
  3002. - Now generates the current time/data on each generated page
  3003. in order to distinguish between versions.
  3004. DocMaker can be used with other projects now, not only FT2
  3005. (e.g. MLib, FTLayout, etc.).
  3006. ======================================================================
  3007. CHANGES BETWEEN 2.0.2 and 2.0.1
  3008. I. CHANGES TO THE MODULES / FONT DRIVERS
  3009. - THE TRUETYPE BYTECODE INTERPRETER IS NOW TURNED OFF, in order to
  3010. avoid legal problems with the Apple patents. It seems that we
  3011. mistakenly turned this option on in previous releases of the
  3012. build.
  3013. Note that if you want to use the bytecode interpreter in order
  3014. to get high-quality TrueType rendering, you will need to toggle
  3015. by hand the definition of the
  3016. TT_CONFIG_OPTION_BYTECODE_INTERPRETER macro in the file
  3017. `include/freetype/config/ftoption.h'.
  3018. - The CFF driver has been improved by Tom Kacvinsky and Sander van
  3019. der Wal:
  3020. * Support for `seac' emulation.
  3021. * Support for `dotsection'.
  3022. * Support for retrieving glyph names through
  3023. `FT_Get_Glyph_Name'.
  3024. The first two items are necessary to correctly a large number of
  3025. Type 1 fonts converted to the CFF formats by Adobe Acrobat.
  3026. - The Type 1 driver was also improved by Tom & others:
  3027. * Better EM size computation.
  3028. * Better support for synthetic (transformed) fonts.
  3029. * The Type 1 driver returns the charstrings corresponding to
  3030. each glyph in the `glyph->control_data' field after a call to
  3031. `FT_Load_Glyph' (thanks Ha Shao).
  3032. - Various other bugfixes, including the following:
  3033. * Fixed a nasty memory leak in the Type 1 driver.
  3034. * The autohinter and the pcf driver used static writable data
  3035. when they shouldn't.
  3036. * Many casts were added to make the code more 64-bits safe. It
  3037. also now compiles on Windows XP 64-bits without warnings.
  3038. * Some incorrect writable statics were removed in the `autohint'
  3039. and `pcf' drivers. FreeType 2 now compiles on Epoc again.
  3040. II. CHANGES TO THE HIGH-LEVEL API
  3041. - The library header files inclusion scheme has been changed. The
  3042. old scheme looked like:
  3043. #include <freetype/freetype.h>
  3044. #include <freetype/ftglyph.h>
  3045. #include <freetype/ftcache.h>
  3046. #include <freetype/cache/ftimage.h>
  3047. Now you should use:
  3048. #include <ft2build.h>
  3049. #include FT_FREETYPE_H
  3050. #include FT_GLYPH_H
  3051. #include FT_CACHE_H
  3052. #include FT_CACHE_IMAGE_H
  3053. NOTE THAT THE OLD INCLUSION SCHEME WILL STILL WORK WITH THIS
  3054. RELEASE. HOWEVER, WE DO NOT GUARANTEE THAT THIS WILL STILL BE
  3055. TRUE IN THE NEXT ONE (A.K.A. FREETYPE 2.1).
  3056. The file <ft2build.h> is used to define the header filename
  3057. macros. The complete and commented list of macros is available
  3058. in the API reference under the section name `Header File Macros'
  3059. in Chapter I.
  3060. For more information, see section I of the following document:
  3061. https://www.freetype.org/freetype2/docs/tutorial/step1.html
  3062. - Many, many comments have been added to the public source file in
  3063. order to automatically generate the API Reference through the
  3064. `docmaker.py' Python script.
  3065. The latter has been updated to support the grouping of sections
  3066. in chapters and better index sort. See:
  3067. https://www.freetype.org/freetype2/docs/reference/ft2-toc.html
  3068. III. CHANGES TO THE BUILD PROCESS
  3069. - If you are not building FreeType 2 with its own build system
  3070. (but with your own Makefiles or project files), you will need to
  3071. be aware that the build process has changed a little bit.
  3072. You don't need to put the `src' directory in the include path
  3073. when compiling any FT2 component. Instead, simply put the
  3074. component's directory in the current include path.
  3075. So, if you were doing something like:
  3076. cc -c -Iinclude -Isrc src/base/ftbase.c
  3077. change the line to:
  3078. cc -c -Iinclude -Isrc/base src/base/ftbase.c
  3079. If you were doing something like:
  3080. cd src/base
  3081. cc -c -I../../include -I.. ftbase.c
  3082. change it to:
  3083. cd src/base
  3084. cc -c -I../../include ftbase.c
  3085. ======================================================================
  3086. CHANGES BETWEEN 2.0.1 and 2.0
  3087. 2.0.1 introduces a few changes:
  3088. - Fixed many bugs related to the support of CFF / OpenType fonts.
  3089. These formats are now much better supported though there is
  3090. still work planned to deal with charset tables and PDF-embedded
  3091. CFF files that use the old `seac' command.
  3092. - The library could not be compiled in debug mode with a very
  3093. small number of C compilers whose pre-processors didn't
  3094. implement the `##' directive correctly (i.e. per se the ANSI C
  3095. specification!) An elegant fix was found.
  3096. - Added support for the free Borland command-line C++ Builder
  3097. compiler. Use `make setup bcc32'. Also fixed a few source
  3098. lines that generated new warnings with BCC32.
  3099. - Fixed a bug in FT_Outline_Get_BBox when computing the extrema of
  3100. a conic Bezier arc.
  3101. - Updated the INSTALL file to add IDE compilation.
  3102. - Other minor bug fixes, from invalid Type 1 style flags to
  3103. correct support of synthetic (obliqued) fonts in the
  3104. auto-hinter, better support for embedded bitmaps in a SFNT font.
  3105. - Fixed some problems with `freetype-config'.
  3106. Finally, the `standard' scheme for including FreeType headers is now
  3107. gradually changing, but this will be explained in a later release
  3108. (probably 2.0.2).
  3109. And very special thanks to Tom Kacvinsky and YAMANO-UCHI Hidetoshi
  3110. for their contributions!
  3111. ======================================================================
  3112. CHANGES BETWEEN beta8 and 2.0
  3113. - Changed the default installation path for public headers from
  3114. `include/freetype' to `include/freetype2'.
  3115. Also added a new `freetype-config' that is automatically generated
  3116. and installed on Unix and Cygwin systems. The script itself is
  3117. used to retrieve the current install path, C compilation flags as
  3118. well as linker flags.
  3119. - Fixed several small bugs:
  3120. * Incorrect max advance width for fixed-pitch Type 1 fonts.
  3121. * Incorrect glyph names for certain TrueType fonts.
  3122. * The glyph advance was not copied when FT_Glyph_To_Bitmap was
  3123. called.
  3124. * The linearHoriAdvance and linearVertAdvance fields were not
  3125. correctly returned for glyphs processed by the auto-hinter.
  3126. * `type1z' renamed back to `type1'; the old `type1' module has
  3127. been removed.
  3128. - Revamped the build system to make it a lot more generic. This
  3129. will allow us to re-use nearly un-modified in lots of other
  3130. projects (including FreeType Layout).
  3131. - Changed `cid' to use `psaux' too.
  3132. - Added the cache sub-system. See <freetype/ftcache.h> as well as
  3133. the sources in `src/cache'. Note that it compiles but is still
  3134. untested for now.
  3135. - Updated `docs/docmaker.py', a draft API reference is available at
  3136. https://web.archive.org/web/20001215173400/http://www.freetype.org:80/ft2api.html.
  3137. - Changed `type1' to use `psaux'.
  3138. - Created a new module named `psaux' to hold the Type 1 & Type 2
  3139. parsing routines. It should be used by `type1', `cid', and `cff'
  3140. in the future.
  3141. - Fixed an important bug in `FT_Glyph_Get_CBox'.
  3142. - Fixed some compiler warnings that happened since the TrueType
  3143. bytecode decoder was deactivated by default.
  3144. - Fixed two memory leaks:
  3145. * The memory manager (16 bytes) isn't released in
  3146. FT_Done_FreeType!
  3147. * Using custom input streams, the copy of the original stream was
  3148. never released.
  3149. - Fixed the auto-hinter by performing automatic computation of the
  3150. `filling direction' of each glyph. This is done through a simple
  3151. and fast approximation, and seems to work (problems spotted by
  3152. Werner though). The Arphic fonts are a lot nicer though there are
  3153. still a lot of things to do to handle Asian fonts correctly.
  3154. ======================================================================
  3155. BETA-8 (RELEASE CANDIDATE) CHANGES
  3156. - Deactivated the TrueType bytecode interpreter by default.
  3157. - Deactivated the `src/type1' font driver. Now `src/type1z' is used
  3158. by default.
  3159. - Updates to the build system. We now compile the library correctly
  3160. under Unix system through `configure' which is automatically
  3161. called on the first `make' invocation.
  3162. - Added the auto-hinting module! Fixing some bugs here and there.
  3163. - Found some bugs in the composite loader (seac) of the Type1-based
  3164. font drivers.
  3165. - Renamed the directory `freetype2/config' to `freetype2/builds' and
  3166. updated all relevant files.
  3167. - Found a memory leak in the `type1' driver.
  3168. - Incorporated Tom's patches to support flex operators correctly in
  3169. OpenType/CFF fonts. Now all I need is to support pure CFF and CEF
  3170. fonts to be done with this driver :-)
  3171. - Added the Windows FNT/FON driver in `src/winfonts'. For now, it
  3172. always `simulates' a Unicode charmap, so it shouldn't be
  3173. considered completed right now.
  3174. It is there to be more a proof of concept than anything else
  3175. anyway. The driver is a single C source file, that compiles to 3
  3176. Kb of code.
  3177. I'm still working on the PCF/BDF drivers, but I'm too lazy to
  3178. finish them now.
  3179. - CHANGES TO THE HIGH-LEVEL API
  3180. * FT_Get_Kerning has a new parameter that allows you to select the
  3181. coordinates of the kerning vector (font units, scaled, scaled +
  3182. grid-fitted).
  3183. * The outline functions are now in <freetype/ftoutln.h> and not
  3184. part of <freetype/freetype.h> anymore.
  3185. * <freetype/ftmodule.h> now contains declarations for
  3186. FT_New_Library, FT_Done_Library, FT_Add_Default_Modules.
  3187. * The so-called convenience functions have moved from `ftoutln.c'
  3188. to `ftglyph.c', and are thus available with this optional
  3189. component of the library. They are declared in
  3190. <freetype/ftglyph.h> now.
  3191. * Anti-aliased rendering is now the default for FT_Render_Glyph
  3192. (i.e. corresponds to render_mode == 0 == ft_render_mode_normal).
  3193. To generate a monochrome bitmap, use ft_render_mode_mono, or the
  3194. FT_LOAD_MONOCHROME flag in FT_Load_Glyph/FT_Load_Char.
  3195. FT_LOAD_ANTI_ALIAS is still defined, but values to 0.
  3196. * <freetype/freetype.h> now include <freetype/config/ftconfig.h>,
  3197. solving a few headaches :-)
  3198. * The type FT_GlyphSlotRec has now a `library' field.
  3199. - CHANGES TO THE `ftglyph.h' API
  3200. This API has been severely modified in order to make it simpler,
  3201. clearer, and more efficient. It certainly now looks like a real
  3202. `glyph factory' object, and allows client applications to manage
  3203. (i.e. transform, bbox and render) glyph images without ever
  3204. knowing their original format.
  3205. - Added support for CID-keyed fonts to the CFF driver. Maybe
  3206. support for pure CFF + CEF fonts should come in?
  3207. - Cleaned up source code in order to avoid two functions with the
  3208. same name. Also changed the names of the files in `type1z' from
  3209. `t1XXXX' to `z1XXXX' in order to avoid any conflicts.
  3210. `make multi' now works well :-)
  3211. Also removed the use of `cidafm' for now, even if the source files
  3212. are still there. This functionality will certainly go into a
  3213. specific module.
  3214. - ADDED SUPPORT FOR THE AUTO-HINTER
  3215. It works :-) I have a demo program which simply is a copy of
  3216. `ftview' that does a `FT_Add_Module(library,
  3217. &autohinter_module_class)' after library initialization, and Type
  3218. 1 & OpenType/CFF fonts are now hinted.
  3219. CID fonts are not hinted, as they include no charmap and the
  3220. auto-hinter doesn't include `generic' global metrics computations
  3221. yet.
  3222. Now, I need to release this thing to the FreeType 2 source.
  3223. - CHANGES TO THE RENDERER MODULES
  3224. The monochrome and smooth renderers are now in two distinct
  3225. directories, namely `src/raster1' and `src/smooth'. Note that the
  3226. old `src/renderer' is now gone.
  3227. I ditched the 5-gray-levels renderers. Basically, it involved a
  3228. simple #define toggle in 'src/raster1/ftraster.c'.
  3229. FT_Render_Glyph, FT_Outline_Render & FT_Outline_Get_Bitmap now
  3230. select the best renderer available, depending on render mode. If
  3231. the current renderer for a given glyph image format isn't capable
  3232. of supporting the render mode, another one will be found in the
  3233. library's list. This means that client applications do not need
  3234. to switch or set the renderers themselves (as in the latest
  3235. change), they'll get what they want automatically. At last.
  3236. Changed the demo programs accordingly.
  3237. - MAJOR INTERNAL REDESIGN:
  3238. A lot of internal modifications have been performed lately on the
  3239. source in order to provide the following enhancements:
  3240. * More generic module support:
  3241. The FT_Module type is now defined to represent a handle to a
  3242. given module. The file <freetype/ftmodule.h> contains the
  3243. FT_Module_Class definition, as well as the module-loading public
  3244. API.
  3245. The FT_Driver type is still defined, and still represents a
  3246. pointer to a font driver. Note that FT_Add_Driver is replaced
  3247. by FT_Add_Module, FT_Get_Driver by FT_Get_Module, etc.
  3248. * Support for generic glyph image types:
  3249. The FT_Renderer type is a pointer to a module used to perform
  3250. various operations on glyph image.
  3251. Each renderer is capable of handling images in a single format
  3252. (e.g. ft_glyph_format_outline). Its functions are used to:
  3253. - transform an glyph image
  3254. - render a glyph image into a bitmap
  3255. - return the control box (dimensions) of a given glyph image
  3256. The scan converters `ftraster.c' and `ftgrays.c' have been moved
  3257. to the new directory `src/renderer', and are used to provide two
  3258. default renderer modules.
  3259. One corresponds to the `standard' scan-converter, the other to
  3260. the `smooth' one.
  3261. he current renderer can be set through the new function
  3262. FT_Set_Renderer.
  3263. The old raster-related function FT_Set_Raster, FT_Get_Raster and
  3264. FT_Set_Raster_Mode have now disappeared, in favor of the new:
  3265. FT_Get_Renderer
  3266. FT_Set_Renderer
  3267. See the file <freetype/ftrender.h> for more details.
  3268. These changes were necessary to properly support different
  3269. scalable formats in the future, like bi-color glyphs, etc.
  3270. * Glyph loader object:
  3271. A new internal object, called a 'glyph loader' has been
  3272. introduced in the base layer. It is used by all scalable format
  3273. font drivers to load glyphs and composites.
  3274. This object has been created to reduce the code size of each
  3275. driver, as each one of them basically re-implemented its
  3276. functionality.
  3277. See <freetype/internal/ftobjs.h> and the FT_GlyphLoader type for
  3278. more information.
  3279. * FT_GlyphSlot has new fields:
  3280. In order to support extended features (see below), the
  3281. FT_GlyphSlot structure has a few new fields:
  3282. linearHoriAdvance:
  3283. This field gives the linearly scaled (i.e. scaled but
  3284. unhinted) advance width for the glyph, expressed as a 16.16
  3285. fixed pixel value. This is useful to perform WYSIWYG text.
  3286. linearVertAdvance:
  3287. This field gives the linearly scaled advance height for the
  3288. glyph (relevant in vertical glyph layouts only). This is
  3289. useful to perform WYSIWYG text.
  3290. Note that the two above field replace the removed `metrics2'
  3291. field in the glyph slot.
  3292. advance:
  3293. This field is a vector that gives the transformed advance for
  3294. the glyph. By default, it corresponds to the advance width,
  3295. unless FT_LOAD_VERTICAL_LAYOUT was specified when calling
  3296. FT_Load_Glyph or FT_Load_Char.
  3297. bitmap_left:
  3298. This field gives the distance in integer pixels from the
  3299. current pen position to the left-most pixel of a glyph image
  3300. IF IT IS A BITMAP. It is only valid when the `format' field
  3301. is set to `ft_glyph_format_bitmap', for example, after calling
  3302. the new function FT_Render_Glyph.
  3303. bitmap_top:
  3304. This field gives the distance in integer pixels from the
  3305. current pen position (located on the baseline) to the top-most
  3306. pixel of the glyph image IF IT IS A BITMAP. Positive values
  3307. correspond to upwards Y.
  3308. loader:
  3309. This is a new private field for the glyph slot. Client
  3310. applications should not touch it.
  3311. * Support for transforms and direct rendering in FT_Load_Glyph:
  3312. Most of the functionality found in <freetype/ftglyph.h> has been
  3313. moved to the core library. Hence, the following:
  3314. - A transform can be specified for a face through
  3315. FT_Set_Transform. this transform is applied by FT_Load_Glyph
  3316. to scalable glyph images (i.e. NOT TO BITMAPS) before the
  3317. function returns, unless the bit flag FT_LOAD_IGNORE_TRANSFORM
  3318. was set in the load flags.
  3319. - Once a glyph image has been loaded, it can be directly
  3320. converted to a bitmap by using the new FT_Render_Glyph
  3321. function. Note that this function takes the glyph image from
  3322. the glyph slot, and converts it to a bitmap whose properties
  3323. are returned in `face.glyph.bitmap', `face.glyph.bitmap_left'
  3324. and `face.glyph.bitmap_top'. The original native image might
  3325. be lost after the conversion.
  3326. - When using the new bit flag FT_LOAD_RENDER, the FT_Load_Glyph
  3327. and FT_Load_Char functions will call FT_Render_Glyph
  3328. automatically when needed.
  3329. - Reformatted all modules source code in order to get rid of the
  3330. basic data types redefinitions (i.e. `TT_Int' instead of `FT_Int',
  3331. `T1_Fixed' instead of `FT_Fixed'). Hence the format-specific
  3332. prefixes like `TT_', `T1_', `T2_' and `CID_' are only used for
  3333. relevant structures.
  3334. ======================================================================
  3335. OLD CHANGES FOR BETA 7
  3336. - bug-fixed the OpenType/CFF parser. It now loads and displays my
  3337. two fonts nicely, but I'm pretty certain that more testing is
  3338. needed :-)
  3339. - fixed the crummy Type 1 hinter, it now handles accented characters
  3340. correctly (well, the accent is not always well placed, but that's
  3341. another problem..)
  3342. - added the CID-keyed Type 1 driver in `src/cid'. Works pretty well
  3343. for only 13 Kb of code ;-) Doesn't read AFM files though, nor the
  3344. really useful CMAP files..
  3345. - fixed two bugs in the smooth renderer (src/base/ftgrays.c).
  3346. Thanks to Boris Letocha for spotting them and providing a fix.
  3347. - fixed potential `divide by zero' bugs in ftcalc.c.
  3348. - added source code for the OpenType/CFF driver (still incomplete
  3349. though..)
  3350. - modified the SFNT driver slightly to perform more robust header
  3351. checks in TT_Load_SFNT_Header. This prevents certain font files
  3352. (e.g. some Type 1 Multiple Masters) from being incorrectly
  3353. `recognized' as TrueType font files..
  3354. - moved a lot of stuff from the TrueType driver to the SFNT module,
  3355. this allows greater code re-use between font drivers
  3356. (e.g. TrueType, OpenType, Compact-TrueType, etc..)
  3357. - added a tiny segment cache to the SFNT Charmap 4 decoder, in order
  3358. to minimally speed it up..
  3359. - added support for Multiple Master fonts in `type1z'. There is
  3360. also a new file named <freetype/ftmm.h> which defines functions to
  3361. manage them from client applications.
  3362. The new file `src/base/ftmm.c' is also optional to the engine..
  3363. - various formatting changes (e.g. EXPORT_DEF -> FT_EXPORT_DEF) +
  3364. small bug fixes in FT_Load_Glyph, the `type1' driver, etc..
  3365. - a minor fix to the Type 1 driver to let them apply the font matrix
  3366. correctly (used for many oblique fonts..)
  3367. - some fixes for 64-bit systems (mainly changing some FT_TRACE calls
  3368. to use %p instead of %lx). Thanks to Karl Robillard.
  3369. - fixed some bugs in the sbit loader (src/base/sfnt/ttsbit.c) +
  3370. added a new flag, FT_LOAD_CROP_BITMAP to query that bitmaps be
  3371. cropped when loaded from a file (maybe I should move the bitmap
  3372. cropper to the base layer ??).
  3373. - changed the default number of gray levels of the smooth renderer
  3374. to 256 (instead of the previous 128). Of course, the human eye
  3375. can't see any difference ;-)
  3376. - removed TT_MAX_SUBGLYPHS, there is no static limit on the number
  3377. of subglyphs in a TrueType font now..
  3378. ======================================================================
  3379. OLD CHANGES 16 May 2000
  3380. - tagged `BETA-6' in the CVS tree. This one is a serious release
  3381. candidate even though it doesn't incorporate the auto-hinter yet..
  3382. - various obsolete files were removed, and copyright header updated
  3383. - finally updated the standard raster to fix the monochrome
  3384. rendering bug + re-enable support for 5-gray levels anti-aliasing
  3385. (suck, suck..)
  3386. - created new header files, and modified sources accordingly:
  3387. <freetype/fttypes.h>
  3388. - simple FreeType types, without the API
  3389. <freetype/internal/ftmemory.h>
  3390. - definition of memory-management macros
  3391. - added the `DSIG' (OpenType Digital Signature) tag to
  3392. <freetype/tttags.h>
  3393. - light update/cleaning of the build system + changes to the sources
  3394. in order to get rid of _all_ compiler warnings with three
  3395. compilers, i.e:
  3396. gcc with `-ansi -pedantic -Wall -W', Visual C++ with `/W3 /WX' and
  3397. LCC
  3398. IMPORTANT NOTE FOR WIN32-LCC USERS:
  3399. |
  3400. | It seems the C pre-processor that comes with LCC is broken, it
  3401. | doesn't recognize the ANSI standard directives # and ##
  3402. | correctly when one of the argument is a macro. Also,
  3403. | something like:
  3404. |
  3405. | #define F(x) print##x
  3406. |
  3407. | F(("hello"))
  3408. |
  3409. | will get incorrectly translated to:
  3410. |
  3411. | print "hello")
  3412. |
  3413. | by its pre-processor. For this reason, you simply cannot build
  3414. | FreeType 2 in debug mode with this compiler..
  3415. - yet another massive grunt work. I've changed the definition of
  3416. the EXPORT_DEF, EXPORT_FUNC, BASE_DEF & BASE_FUNC macros. These
  3417. now take an argument, which is the function's return value type.
  3418. This is necessary to compile FreeType as a DLL on Windows and
  3419. OS/2. Depending on the compiler used, a compiler-specific keyword
  3420. like __export or __system must be placed before (VisualC++) or
  3421. after (BorlandC++) the type..
  3422. Of course, this needed a lot of changes throughout the source code
  3423. to make it compile again... All cleaned up now, apparently..
  3424. Note also that there is a new EXPORT_VAR macro defined to allow
  3425. the _declaration_ of an exportable public (constant)
  3426. variable. This is the case of the raster interfaces (see
  3427. ftraster.h and ftgrays.h), as well as each module's interface (see
  3428. sfdriver.h, psdriver.h, etc..)
  3429. - new feature: it is now possible to pass extra parameters to font
  3430. drivers when creating a new face object. For now,
  3431. this capability is unused. It could however prove to
  3432. be useful in a near future..
  3433. the FT_Open_Args structure was changes, as well as the internal
  3434. driver interface (the specific `init_face' module function has
  3435. now a different signature).
  3436. - updated the tutorial (not finished though).
  3437. - updated the top-level BUILD document
  3438. - fixed a potential memory leak that could occur when loading
  3439. embedded bitmaps.
  3440. - added the declaration of FT_New_Memory_Face in
  3441. <freetype/freetype.h>, as it was missing from the public header
  3442. (the implementation was already in `ftobjs.c').
  3443. - the file <freetype/fterrors.h> has been seriously updated in order
  3444. to allow the automatic generation of error message tables. See
  3445. the comments within it for more information.
  3446. - major directory hierarchy re-organisation. This was done for two
  3447. things:
  3448. * first, to ease the `manual' compilation of the library by
  3449. requiring at lot less include paths :-)
  3450. * second, to allow external programs to effectively access
  3451. internal data fields. For example, this can be extremely
  3452. useful if someone wants to write a font producer or a font
  3453. manager on top of FreeType.
  3454. Basically, you should now use the 'freetype/' prefix for header
  3455. inclusion, as in:
  3456. #include <freetype/freetype.h>
  3457. #include <freetype/ftglyph.h>
  3458. Some new include sub-directories are available:
  3459. a. the `freetype/config' directory, contains two files used to
  3460. configure the build of the library. Client applications
  3461. should not need to look at these normally, but they can if
  3462. they want.
  3463. #include <freetype/config/ftoption.h>
  3464. #include <freetype/config/ftconfig.h>
  3465. b. the `freetype/internal' directory, contains header files that
  3466. describes library internals. These are the header files that
  3467. were previously found in the `src/base' and `src/shared'
  3468. directories.
  3469. As usual, the build system and the demos have been updated to
  3470. reflect the change..
  3471. Here's a layout of the new directory hierarchy:
  3472. TOP_DIR
  3473. include/
  3474. freetype/
  3475. freetype.h
  3476. ...
  3477. config/
  3478. ftoption.h
  3479. ftconfig.h
  3480. ftmodule.h
  3481. internal/
  3482. ftobjs.h
  3483. ftstream.h
  3484. ftcalc.h
  3485. ...
  3486. src/
  3487. base/
  3488. ...
  3489. sfnt/
  3490. psnames/
  3491. truetype/
  3492. type1/
  3493. type1z/
  3494. Compiling a module is now much easier, for example, the following
  3495. should work when in the TOP_DIR directory on an ANSI build:
  3496. gcc -c -I./include -I./src/base src/base/ftbase.c
  3497. gcc -c -I./include -I./src/sfnt src/sfnt/sfnt.c
  3498. etc..
  3499. (of course, using -Iconfig/<system> if you provide system-specific
  3500. configuration files).
  3501. - updated the structure of FT_Outline_Funcs in order to allow direct
  3502. coordinate scaling within the outline decomposition routine (this
  3503. is important for virtual `on' points with TrueType outlines) +
  3504. updates to the rasters to support this..
  3505. - updated the OS/2 table loading code in `src/sfnt/ttload.c' in
  3506. order to support version 2 of the table (see OpenType 1.2 spec)
  3507. - created `include/tttables.h' and `include/t1tables.h' to allow
  3508. client applications to access some of the SFNT and T1 tables of a
  3509. face with a procedural interface (see `FT_Get_Sfnt_Table') +
  3510. updates to internal source files to reflect the change..
  3511. - some cleanups in the source code to get rid of warnings when
  3512. compiling with the `-Wall -W -ansi -pedantic' options in gcc.
  3513. - debugged and moved the smooth renderer to `src/base/ftgrays.c' and
  3514. its header to `include/ftgrays.h'
  3515. - updated TT_MAX_SUBGLYPHS to 96 as some CJK fonts have composites
  3516. with up to 80 sub-glyphs !! Thanks to Werner
  3517. ======================================================================
  3518. OLD CHANGES - 14-apr-2000
  3519. - fixed a bug in the TrueType glyph loader that prevented the
  3520. correct loading of some CJK glyphs in mingli.ttf
  3521. - improved the standard Type 1 hinter in `src/type1'
  3522. - fixed two bugs in the experimental Type 1 driver in `src/type1z'
  3523. to handle the new XFree86 4.0 fonts (and a few other ones..)
  3524. - the smooth renderer is now complete and supports sub-banding to
  3525. render large glyphs at high speed. However, it is still located
  3526. in `demos/src/ftgrays.c' and should move to the library itself in
  3527. the next beta. NOTE: The smooth renderer doesn't compile in
  3528. stand-alone mode anymore, but this should be fixed RSN..
  3529. - introduced convenience functions to more easily deal with glyph
  3530. images, see `include/ftglyph.h' for more details, as well as the
  3531. new demo program named `demos/src/ftstring.c' that demonstrates
  3532. its use
  3533. - implemented FT_LOAD_NO_RECURSE in both the TrueType and Type 1
  3534. drivers (this is required by the auto-hinter to improve its
  3535. results).
  3536. - changed the raster interface, in order to allow client
  3537. applications to provide their own span-drawing callbacks.
  3538. However, only the smooth renderer supports this. See
  3539. `FT_Raster_Params' in the file `include/ftimage.h'.
  3540. - fixed a small bug in FT_MulFix that caused incorrect transform
  3541. computation!
  3542. - Note: The tutorial is out-of-date.
  3543. ======================================================================
  3544. OLD CHANGES - 12-mar-2000
  3545. - changed the layout of configuration files : now, all ANSI
  3546. configuration files are located in
  3547. `freetype2/config'. System-specific over-rides can be placed in
  3548. `freetype2/config/<system>'.
  3549. - moved all configuration macros to `config/ftoption.h'
  3550. - improvements in the Type 1 driver with AFM support
  3551. - changed the fields in the FT_Outline structure : the old `flags'
  3552. array is re-named `tags', while all ancient flags are encoded into
  3553. a single unsigned int named `flags'.
  3554. - introduced new flags in FT_Outline.flags (see
  3555. ft_outline_.... enums in `ftimage.h').
  3556. - changed outline functions to `FT_Outline_<action>' syntax
  3557. - added a smooth anti-alias renderer to the demonstration programs
  3558. - added Mac graphics driver (thanks Just)
  3559. - FT_Open_Face changed in order to received a pointer to a
  3560. FT_Open_Args descriptor..
  3561. - various cleanups, a few more API functions implemented (see
  3562. FT_Attach_File)
  3563. - updated some docs
  3564. ======================================================================
  3565. OLD CHANGES - 22-feb-2000
  3566. - introduced the `psnames' module. It is used to:
  3567. o convert a Postscript glyph name into the equivalent Unicode
  3568. character code (used by the Type 1 driver(s) to synthesize on
  3569. the fly a Unicode charmap).
  3570. o provide an interface to retrieve the Postscript names of the
  3571. Macintosh, Adobe Standard & Adobe Expert character codes.
  3572. (the Macintosh names are used by the SFNT-module postscript
  3573. names support routines, while the other two tables are used by
  3574. the Type 1 driver(s)).
  3575. - introduced the `type1z' alternate Type 1 driver. This is a (still
  3576. experimental) driver for the Type 1 format that will ultimately
  3577. replace the one in `src/type1'. It uses pattern matching to load
  3578. data from the font, instead of a finite state analyzer. It works
  3579. much better than the `old' driver with `broken' fonts. It is also
  3580. much smaller (under 15 Kb).
  3581. - the Type 1 drivers (both in `src/type1' and `src/type1z') are
  3582. nearly complete. They both provide automatic Unicode charmap
  3583. synthesis through the `psnames' module. No re-encoding vector is
  3584. needed. (note that they still leak memory due to some code
  3585. missing, and I'm getting lazy).
  3586. Trivial AFM support has been added to read kerning information but
  3587. wasn't exactly tested as it should ;-)
  3588. - The TrueType glyph loader has been seriously rewritten (see the
  3589. file `src/truetype/ttgload.c'. It is now much, much simpler as
  3590. well as easier to read, maintain and understand :-) Preliminary
  3591. versions introduced a memory leak that has been reported by Jack
  3592. Davis, and is now fixed..
  3593. - introduced the new `ft_glyph_format_plotter', used to represent
  3594. stroked outlines like Windows `Vector' fonts, and certain Type 1
  3595. fonts like `Hershey'. The corresponding raster will be written
  3596. soon.
  3597. - FT_New_Memory_Face is gone. Likewise, FT_Open_Face has a new
  3598. interface that uses a structure to describe the input stream, the
  3599. driver (if required), etc..
  3600. TODO
  3601. - Write FT_Get_Glyph_Bitmap and FT_Load_Glyph_Bitmap
  3602. - Add a function like FT_Load_Character(face, char_code, load_flags)
  3603. that would really embed a call to FT_Get_Char_Index then
  3604. FT_Load_Glyph to ease developer's work.
  3605. - Update the tutorial!
  3606. - consider adding support for Multiple Master fonts in the Type 1
  3607. drivers.
  3608. - Test the AFM routines of the Type 1 drivers to check that kerning
  3609. information is returned correctly.
  3610. - write a decent auto-gridding component !! We need this to release
  3611. FreeType 2.0 gold !
  3612. less urgent needs:
  3613. - add a CFF/Type2 driver
  3614. - add a BDF driver
  3615. - add a FNT/PCF/HBF driver
  3616. - add a Speedo driver from the X11 sources
  3617. ======================================================================
  3618. OLDER CHANGES - 27-jan-2000
  3619. - updated the `sfnt' module interface to allow several SFNT-based
  3620. drivers to co-exist peacefully
  3621. - updated the `T1_Face' type to better separate Postscript font
  3622. content from the rest of the FT_Face structure. Might be used
  3623. later by the CFF/Type2 driver..
  3624. - added an experimental replacement Type 1 driver featuring advanced
  3625. (and speedy) pattern matching to retrieve the data from postscript
  3626. fonts.
  3627. - very minor changes in the implementation of FT_Set_Char_Size and
  3628. FT_Set_Pixel_Sizes (they now implement default to lighten the font
  3629. driver's code).
  3630. ======================================================================
  3631. OLD MESSAGE
  3632. This file summarizes the changes that occurred since the last `beta'
  3633. of FreeType 2. Because the list is important, it has been divided into
  3634. separate sections:
  3635. Table Of Contents:
  3636. I High-Level Interface (easier !)
  3637. II Directory Structure
  3638. III Glyph Image Formats
  3639. IV Build System
  3640. V Portability
  3641. VI Font Drivers
  3642. ----------------------------------------------------------------------
  3643. High-Level Interface:
  3644. The high-level API has been considerably simplified. Here is how:
  3645. - resource objects have disappeared. this means that face objects
  3646. can now be created with a single function call (see FT_New_Face
  3647. and FT_Open_Face)
  3648. - when calling either FT_New_Face & FT_Open_Face, a size object
  3649. and a glyph slot object are automatically created for the face,
  3650. and can be accessed through `face->glyph' and `face->size' if
  3651. one really needs to. In most cases, there's no need to call
  3652. FT_New_Size or FT_New_Glyph.
  3653. - similarly, FT_Load_Glyph now only takes a `face' argument
  3654. (instead of a glyph slot and a size). Also, its `result'
  3655. parameter is gone, as the glyph image type is returned in the
  3656. field `face->glyph.format'
  3657. - the list of available charmaps is directly accessible through
  3658. `face->charmaps', counting `face->num_charmaps' elements. Each
  3659. charmap has an 'encoding' field which specifies which known
  3660. encoding it deals with. Valid values are, for example:
  3661. ft_encoding_unicode (for ASCII, Latin-1 and Unicode)
  3662. ft_encoding_apple_roman
  3663. ft_encoding_sjis
  3664. ft_encoding_adobe_standard
  3665. ft_encoding_adobe_expert
  3666. other values may be added in the future. Each charmap still
  3667. holds its `platform_id' and `encoding_id' values in case the
  3668. encoding is too exotic for the current library
  3669. ----------------------------------------------------------------------
  3670. Directory Structure:
  3671. Should seem obvious to most of you:
  3672. freetype/
  3673. config/ -- configuration sub-makefiles
  3674. ansi/
  3675. unix/ -- platform-specific configuration files
  3676. win32/
  3677. os2/
  3678. msdos/
  3679. include/ -- public header files, those to be included
  3680. directly by client apps
  3681. src/ -- sources of the library
  3682. base/ -- the base layer
  3683. sfnt/ -- the sfnt `driver' (see the drivers section
  3684. below)
  3685. truetype/ -- the truetype driver
  3686. type1/ -- the type1 driver
  3687. shared/ -- some header files shared between drivers
  3688. demos/ -- demos/tools
  3689. docs/ -- documentation (a bit empty for now)
  3690. ----------------------------------------------------------------------
  3691. Glyph Image Formats:
  3692. Drivers are now able to register new glyph image formats within the
  3693. library. For now, the base layer supports of course bitmaps and
  3694. vector outlines, but one could imagine something different like
  3695. colored bitmaps, bi-color vectors or whatever else (Metafonts anyone
  3696. ??).
  3697. See the file `include/ftimage.h'. Note also that the type
  3698. FT_Raster_Map is gone, and is now replaced by FT_Bitmap, which
  3699. should encompass all known bitmap types.
  3700. Each new image format must provide at least one `raster', i.e. a
  3701. module capable of transforming the glyph image into a bitmap. It's
  3702. also possible to change the default raster used for a given glyph
  3703. image format.
  3704. The default outline scan-converter now uses 128 levels of grays by
  3705. default, which tends to smooth many things. Note that the demo
  3706. programs have been updated significantly in order to display these..
  3707. ----------------------------------------------------------------------
  3708. Build system:
  3709. You still need GNU Make to build the library. The build system has
  3710. been very seriously re-vamped in order to provide things like :
  3711. - automatic host platform detection (reverting to 'config/ansi' if
  3712. it is not detected, with pseudo-standard compilation flags)
  3713. - the ability to compile from the Makefiles with very different and
  3714. exotic compilers. Note that linking the library can be difficult
  3715. for some platforms.
  3716. For example, the file `config/win32/lcclib.bat' is invoked by the
  3717. build system to create the `.lib' file with LCC-Win32 because its
  3718. librarian has too many flaws to be invoked directly from the
  3719. Makefile.
  3720. Here's how it works:
  3721. - the first time you type `make', the build system runs a series of
  3722. sub-makefiles in order to detect your host platform. It then
  3723. dumps what it found, and creates a file called `config.mk' in the
  3724. current directory. This is a sub-Makefile used to define many
  3725. important Make variables used to build the library.
  3726. - the second time, the build system detects the `config.mk' then use
  3727. it to build the library. All object files go into 'obj' by
  3728. default, as well as the library file, but this can easily be
  3729. changed.
  3730. Note that you can run `make setup' to force another host platform
  3731. detection even if a `config.mk' is present in the current
  3732. directory. Another solution is simply to delete the file, then
  3733. re-run make.
  3734. Finally, the default compiler for all platforms is gcc (for now,
  3735. this will hopefully changed in the future). You can however specify
  3736. a different compiler by specifying it after the 'setup' target as
  3737. in:
  3738. gnumake setup lcc on Win32 to use the LCC compiler
  3739. gnumake setup visualc on Win32 to use Visual C++
  3740. See the file `config/<system>/detect.mk' for a list of supported
  3741. compilers for your platforms.
  3742. It should be relatively easy to write new detection rules files and
  3743. config.mk..
  3744. Finally, to build the demo programs, go to `demos' and launch GNU
  3745. Make, it will use the `config.mk' in the top directory to build the
  3746. test programs..
  3747. ----------------------------------------------------------------------
  3748. Portability:
  3749. In the previous beta, a single FT_System object was used to
  3750. encompass all low-level operations like thread synchronisation,
  3751. memory management and i/o access. This has been greatly simplified:
  3752. - thread synchronisation has been dropped, for the simple reason
  3753. that the library is already re-entrant, and that if you really
  3754. need two threads accessing the same FT_Library, you should
  3755. really synchronize access to it yourself with a simple mutex.
  3756. - memory management is performed through a very simple object
  3757. called `FT_Memory', which really is a table containing a table
  3758. of pointers to functions like malloc, realloc and free as well
  3759. as some user data (closure).
  3760. - resources have disappeared (they created more problems than they
  3761. solved), and i/o management have been simplified greatly as a
  3762. result. Streams are defined through FT_Stream objects, which
  3763. can be either memory-based or disk-based.
  3764. Note that each face has its own stream, which is closed only
  3765. when the face object is destroyed. Hence, a function like
  3766. TT_Flush_Face in 1.x cannot be directly supported. However, if
  3767. you really need something like this, you can easily tailor your
  3768. own streams to achieve the same feature at a lower level (and
  3769. use FT_Open_Face instead of FT_New_Face to create the face).
  3770. See the file `include/ftsystem.h' for more details, as well as the
  3771. implementations found in `config/unix' and `config/ansi'.
  3772. ----------------------------------------------------------------------
  3773. Font Drivers:
  3774. The Font Driver interface has been modified in order to support
  3775. extensions & versioning.
  3776. The list of the font drivers that are statically linked to the
  3777. library at compile time is managed through a new configuration file
  3778. called `config/<platform>/ftmodule.h'.
  3779. This file is autogenerated when invoking `make modules'. This
  3780. target will parse all sub-directories of 'src', looking for a
  3781. `module.mk' rules file, used to describe the driver to the build
  3782. system.
  3783. Hence, one should call `make modules' each time a font driver is
  3784. added or removed from the `src' directory.
  3785. Finally, this version provides a `pseudo-driver' in `src/sfnt'.
  3786. This driver doesn't support font files directly, but provides
  3787. services used by all TrueType-like font drivers. Hence, its code is
  3788. shared between the TrueType & OpenType font formats, and possibly
  3789. more formats to come if we're lucky..
  3790. ----------------------------------------------------------------------
  3791. Extensions support:
  3792. The extensions support is inspired by the one found in 1.x.
  3793. Now, each font driver has its own `extension registry', which lists
  3794. which extensions are available for the font faces managed by the
  3795. driver.
  3796. Extension ids are now strings, rather than 4-byte tags, as this is
  3797. usually more readable.
  3798. Each extension has:
  3799. - some data, associated to each face object
  3800. - an interface (table of function pointers)
  3801. An extension that is format-specific should simply register itself
  3802. to the correct font driver. Here is some example code:
  3803. // Registering an extensions
  3804. //
  3805. FT_Error FT_Init_XXXX_Extension( FT_Library library )
  3806. {
  3807. FT_DriverInterface* tt_driver;
  3808. driver = FT_Get_Driver( library, "truetype" );
  3809. if (!driver) return FT_Err_Unimplemented_Feature;
  3810. return FT_Register_Extension( driver, &extension_class );
  3811. }
  3812. // Implementing the extensions
  3813. //
  3814. FT_Error FT_Proceed_Extension_XXX( FT_Face face )
  3815. {
  3816. FT_XXX_Extension ext;
  3817. FT_XXX_Extension_Interface ext_interface;
  3818. ext = FT_Get_Extension( face, "extensionid", &ext_interface );
  3819. if (!ext) return error;
  3820. return ext_interface->do_it(ext);
  3821. }
  3822. ------------------------------------------------------------------------
  3823. Copyright (C) 2000-2023 by
  3824. David Turner, Robert Wilhelm, and Werner Lemberg.
  3825. This file is part of the FreeType project, and may only be used,
  3826. modified, and distributed under the terms of the FreeType project
  3827. license, LICENSE.TXT. By continuing to use, modify, or distribute this
  3828. file you indicate that you have read the license and understand and
  3829. accept it fully.
  3830. Local Variables:
  3831. version-control: never
  3832. coding: utf-8
  3833. End:
  3834. --- end of CHANGES ---