CHANGES 206 KB

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