ChangeLog.21 321 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438
  1. 2005-06-08 Werner Lemberg <wl@gnu.org>
  2. * Version 2.1.10 released.
  3. ==========================
  4. * src/pcf/readme: Renamed to...
  5. * src/pcf/README: This.
  6. 2005-06-07 Detlef Würkner <TetiSoft@apg.lahn.de>
  7. * builds/amiga/*: Added copyright notes, reworked some comments.
  8. 2005-06-05 Werner Lemberg <wl@gnu.org>
  9. * Add copyright notices to all files which don't have one.
  10. * docs/license.txt: Renamed to...
  11. * docs/LICENSE.TXT: This.
  12. * docs/FTL.txt: Renamed to...
  13. * docs/FTL.TXT: This.
  14. * docs/GPL.txt: Renamed to...
  15. * docs/GPL.TXT: This.
  16. * docs/PATENTS: Slightly reworded. Suggested by Sylvain Beucler
  17. <beuc@gnu.org>.
  18. 2005-06-04 Werner Lemberg <wl@gnu.org>
  19. * include/freetype/ftimage.h (FT_Outline_MoveToFunc,
  20. FT_Outline_LineToFunc, FT_Outline_ConicToFunc,
  21. FT_Outline_CubicToFunc, FT_Raster_RenderFunc),
  22. include/freetype/ftrender.h (FT_Glyph_TransformFunc,
  23. FT_Renderer_RenderFunc, FT_Renderer_TransformFunc): Don't use
  24. `const' to stay compatible with FreeType 2.1.9.
  25. 2005-06-01 Adam D. Moss <adam@gimp.org>
  26. * src/base/ftstroke.c (ft_stroker_inside): Revert `sigma' patch from
  27. 2004-07-11; this gives much better results under normal
  28. circumstances.
  29. 2005-05-30 Chia I Wu <b90201047@ntu.edu.tw>
  30. * include/freetype/ftbitmap.h (FT_Bitmap_Embolden): Minor
  31. documentation improvements.
  32. * include/freetype/ftoutln.h (FT_Outline_Embolden): Fix typos.
  33. * src/base/ftbitmap.c (FT_Bitmap_Embolden): Add support for bitmap
  34. of pixel_mode FT_PIXEL_MODE_GRAY2 or FT_PIXEL_MODE_GRAY4.
  35. If xstr is larger than 8 and bitmap is of pixel_mode
  36. FT_PIXEL_MODE_MONO, set xstr to 8 instead of returning error.
  37. 2005-05-29 Chia I Wu <b90201047@ntu.edu.tw>
  38. * src/base/ftbitmap.c (FT_Bitmap_Embolden): Fix emboldening bitmap
  39. of mode FT_PIXEL_MODE_GRAY. Also add support for mode
  40. FT_PIXEL_MODE_LCD and FT_PIXEL_MODE_LCD_V.
  41. (ft_bitmap_assure_buffer): FT_PIXEL_MODE_LCD and FT_PIXEL_MODE_LCD_V
  42. should have ppb (pixel per byte) 1.
  43. Zero the padding when there's no need to allocate memory.
  44. * src/base/ftsynth.c (FT_GlyphSlot_Embolden): Handle slot->advance
  45. too.
  46. More suited emboldening strength.
  47. 2005-05-28 Chia I Wu <b90201047@ntu.edu.tw>
  48. * src/base/ftbitmap.c (FT_Bitmap_Embolden): Handle negative pitch.
  49. Handle FT_PIXEL_MODE_GRAY with num_gray != 256.
  50. Improve speed for FT_PIXEL_MODE_GRAY.
  51. (ft_bitmap_assure_buffer): Accept FT_PIXEL_MODE_LCD and
  52. FT_PIXEL_MODE_LCD_V.
  53. 2005-05-27 Chia I Wu <b90201047@ntu.edu.tw>
  54. * src/base/ftsynth.c (FT_GlyphSlot_Embolden): Initialize `error'.
  55. * src/base/ftobjs.c (ft_cmap_done_internal): New function.
  56. (FT_CMap_Done): Remove cmap from cmap list.
  57. (destroy_charmaps, FT_CMap_New): Don't call FT_CMap_Done but
  58. ft_cmap_done_internal.
  59. 2005-05-26 Werner Lemberg <wl@gnu.org>
  60. * docs/GPL.txt: Update postal address of FSF.
  61. 2005-05-26 Chia I Wu <b90201047@ntu.edu.tw>
  62. * include/freetype/ftbitmap.h (FT_Bitmap_Embolden): Improve
  63. documentation.
  64. * src/base/ftsynth.c (FT_BOLD_THRESHOLD): Removed.
  65. (FT_GlyphSlot_Embolden): Check whether slot is bitmap owner.
  66. Always modify the metrics.
  67. 2005-05-24 Werner Lemberg <wl@gnu.org>
  68. * docs/CHANGES: Updated.
  69. 2005-05-24 Chia I Wu <b90201047@ntu.edu.tw>
  70. * include/freetype/ftbitmap.h (FT_Bitmap_Embolden): New declaration.
  71. * include/freetype/ftoutln.h (FT_Outline_Embolden): New declaration.
  72. * src/base/ftbitmap.c (ft_bitmap_assure_buffer): New auxiliary
  73. function.
  74. (FT_Bitmap_Embolden): New function.
  75. * src/base/ftoutln.c (FT_Outline_Embolden): New function.
  76. * src/base/ftsynth.c: Don't include FT_INTERNAL_CALC_H and
  77. FT_TRIGONOMETRY_H but FT_BITMAP_H.
  78. (FT_GlyphSlot_Embolden): Use FT_Outline_Embolden or
  79. FT_Bitmap_Embolden.
  80. 2005-05-24 Werner Lemberg <wl@gnu.org>
  81. * configure: Always remove config.mk, builds/unix/unix-def.mk, and
  82. builds/unix/unix-cc.mk. This fixes repeated calls of the script.
  83. Reported by Nelson Beebe and Behdad Esfahbod.
  84. * README.CVS: Mention file permissions.
  85. 2005-05-23 Werner Lemberg <wl@gnu.org>
  86. * builds/amiga/makefile.os4 (WARNINGS), builds/compiler/gcc-dev.mk
  87. (CFLAGS), builds/compiler/gcc.mk (CFLAGS): Remove
  88. -fno-strict-aliasing.
  89. * src/sfnt/rules.mk (SFNT_DRV_SRC): Don't include ttsbit0.c --
  90. it is currently loaded from ttsbit.c.
  91. 2005-05-23 Behdad Esfahbod <behdad@cs.toronto.edu>
  92. Say you have `(Foo*)x' and want to assign, pass, or return it as
  93. `(Bar*)'. If you simply say `x' or `(Bar*)x', then the C compiler
  94. would warn you that type casting incompatible pointer types breaks
  95. strict-aliasing. The solution is to cast to `(void*)' instead which
  96. is the generic pointer type, so the compiler knows that it should
  97. make no strict-aliasing assumption on `x'. But the problem with
  98. `(void*)x' is that seems like in C++, unlike C, `void*' is not a
  99. generic pointer type and assigning `void*' to `Bar*' without a cast
  100. causes an error. The solution is to cast to `Bar*' too, with
  101. `(Bar*)(void*)x' as the result -- this is what the patch does.
  102. * include/freetype/cache/ftccache.h (FTC_CACHE_LOOKUP_CMP),
  103. include/freetype/cache/ftcmru.h (FTC_MRULIST_LOOKUP_CMP): Remove
  104. cast on lvalue, use a temporary pointer instead.
  105. Cast temporarily to (void*) to not break strict aliasing.
  106. * include/freetype/internal/ftmemory.h (FT_MEM_ALLOC,
  107. FT_MEM_REALLOC, FT_MEM_QALLOC, FT_MEM_QREALLOC, FT_MEM_FREE),
  108. src/base/ftglyph.c (FT_Glyph_To_Bitmap): Cast temporarily to (void*)
  109. to not break strict aliasing.
  110. * src/base/ftinit.c (FT_USE_MODULE): Fix wrong type information.
  111. * builds/unix/configure.ac (XX_CFLAGS): Remove -fno-strict-aliasing.
  112. 2005-05-23 David Turner <dturner@freetype.org>
  113. Fix Savannah bug #12213 (incorrect behaviour of the cache sub-system
  114. in low-memory conditions).
  115. * include/freetype/cache/ftccache.h (FTC_CACHE_TRYLOOP,
  116. FTC_CACHE_TRYLOOP_END): New macros.
  117. * src/cache/ftccache.c (FTC_Cache_NewNode), src/cache/ftcsbits.c
  118. (ftc_snode_compare): Use FT_CACHE_TRYLOOP and FTC_CACHE_TRYLOOP_END.
  119. 2005-05-23 Werner Lemberg <wl@gnu.org>
  120. * src/base/rules.mk (BASE_SRC): Don't add ftsynth.c here but...
  121. (BASE_EXT_SRC): Here.
  122. 2005-05-22 Werner Lemberg <wl@gnu.org>
  123. * src/base/ftrfork.c (raccess_guess_apple_generic): Mark
  124. `version_number' and `entry_length' as unused.
  125. (raccess_guess_linux_double_from_file_name): Remove `memory'.
  126. (raccess_make_file_name): Mark `error' as unused.
  127. * src/bdf/bdflib.c (_bdf_parse_properties): Remove `memory'.
  128. * src/cid/cidobjs.c (cid_face_init): Remove `psnames'.
  129. * src/sfnt/sfobjs.c (sfnt_load_face): Remove `memory'.
  130. * src/truetype/ttgxvar.c (ft_var_readpackedpoints,
  131. ft_var_readpackeddeltas, ft_var_load_avar): Mark `error' as unused.
  132. * src/base/rules.mk (BASE_SRC): Add ftsynth.c.
  133. 2005-05-21 David Turner <david@freetype.org>
  134. * src/base/ftsynth.c (FT_GlyphSlot_Embolden): Fix a bug that
  135. produced unpleasant artefacts when trying to embolden very sharp
  136. corners.
  137. 2005-05-20 Werner Lemberg <wl@gnu.org>
  138. * docs/CHANGES: Updated.
  139. 2005-05-20 Chia I Wu <b90201047@ntu.edu.tw>
  140. * src/base/ftbitmap.c: Don't include FT_FREETYPE_H and FT_IMAGE_H
  141. but FT_BITMAP_H.
  142. (FT_Bitmap_Copy): New function (from ftglyph.c).
  143. * include/freetype/ftbitmap.h (FT_Bitmap_Copy): New public
  144. definition.
  145. * src/base/ftglyph.c: Include FT_BITMAP_H.
  146. (ft_bitmap_copy): Move to ftbitmap.c.
  147. (ft_bitmap_glyph_init): Remove `memory' variable.
  148. Create new bitmap object if FT_GLYPH_OWN_BITMAP isn't set.
  149. (ft_bitmap_glyph_copy): Use FT_Bitmap_Copy.
  150. (ft_bitmap_glyph_done): Use FT_Bitmap_Done.
  151. (ft_outline_glyph_init): Use FT_Outline_Copy.
  152. * src/base/ftoutln.c (FT_Outline_Copy): Handle source == target.
  153. (FT_Outline_Done_Internal): Check for valid `memory' pointer.
  154. (FT_Outline_Translate, FT_Outline_Reverse, FT_Outline_Render,
  155. FT_Outline_Transform): Check for valid `outline' pointer.
  156. * src/base/ftobjs.c (FT_New_GlyphSlot): Prepend glyph slot to
  157. face->glyph, otherwise a new second glyph slot cannot be created.
  158. (FT_Done_GlyphSlot): Fix memory leak.
  159. (FT_Open_Face): Updated -- face->glyph is already managed by
  160. FT_New_GlyphSlot.
  161. * src/type42/t42objs.c (T42_GlyphSlot_Done): Updated.
  162. 2005-05-20 Kirill Smelkov <kirr@mns.spb.ru>
  163. * include/freetype/ftimage.h (FT_Raster_Params),
  164. include/freetype/ftoutln.h (FT_Outline_Translate,
  165. FT_Outline_Transform), src/base/ftoutln.c (FT_Outline_Translate,
  166. FT_Outline_Transform): Decorate parameters with `const' where
  167. appropriate.
  168. Update all callers.
  169. * src/raster/ftraster.c (ft_black_reset), src/smooth/ftgrays.c
  170. (gray_raster_reset): Remove `const' from `pool_base' argument.
  171. 2005-05-18 Kirill Smelkov <kirr@mns.spb.ru>
  172. * src/raster/ftmisc.h: New file. Only needed if ftraster.c is
  173. compiled as stand-alone.
  174. * src/raster/ftraster.c: Add comment how to compile as stand-alone.
  175. s/FT_CONFIG_OPTION_STATIC_RASTER/FT_STATIC_RASTER/.
  176. s/TT_STATIC_RASTER/FT_STATIC_RASTER/.
  177. [_STANDALONE_]: Include ftimage.h and ftmisc.h.
  178. (FT_TRACE1, FT_TRACE6, ft_memset, FT_MEM_ZERO): Define
  179. conditionally.
  180. (Render_Glyph, Render_Gray_Glyph): Return Raster_Err_None (or
  181. Raster_Err_Unsupported).
  182. (ft_black_new) [_STANDALONE_]: Fix type of `the_raster'.
  183. (ft_black_init, ft_black_reset, ft_black_set_mode, ft_black_render):
  184. Use `ras', not `raster'.
  185. (ft_black_done): Use FT_UNUSED_RASTER.
  186. (Horizontal_Sweep_Init, Horizontal_Sweep_Step,
  187. Horizontal_Gray_Sweep_Span): Use FT_UNUSED_RASTER.
  188. 2005-05-18 Werner Lemberg <wl@gnu.org>
  189. * docs/announce: Start updating.
  190. * docs/CHANGES: Updated.
  191. 2005-05-16 Vitaliy Pasternak <v_a_pasternak@mail.ru>
  192. * builds/win32/visualc/freetype.vcproj: Updated.
  193. Exclude debug info for `Release' versions to reduce library size.
  194. 2005-05-16 Werner Lemberg <wl@gnu.org>
  195. * src/base/ftobjs.c (FT_Open_Face): Make it work as documented, this
  196. is, ignore `aface' completely if face_index < 0. Reported by David
  197. Osborn <spam@habitualhiatus.com>.
  198. 2005-05-16 Kirill Smelkov <kirr@mns.spb.ru>
  199. * include/freetype/ftimage.h (FT_Outline_MoveToFunc,
  200. FT_Outline_LineTo_Func, FT_Outline_ConicToFunc,
  201. FT_Outline_CubicToFunc), src/smooth/ftgrays.c (gray_render_conic,
  202. gray_render_cubic, gray_move_to, gray_line_to, gray_conic_to,
  203. gray_cubic_to, gray_render_span, gray_sweep): Decorate parameters
  204. with `const' where appropriate.
  205. 2005-05-11 Kirill Smelkov <kirr@mns.spb.ru>
  206. * include/freetype/ftimage.h (FT_Raster_RenderFunc),
  207. include/freetype/ftrender.h (FT_Glyph_TransformFunc,
  208. FT_Renderer_Render_Func, FT_Renderer_TransformFunc),
  209. src/base/ftglyph.c (ft_outline_glyph_transform),
  210. src/raster/ftrend1.c (ft_raster1_transform, ft_raster1_render),
  211. src/smooth/ftgrays.c (FT_Outline_Decompose, gray_raster_render),
  212. src/smooth/ftsmooth.c (ft_smooth_transform,
  213. ft_smooth_render_generic, ft_smooth_render, ft_smooth_render_lcd,
  214. ft_smooth_render_lcd_v): Decorate parameters with `const' where
  215. appropriate.
  216. * src/raster/ftraster.c (RASTER_RENDER_POOL): Removed. Obsolete.
  217. (ft_black_render): Decorate parameters with `const' where
  218. appropriate.
  219. 2005-05-11 Werner Lemberg <wl@gnu.org>
  220. * src/sfnt/ttcmap.c (tt_cmap4_set_range): Fix typo (FT_PEEK_SHORT ->
  221. FT_PEEK_USHORT) which caused crashes. Reported by Ismail Donmez
  222. <ismail@kde.org.tr>.
  223. 2005-05-08 Werner Lemberg <wl@gnu.org>
  224. * include/freetype/internal/ftserv.h (FT_FACE_FIND_GLOBAL_SERVICE)
  225. [__cplusplus]: Fix typo.
  226. 2005-05-07 Werner Lemberg <wl@gnu.org>
  227. Handle unsorted SFNT type 4 cmaps correctly (reported by Dirck
  228. Blaskey <listtarget@danbala.com>).
  229. * src/sfnt/ttcmap.h (TT_CMap): Add member `unsorted'.
  230. * src/sfnt/ttcmap.c: Use SFNT_Err_Ok where appropriate.
  231. (tt_cmap0_validate, tt_cmap2_validate, tt_cmap6_validate,
  232. tt_cmap8_validate, tt_cmap10_validate, tt_cmap12_validate): Use
  233. `FT_Error' as return type.
  234. (tt_cmap4_validate): Use `FT_Error' as return type.
  235. Return error code for unsorted cmap.
  236. (tt_cmap4_char_index, tt_cmap4_char_next): Use old code for unsorted
  237. cmaps.
  238. (tt_face_build_cmaps): Set `unsorted' variable in cmap.
  239. 2005-05-07 Werner Lemberg <wl@gnu.org>
  240. * src/truetype/ttpload.c (tt_face_get_location): Fix typo.
  241. 2005-05-06 Werner Lemberg <wl@gnu.org>
  242. * src/cff/cffobjs.c (cff_face_init): Set ppem value in top
  243. dictionary for SFNT-based CFF.
  244. 2005-05-05 Werner Lemberg <wl@gnu.org>
  245. Handle malformed `loca' table entries.
  246. * docs/TODO: Add some bugs which should be fixed.
  247. * include/freetype/internal/tttypes.h (TT_FaceRec): Add `glyf_len'
  248. element.
  249. * src/truetype/ttpload.c (tt_face_load_loca): Get length of `glyf'
  250. table.
  251. (tt_face_get_location): Fix computation of `asize' for malformed
  252. `loca' entries.
  253. 2005-05-01 David Turner <david@freetype.org>
  254. * Jamfile: Remove `otvalid' from the list of compiled modules.
  255. * include/freetype/internal/ftserv.h: Add compiler pragmas to get
  256. rid of annoying warnings with Visual C++ compiler in maximum warning
  257. mode.
  258. * src/autofit/afhints.c, src/autofit/aflatin.c, src/base/ftstroke.c,
  259. src/bdf/bdfdrivr.c, src/cache/ftcbasic.c, src/cache/ftccmap.c,
  260. src/cache/ftcmanag.c, src/cff/cffload.c, src/cid/cidload.c,
  261. src/lzw/zopen.c, src/otvalid/otvgdef.c, src/pcf/pcfread.c,
  262. src/sfnt/sfobjs.c, src/truetype/ttgxvar.c: Remove compiler warnings.
  263. 2005-04-28 Werner Lemberg <wl@gnu.org>
  264. * docs/TODO: Updated.
  265. 2005-04-24 Werner Lemberg <wl@gnu.org>
  266. * src/otvalid/otvcommn.c
  267. (otv_GSUBGPOS_have_MarkAttachmentType_flag): Handle table == 0.
  268. 2005-04-16 Werner Lemberg <wl@gnu.org>
  269. * src/cff/cffobjs.c (cff_face_init): Set default upem value in top
  270. font dict also.
  271. Handle font matrix settings in subfonts.
  272. * src/cff/cffgload.c (cff_slot_load): Use the correct font matrix
  273. for CID-keyed fonts with subfonts.
  274. * docs/formats.txt: Updated.
  275. 2005-04-14 Kirill Smelkov <kirr@mns.spb.ru>
  276. * include/freetype/freetype.h (FT_Vector_Transform),
  277. include/freetype/ftimage.h (FT_Raster_Params),
  278. include/freetype/ftoutln.h, src/base/ftoutln.c (FT_Outline_Get_CBox,
  279. FT_Outline_Copy, FT_Outline_Transform, FT_Vector_Transform,
  280. FT_Outline_Get_Bitmap), src/raster/ftraster.c (ft_black_render),
  281. src/smooth/ftgrays.c (gray_raster_render): Decorate parameters with
  282. `const' where appropriate.
  283. 2005-04-14 Werner Lemberg <wl@gnu.org>
  284. * src/type1/t1load.c (parse_charstrings): Catch this non-standard
  285. beginning of the /CharStrings dictionary:
  286. /CharStrings 118 dict def
  287. Private begin
  288. CharStrings begin
  289. * src/sfnt/ttsbit0.c (tt_sbit_decoder_load_image): Fix arguments
  290. to call of tt_sbit_decoder_load_bitmap.
  291. 2005-04-13 Werner Lemberg <wl@gnu.org>
  292. * docs/TODO: Updated.
  293. * autogen.sh: Use `--force' for all commands.
  294. 2005-04-09 Werner Lemberg <wl@gnu.org>
  295. * src/pshinter/pshalgo.c (ps_hints_apply): Change scaling values
  296. only if `fitted' is not zero.
  297. 2005-04-06 Werner Lemberg <wl@gnu.org>
  298. * src/truetype/ttgload.c (tt_face_get_metrics) [FT_OPTIMIZE_MEMORY]:
  299. Fix typo which sometimes causes wrong metrics for the last glyph.
  300. 2005-04-04 David Turner <david@freetype.org>
  301. * devel/ftoption.h, include/freetype/config/ftoption.h
  302. (FT_OPTIMIZE_MEMORY): Comment out this macro for the upcoming 2.1.10
  303. release.
  304. (*_CHESTER_*): Removed. No longer used.
  305. * src/autofit/afhints.c (af_axis_hints_new_segment,
  306. af_axis_hints_new_edge): Small tweak to use less heap memory.
  307. 2005-04-03 Werner Lemberg <wl@gnu.org>
  308. * src/type1/t1parse.c (T1_New_Parser): Relax the check for a valid
  309. first line in the font.
  310. 2005-04-03 Werner Lemberg <wl@gnu.org>
  311. * docs/CHANGES, include/freetype/freetype.h: Improve documentation
  312. of FT_Set_Pixel_Sizes and FT_Set_Char_Size.
  313. 2005-03-26 Detlef Würkner <TetiSoft@apg.lahn.de>
  314. * builds/amiga/src/base/ftsystem.c (ft_amiga_stream_io): Fix buffer
  315. offsets after a large read.
  316. 2005-03-26 Werner Lemberg <wl@gnu.org>
  317. * src/autofit/afglobal.c (af_face_globals_get_metrics):
  318. s/index/gidx/.
  319. * src/sfnt/ttsbit0.c (tt_sbit_decoder_load_image): Fix compiler
  320. warnings.
  321. * src/sfnt/rules.mk (SFNT_DRV_SRC): Add ttsbit0.c.
  322. * src/sfnt/ttsbit0.h: Dummy file for build with `make'.
  323. 2005-03-26 Detlef Würkner <TetiSoft@apg.lahn.de>
  324. Update of the Amiga port.
  325. * builds/amiga/makefile, builds/amiga/makefile.os4,
  326. builds/amiga/smakefile: Included the base extension files
  327. (ftbitmap.c, ftotval.c, ftpfr.c, ftstroke.c, ftxf86.c).
  328. 2005-03-25 Detlef Würkner <TetiSoft@apg.lahn.de>
  329. Update of the Amiga port.
  330. * builds/amiga/makefile, builds/amiga/smakefile: Handle new modules.
  331. * builds/amiga/makefile.os4: Makefile for AmigaOS4 SDK.
  332. * builds/amiga/README: Updated.
  333. * builds/amiga/include/freetype/config/ftconfig.h: Handle gcc for
  334. AmigaOS4.
  335. * builds/amiga/include/freetype/config/ftmodule.h: Handle new
  336. modules.
  337. * builds/amiga/src/base/ftdebug.c: Updated to current version of
  338. default ftdebug.c.
  339. Add various include files and macros to have proper support for
  340. both AmigaOS4 and older AmigaOS versions.
  341. Don't declare KVPrintF explicitly.
  342. Replace getenv with GetVar.
  343. Actually enable debugging code.
  344. * builds/amiga/src/base/ftsystem.c: Major rewrite.
  345. 2005-03-23 Werner Lemberg <wl@gnu.org>
  346. * tests/*: Removed.
  347. 2005-03-23 Werner Lemberg <wl@gnu.org>
  348. * docs/CHANGES, docs/INSTALL.ANY: Updated.
  349. * include/freetype/ftmoderr.h: Replace `Autohint' with `Autofit'.
  350. Add `OTvalid'.
  351. * src/autofit/aferrors.h: New file.
  352. * src/autofit/afglobal.c, src/autofit/afhints.c,
  353. src/autofit/aflatin.c, src/autofit/afloader.c: s/FT_Err_/AF_Err_/.
  354. Include aferrors.h.
  355. * src/autofit/rules.mk (AUTOF_DRV_H): Include aferrors.h.
  356. * src/otvalid/otverror.h: s/FT_Mod_Err_OTV/FT_Mod_Err_OTvalid/.
  357. 2005-03-22 David Turner <david@freetype.org>
  358. * src/autohint/*: Removed.
  359. * Jamfile: Updated.
  360. 2005-03-15 David Turner <david@freetype.org>
  361. * src/bdf/bdflib.c: Remove compiler warnings.
  362. (hash_rehash, hash_init): Don't call FT_MEM_ZERO.
  363. (_bdf_list_t): Add `memory' field.
  364. (_bdf_list_init, _bdf_list_done, _bdf_list_ensure): New functions.
  365. (_bdf_shift, _bdf_join): Rename to...
  366. (_bdf_list_shift, _bdf_list_join): This.
  367. (_bdf_split): Renamed to...
  368. (_bdf_list_split): This. Use new functions.
  369. (bdf_internal_readstream): Removed.
  370. (NO_SKIP): New macro.
  371. (_bdf_readstream): Rewritten.
  372. (bdf_create_property, _bdf_add_comment): Improve allocation.
  373. (_bdf_set_default_spacing, _bdf_parse_glyphs): Updated. Improve
  374. allocation.
  375. (_bdf_parse_properties, _bdf_parse_start): Updated.
  376. (bdf_load_font): Updated to use new functions.
  377. * src/type1/t1parse.c (check_type1_format): New function.
  378. (T1_New_Parser): Use it to check font header before allocating
  379. anything on the heap.
  380. * src/type42/t42parse.c (t42_parser_init): Modify functions to check
  381. the font header before allocating anything on the heap.
  382. * include/freetype/internal/ftmemory.h (FT_ARRAY_MAX,
  383. FT_ARRAY_CHECK): New macros.
  384. * src/base/ftstream.c (FT_Stream_TryRead): New function.
  385. * include/freetype/internal/ftstream.h: Updated.
  386. * src/pcf/pcfread.c (pcf_read_TOC), src/pcf/pcfutil.c
  387. (BitOrderInvert, TwoByteSwap, FourByteSwap): Minor fixes and
  388. simplifications. Try to protect the PCF driver from doing stupid
  389. things with broken fonts.
  390. * src/lzw/ftlzw.c (FT_Stream_OpenLZW): Check the LZW header before
  391. doing anything else. This avoids unnecessary heap allocations
  392. (400KByte of heap memory for the LZW decoder).
  393. * src/gzip/ftgzip.c (FT_Stream_OpenGzip): Ditto for the gzip
  394. decoder, although the code savings are smaller.
  395. * docs/CHANGES: Updated.
  396. 2005-03-10 David Turner <david@freetype.org>
  397. * src/tools/glnames.py: Add comment to explain the compression
  398. being used for the Adobe Glyph List.
  399. 2005-03-10 Werner Lemberg <wl@gnu.org>
  400. * src/truetype/ttpload.c (tt_face_load_cvt, tt_face_load_fpgm):
  401. Fix serious typo which prevented correct TT rendering.
  402. * include/freetype/internal/ftmemory.h: Undo change from 2005-03-03.
  403. To suppress warnings it is sufficient to use `-fno-strict-aliasing'.
  404. 2005-03-10 Werner Lemberg <wl@gnu.org>
  405. * src/tools/glnames.py: Formatted.
  406. Format output to be in sync with other FreeType code.
  407. Import `re' and `os.path'.
  408. (StringTable) <__init__>: Add parameter to initialize master table
  409. name.
  410. (StringTable) <dump>: Don't pass master table name.
  411. (StringTable) <dump_sublist>: Emit explanatory comment.
  412. Simplify and make output more human readable.
  413. (t1_bias, glyph_list, adobe_glyph_names): Removed. Unused.
  414. (main): Use `basename' for file name in header.
  415. * src/psnames/pstables.h: Regenerated.
  416. 2005-03-09 David Turner <david@freetype.org>
  417. * src/tools/glnames.py: Rewrite the generator for the `pstables.h'
  418. header file which contains various constant tables related to glyph
  419. names. It now uses a different, more compact storage scheme that
  420. saves about 20KB. This also closes Savannah bug #12262.
  421. * src/psnames/pstables.h: Regenerated.
  422. * src/psnames/psmodule.c (ps_unicode_value): Use
  423. `ft_get_adobe_glyph_index', a new function defined in `pstables.h'.
  424. (ps_get_macintosh_name, ps_get_standard_strings): Updated.
  425. * src/base/ftobjs.c (FT_Set_Char_Size): Handle fractional sizes
  426. more carefully. This fixes Savannah bug #12263.
  427. 2005-03-06 David Turner <david@freetype.org>
  428. * src/otvalid/otvgsub.c, src/otvalid/otvgpos.c: Make static tables
  429. constant.
  430. * src/autofit/aflatin.c (af_latin_metrics_init): Fix Savannah bug
  431. #12212 (auto-hinter refuses to work if no Unicode charmap in font).
  432. 2005-03-05 Werner Lemberg <wl@gnu.org>
  433. * autogen.sh: New script for bootstrapping.
  434. * README.CVS: New file which documents bootstrapping.
  435. * builds/unix/aclocal.m4, builds/unix/config.guess,
  436. builds/unix/config.sub, builds/unix/configure,
  437. builds/unix/ltmain.sh: Removed.
  438. 2005-03-04 Werner Lemberg <wl@gnu.org>
  439. * src/base/ftutil.c: Include FT_INTERNAL_OBJECTS_H.
  440. 2005-03-03 Werner Lemberg <wl@gnu.org>
  441. Various fixes for C and C++ compiling.
  442. * src/autofit/*: Add copyright messages.
  443. * src/autofit/afhints.c (af_glyph_hints_done): Don't use
  444. `AF_Dimension' but `int' for loop counter.
  445. * src/autofit/aflatin.c (af_latin_metrics_init_widths): Don't use
  446. `AF_Dimension' but `int' for loop counter.
  447. Use proper enumeration value for `render_mode'.
  448. (af_latin_metrics_scale_dim): Don't shadow variables.
  449. (af_latin_hints_compute_segments): Use proper cast for `major_dir'
  450. and `segment_dir'.
  451. (af_latin_align_linked_edge, af_latin_hint_edges): Fix arguments of call to
  452. `af_latin_compute_stem_width'.
  453. (af_latin_hints_apply): Don't use `AF_Dimension' but `int' for loop
  454. counter.
  455. * src/base/ftdbgmem.c (ft_mem_table_get_source, FT_DumpMemory): Use
  456. proper cast for memory allocation.
  457. * src/cff/cffdrivr.c (cff_get_kerning): Use proper cast for
  458. initialization of `sfnt'.
  459. * src/sfnt/sfdriver.c: Include `ttkern.h'.
  460. * src/sfnt/ttkern.c (tt_face_get_kerning): Don't shadow variables.
  461. * src/truetype/ttgload.c: Include `ttpload.h'.
  462. 2005-03-03 David Turner <david@freetype.org>
  463. * include/freetype/internal/ftmemory.h (FT_ALLOC, FT_REALLOC,
  464. FT_QALLOC, FT_QREALLOC) [gcc >= 3.3]: Provide macro versions which
  465. avoid compiler warnings.
  466. (FT_NEW, FT_NEW_ARRAY, FT_RENEW_ARRAY, FT_QNEW, FT_QNEW_ARRAY,
  467. FT_QRENEW_ARRAY, FT_ALLOC_ARRAY, FT_REALLOC_ARRAY): Updated.
  468. * include/freetype/internal/ftserv.h (FT_FACE_FIND_SERVICE,
  469. FT_FACE_FIND_GLOBAL_SERVICE, FT_FACE_LOOKUP_SERVICE) [__cplusplus]:
  470. Provide macro versions which avoid compiler warnings.
  471. * src/base/ftutil.c (ft_highpow2): New utility function.
  472. * include/freetype/internal/ftobjs.h: Updated.
  473. * src/pfr/pfrload.c (pfr_get_gindex, pfr_compare_kern_pairs,
  474. pfr_sort_kerning_pairs): Don't define if FT_OPTIMIZE_MEMORY is set.
  475. (pfr_phy_font_done): Don't handle `kern_pairs' if FT_OPTIMIZE_MEMORY
  476. is set.
  477. (pfr_phy_font_load): Don't call `pfr_sort_kerning_pairs' if
  478. FT_OPTIMIZE_MEMORY is set.
  479. * src/pfr/pfrobjs.c (pfr_slot_load): Comment out some code which
  480. doesn't work with broken fonts.
  481. (pfr_face_get_kerning) [FT_OPTIMIZE_MEMORY]: Implement.
  482. * src/pfr/pfrtypes.h (PFR_KernItemRec): Optimize member types.
  483. (PFR_NEXT_KPAIR): New macro.
  484. (PFR_PhyFontRec): Don't define `kern_pairs' if FT_OPTIMIZE_MEMORY is
  485. set.
  486. * src/sfnt/ttsbit0.c (tt_sbit_decoder_load_image): Introduce
  487. temporary variable to avoid gcc warning.
  488. (tt_face_load_sbit_image): Mark unused variables with FT_UNUSED.
  489. * src/truetype/ttpload.c (tt_face_load_loca) [FT_OPTIMIZE_MEMORY]:
  490. Remove redundant variable.
  491. * include/freetype/config/ftmodule.h: Moving the order of drivers to
  492. speed up font loading. The PCF and BDF loaders are still slow and
  493. consume far too much memory.
  494. 2005-03-03 Werner Lemberg <wl@gnu.org>
  495. * devel/ftoption.h: Updated to recent changes.
  496. 2005-03-02 Werner Lemberg <wl@gnu.org>
  497. * src/autofit/afdummy.c, src/autofit/afdummy.h
  498. (af_dummy_script_class): Fix type.
  499. * src/autofit/aflatin.c, src/autofit/aflatin.h
  500. (af_latin_script_class): Fix type.
  501. * src/autofit/rules.mk (AUTOF_DRV_SRC): Fix typo.
  502. 2005-03-01 David Turner <david@freetype.org>
  503. * src/sfnt/ttkern.c (tt_face_load_kern, tt_face_get_kerning),
  504. src/sfnt/ttsbit0.c (tt_face_load_sbit_strikes,
  505. tt_sbit_decoder_load_byte_aligned, tt_sbit_decoder_load_compound,
  506. tt_sbit_decoder_load_image), src/sfnt/ttload.c
  507. (tt_face_load_metrics): Remove compiler warnings
  508. -- redundant variables, missing initializations, etc.
  509. * src/sfnt/ttsbit.h: Handle FT_OPTIMIZE_MEMORY.
  510. * src/autofit/rules.mk, src/autofit/module.mk,
  511. src/autofit/afangles.h: New files.
  512. * src/autofit/afhints.c (af_axis_hints_new_segment,
  513. af_axis_hints_new_edge): New functions.
  514. (af_glyph_hints_done): Do proper deallocation.
  515. (af_glyph_hints_reload): Only reallocate points array. This
  516. drastically reduces heap usage.
  517. * src/autofit/afhints.h (AF_PointRec, AF_SegmentRec): Optimize
  518. member types and positions.
  519. (AF_AxisHintsRec): Add `max_segments' and `max_edges'.
  520. (af_axis_hints_new_segment, af_axis_hints_new_edge): New prototypes.
  521. * src/autofit/aflatin.c (af_latin_metrics_scale): Don't call
  522. AF_SCALER_EQUAL_SCALES.
  523. (af_latin_hints_compute_segments): Change return type to FT_Error.
  524. Update all callers.
  525. Improve segment allocation.
  526. (af_latin_hints_compute_edges): Change return type to FT_Error.
  527. Update all callers.
  528. Improve edge allocation and link handling.
  529. (af_latin_hints_detect_features): Change return type to FT_Error.
  530. Update all callers.
  531. * src/autofit/aflatin.h: Updated.
  532. * src/autofit/afloader.c (af_loader_load_g)
  533. <FT_GLYPH_FORMAT_OUTLINE>: Assure axis->num_edges > 1. This fixes
  534. a bug with certain fonts.
  535. * include/freetype/config/ftmodule.h: The auto-fitter is now the
  536. only supported auto-hinting module.
  537. * include/freetype/config/ftstdlib.h (FT_INT_MAX): New macro.
  538. 2005-02-28 Werner Lemberg <wl@gnu.org>
  539. * src/truetype/ttpload.c (tt_face_load_loca): Fix typo.
  540. * src/sfnt/ttkern.c: Include `ttkern.h'.
  541. (FT_COMPONENT): Updated.
  542. * include/freetype/internal/fttrace.h: Add entry for `ttkern'.
  543. * src/sfnt/ttsbit0.c: s/FT_Err_/SFNT_Err_/.
  544. Decorate constants with `U' and `L' where necessary.
  545. * src/sfnt/ttcmap.c (tt_cmap4_next): Remove unused variable.
  546. 2005-02-28 David Turner <david@freetype.org>
  547. * src/base/ftdbgmem.c (FT_DumpMemory): Added sorting of memory
  548. sources according to decreasing maximum cumulative allocations.
  549. (ft_mem_source_compare): New auxiliary function.
  550. * src/sfnt/ttsbit0.c: New file, implementing a heap-optimized
  551. embedded bitmap loader.
  552. * src/sfnt/ttsbit.c: Include `ft2build.h', FT_INTERNAL_DEBUG_H,
  553. FT_INTERNAL_STREAM_H, FT_TRUETYPE_TAGS_H.
  554. Load `ttsbit0.c' if FT_OPTIMIZE_MEMORY is set, otherwise use
  555. file contents.
  556. (tt_face_load_sbit_strikes): Set up root fields to indicate the
  557. strikes. This fixes Savannah bug #12107.
  558. Use `static' keyword for `sbit_line_metrics_field',
  559. `strike_start_fields', `strike_end_fields'.
  560. * include/freetype/internal/tttypes.h (TT_FaceRec): Define
  561. `sbit_table', `sbit_table_size', `sbit_num_strikes' if
  562. FT_OPTIMIZE_MEMORY is set.
  563. Don't define `num_sbit_strikes' and `sbit_strikes' if
  564. FT_OPTIMIZE_MEMORY is set.
  565. * src/cff/cffobjs.c (sbit_size_reset): Handle FT_OPTIMIZE_MEMORY.
  566. * src/sfnt/sfobjs.c (sfnt_load_face): Fixed bug that prevented
  567. loading SFNT fonts without a `kern' table.
  568. Properly pass root->face_flags.
  569. Remove code for TT_CONFIG_OPTION_EMBEDDED_BITMAPS.
  570. * src/sfnt/sfdriver.c (sfnt_interface)
  571. [TT_CONFIG_OPTION_EMBEDDED_BITMAPS]: Don't use `tt_find_sbit_image'
  572. and `tt_load_sbit_metrics'.
  573. * src/sfnt/ttcmap.c: Optimize linear charmap scanning for Format 4.
  574. (OPT_CMAP4): New macro.
  575. (TT_CMap4Rec) [OPT_CMAP4]: New structure.
  576. (tt_cmap4_init, tt_cmap4_set_range, tt_cmap4_next, tt_cmap4_reset)
  577. [OPT_CMAP4]: New functions.
  578. (tt_cmap4_char_next) [OPT_CMAP4]: Use `tt_cmap4_next' and
  579. `tt_cmap4_reset'.
  580. (tt_cmap4_class_rec) [OPT_CMAP4]: Use `TT_CMap4Rec' and
  581. `tt_cmap4_init'.
  582. * src/truetype/ttobjs.c (Reset_SBit_Size): Handle
  583. FT_OPTIMIZE_MEMORY.
  584. * src/autofit/afhints.h (AF_PointRec, AF_SegmentRec, AF_EdgeRec):
  585. Optimize member types.
  586. * src/autofit/afloader.c (af_loader_done): Call
  587. `af_glyph_hints_done'.
  588. 2005-02-27 David Turner <david@freetype.org>
  589. * src/sfnt/ttkern.c (tt_face_load_kern): Fix a small bug which
  590. caused invalid (random) return values for the horizontal kerning.
  591. 2005-02-25 David Turner <david@freetype.org>
  592. Implement several memory optimizations to drastically reduce the
  593. heap usage of FreeType, especially in the case of memory-mapped
  594. files. The idea is to avoid loading and decoding tables in the
  595. heap, and instead access the raw data whenever possible (i.e., when
  596. it doesn't compromise performance).
  597. This has several benefits: For example, opening vera.ttf now uses
  598. just a small amount of memory (even when the FT_Library footprint is
  599. accounted for), until you start loading glyphs. Even then, you save
  600. at least 20KB compared to the non-optimized case. Performance of
  601. various operations, including open and close, has also been
  602. dramatically improved.
  603. More optimizations to come, especially for the auto-hinter.
  604. * include/freetype/internal/sfnt.h (TT_Face_GetKerningFunc): New
  605. function type.
  606. (SFNT_Interface): Add it.
  607. * include/freetype/internal/tttypes.h (TT_HdmxEntryRec, TT_HdmxRec,
  608. TT_Kern0_PairRec): Don't define if FT_OPTIMIZE_MEMORY is set.
  609. (TT_FaceRec): Define `horz_metrics', `horz_metrics_size',
  610. `vert_metrics', `vert_metrics_size', `hdmx_table',
  611. `hdmx_table_size', `hdmx_record_count', `hdmx_record_size',
  612. `hdmx_record_sizes', `kern_table', `kern_table_size,
  613. `num_kern_tables', `kern_avail_bits', `kern_order_bits' if
  614. FT_OPTIMIZE_MEMORY is set.
  615. Don't define `hdmx', `num_kern_pairs', `kern_table_index',
  616. `kern_pairs' if FT_OPTIMIZE_MEMORY is set.
  617. * src/base/ftdbgmem.c (ft_mem_table_set): Don't shadow variable.
  618. Fix compiler warning.
  619. * src/cff/cffdrivr.c (Get_Kerning): Renamed to...
  620. (cff_get_kerning): This. Simplify.
  621. (cff_driver_class): Updated.
  622. * src/sfnt/Jamfile (_sources): Add `ttkern'.
  623. * src/sfnt/rules.mk (SFNT_DRV_SRC): Add `ttkern.c'.
  624. * src/sfnt/sfdriver.c (sfnt_interface): Add `tt_face_get_kerning'.
  625. * src/sfnt/sfnt.c: Include `ttkern.c'.
  626. * src/sfnt/sfobjs.c: Include `ttkern.h'.
  627. (sfnt_load_face): Consider the `kern' and `gasp' table as optional.
  628. (sfnt_done_face): Call `tt_face_done_kern'.
  629. Handle horizontal metrics for FT_OPTIMIZE_MEMORY.
  630. * src/sfnt/ttkern.c, src/sfnt/ttkern.h: New files. Code has been
  631. taken from `ttload.c' and `ttload.h'.
  632. Provide special versions of `tt_face_load_kern',
  633. `tt_face_get_kerning', and `tt_face_done_kern' for
  634. FT_OPTIMIZE_MEMORY.
  635. * src/sfnt/ttload.c (tt_face_load_metrics, tt_face_load_hdmx,
  636. tt_face_free_hdmx): Provide version for FT_OPTIMIZE_MEMORY.
  637. (tt_face_load_kern, tt_kern_pair_compare, TT_KERN_INDEX): Moved to
  638. `ttkern.c'.
  639. * src/sfnt/ttload.h: Updated.
  640. * src/sfnt/ttsbit.c (sbit_metrics_field): Add `static' keyword.
  641. * src/truetype/ttdriver.c (Get_Kerning): Renamed to...
  642. (tt_get_kerning): This. Simplify.
  643. (tt_driver_class): Updated.
  644. * src/truetype/ttgload.c (TT_Get_Metrics): Renamed to...
  645. (tt_face_get_metrics): This. Provide version for FT_OPTIMIZE_MEMORY.
  646. Update all callers.
  647. (Get_Advance_Widths): Replaced with...
  648. (Get_Advance_WidthPtr): This. Provide version for
  649. FT_OPTIMIZE_MEMORY.
  650. Update all callers.
  651. * src/truetype/ttgload.h: Updated.
  652. 2005-02-22 David Turner <david@freetype.org>
  653. * src/base/ftdbgmem.c: Partly rewritten. Added the ability to list
  654. all allocation sites in the memory debugger. Also a new function
  655. FT_DumpMemory() was added. It is only available in builds with
  656. FT_DEBUG_MEMORY defined, and you must declare it in your own code to
  657. use it, i.e., with something like:
  658. extern void FT_DumpMemory( FT_Memory );
  659. ...
  660. FT_DumpMemory( memory );
  661. * include/freetype/config/ftoption.h
  662. (TT_CONFIG_OPTION_BYTECODE_INTERPRETER): Comment out definition --
  663. again.
  664. (FT_OPTIMIZE_MEMORY): New configuration macro to control various
  665. optimizations for reducing the heap footprint of memory-mapped
  666. TrueType files.
  667. * include/freetype/internal/ftmemory.h (FT_ARRAY_ZERO): New
  668. convenience macro.
  669. * include/freetype/internal/tttypes.h (TT_FaceRec)
  670. [FT_OPTIMIZE_MEMORY]: Use optimized types for `num_locations' and
  671. `glyph_locations'.
  672. * src/truetype/ttgload.c (load_truetype_glyph): Call
  673. `tt_face_get_location'.
  674. * src/truetype/ttobjs.c (tt_face_init)
  675. [FT_CONFIG_OPTION_INCREMENTAL]: Improve error handling.
  676. (tt_face_done): Call `tt_face_done_loca'.
  677. * src/truetype/ttpload.c (tt_face_get_location, tt_face_done_loca):
  678. New functions. If FT_OPTIMIZE_MEMORY is set, the locations table is
  679. read directly from memory-mapped streams, instead of being decoded
  680. into the heap.
  681. (tt_face_load_loca) [FT_OPTIMIZE_MEMORY]: New implementation.
  682. (tt_face_load_cvt, tt_face_load_fpgm): Only load table if the
  683. bytecode interpreter is compiled in.
  684. * src/truetype/ttpload.h: Updated.
  685. * src/autohint/ahglyph.c (ah_outline_load): Improve allocation
  686. logic.
  687. 2005-02-20 Werner Lemberg <wl@gnu.org>
  688. * builds/unix/ltmain.sh: Regenerated with `libtoolize --force
  689. --copy' from libtool 1.5.14.
  690. * builds/unix/aclocal.m4: Regenerated with `aclocal -I .' from
  691. automake 1.9.4.
  692. * builds/unix/config.guess, builds/unix/config.sub: Updated from
  693. `config' CVS module at subversions.gnu.org.
  694. * builds/unix/install-sh, builds/unix/mkinstalldirs: Updated from
  695. `texinfo' CVS module at subversions.gnu.org.
  696. 2005-02-14 Werner Lemberg <wl@gnu.org>
  697. * src/cff/cffcmap.c (cff_cmap_unicode_init): Don't try to build
  698. a cmap for a CID-keyed font which doesn't have SIDs.
  699. 2005-02-13 Werner Lemberg <wl@gnu.org>
  700. * src/type1/t1load.c (read_binary_data): Return more meaningful
  701. value.
  702. (parse_encoding, parse_subrs, parse_charstrings, parse_dict): Check
  703. parser error value after call to T1_Skip_PS_Token (where necessary).
  704. * src/type1/t1parse.c (T1_Get_Private_Dict): Check parser error
  705. value after call to T1_Skip_PS_Token.
  706. * src/cid/cidparse.c (cid_parser_new): Check parser error value
  707. after call to cid_parser_skip_PS_token.
  708. * src/type42/t42parse.c (t42_parse_encoding, t42_parse_sfnts,
  709. t42_parse_charstrings, t42_parse_dict): Check parser error value
  710. after call to T1_Skip_PS_Token (where necessary).
  711. * src/psaux/psobjs.c (skip_string, ps_parser_skip_PS_token,
  712. ps_tobytes): Add error messages.
  713. 2005-02-12 Werner Lemberg <wl@gnu.org>
  714. * configure: Output more variables to the created Makefile so that
  715. it can be used for ft2demos also (if the FT2DEMOS variable is
  716. defined).
  717. 2005-02-10 David Turner <david@freetype.org>
  718. * src/pfr/pfrgload.c (pfr_glyph_load): Fix an unbounded growing
  719. dynamic array when loading a glyph from a PFR font (Savannah bug
  720. #11921).
  721. * src/base/ftbitmap.c (FT_Bitmap_Convert): Small improvements to the
  722. conversion function (mainly stupid optimization).
  723. * src/base/Jamfile: Adding ftbitmap.c to the list of compiled files.
  724. 2005-02-10 Werner Lemberg <wl@gnu.org>
  725. * builds/unix/freetype-config.in: Add new flag `--ftversion' to
  726. return the FreeType version. Suggested by George Williams
  727. <gww@silcom.com>.
  728. * docs/CHANGES: Updated.
  729. 2005-02-09 Werner Lemberg <wl@gnu.org>
  730. * src/otvalid/otvmod.c (otv_validate): Deallocate arrays in case
  731. of error. Reported by YAMANO-UCHI Hidetoshi <mer@din.or.jp>.
  732. 2005-02-08 Werner Lemberg <wl@gnu.org>
  733. * src/psaux/t1decode.c (t1_decoder_parse_charstrings)
  734. <op_closepath>: Accept `T1_Parse_Have_Moveto' state also which can
  735. happen in empty glyphs. Reported by Ian Brown
  736. <ian.brown@printsoft.de> (Savannah bug #11856).
  737. 2005-02-04 Werner Lemberg <wl@gnu.org>
  738. * src/otlayout/*: Removed. Obsolete.
  739. 2004-12-28 Werner Lemberg <wl@gnu.org>
  740. * builds/unix/ltmain.sh: Regenerated with `libtoolize --force
  741. --copy' from libtool 1.5.10.
  742. * builds/unix/aclocal.m4: Regenerated with `aclocal -I .' from
  743. automake 1.9.4.
  744. * builds/unix/configure: Regenerated with autoconf 2.59b.
  745. * builds/unix/config.guess, builds/unix/config.sub: Updated from
  746. `config' CVS module at subversions.gnu.org.
  747. * builds/unix/install-sh: Updated from
  748. `texinfo' CVS module at subversions.gnu.org.
  749. * builds/unix/ftsystem.c (FT_Stream_Open): Add proper cast for
  750. ft_alloc.
  751. Fix compiler warning.
  752. 2004-12-27 Dirck Blaskey <listtarget@danbala.com>
  753. * src/cff/cffobjs.c (cff_face_init): Improve computation of
  754. FT_STYLE_BOLD_FLAG.
  755. 2004-12-27 Werner Lemberg <wl@gnu.org>
  756. * src/cff/cffobjs.c (cff_face_init): A CFF within an SFNT can have
  757. only a single font. This is undocumented but has been verified on
  758. the opentype list.
  759. 2004-12-26 Werner Lemberg <wl@gnu.org>
  760. * Jamfile (FT2_COMPONENTS): Add `otvalid'.
  761. 2004-12-25 Werner Lemberg <wl@gnu.org>
  762. * src/base/ftbitmap.c (FT_Bitmap_Convert): Fix compiler warning.
  763. 2004-12-15 Werner Lemberg <wl@gnu.org>
  764. * vms_make.com: Add ftbitmap.obj.
  765. 2004-12-14 Werner Lemberg <wl@gnu.org>
  766. * src/base/ftbitmap.c, include/freetype/ftbitmap.h: New files for
  767. handling various bitmap formats.
  768. * include/freetype/config/ftheader.h (FT_BITMAP_H): New macro.
  769. * src/base/rules.mk (BASE_EXT_SRC): Add ftbitmap.c.
  770. * src/bdf/bdfdrivr.c (BDF_Glyph_Load): Don't convert bitmaps to 8bpp
  771. but return them as-is.
  772. * docs/CHANGES: Mention new bitmap API.
  773. * include/freetype/ftchapters.h: Updated.
  774. 2004-12-11 Robert Clark <freetype@ratty.org.uk>
  775. * src/base/ftobjs.c (FT_Get_Kerning): Make kerning amount
  776. dependent on ppem by scaling down for ppem < 25, then do normal
  777. rounding. This gives slightly better results than rounding towards
  778. zero.
  779. 2004-12-09 Werner Lemberg <wl@gnu.org>
  780. * src/base/ftobjs.c (FT_Get_Kerning): Always round towards zero
  781. for FT_KERNING_DEFAULT. This greatly enhances the kerning for
  782. small ppem values.
  783. 2004-12-08 Werner Lemberg <wl@gnu.org>
  784. * src/base/ftobjs.c (ft_glyphslot_clear): Reset `lsb_delta' and
  785. `rsb_delta'.
  786. 2004-12-05 Werner Lemberg <wl@gnu.org>
  787. * builds/unix/install.mk (install): Use $(OBJ_BUILD) for ftconfig.h.
  788. 2004-12-03 Antoine Leca <Antoine-Freetype@Leca-Marti.org>
  789. * include/freetype/ttnameid.h: Updated to latest
  790. specifications from Microsoft.
  791. 2004-11-26 Jouk Jansen <joukj@hrem.stm.tudelft.nl>
  792. * vms_make.com: Include ftbbox.c.
  793. Fix `ccopt'.
  794. Handle `otvalid' module.
  795. Update `vmslib.dat' default values.
  796. Fixes to `libs.opt'.
  797. 2004-11-23 Anders Kaseorg <anders@kaseorg.com>
  798. * src/base/ftoutln.c (FT_OrientationExtremumRec,
  799. ft_orientation_extremum_compute): Removed.
  800. (FT_Outline_Get_Orientation): Rewritten, simplified.
  801. * src/autohint/ahglyph.c: Include FT_OUTLINE_H.
  802. (ah_test_extremum, ah_get_orientation): Removed.
  803. (ah_outline_load): Use FT_Outline_Get_Orientation.
  804. * src/base/ftsynth.c (ft_test_extrema, ft_get_orientation): Removed.
  805. (FT_GlyphSlot_Embolden): Use FT_Outline_Get_Orientation.
  806. 2004-11-23 Fernando Papa <fpapa@netgate.com.uy>
  807. * src/truetype/ttinterp.h: Fix typo.
  808. 2004-11-22 Antoine Leca <Antoine-Freetype@Leca-Marti.org>
  809. * builds/win32/detect.mk: Corrected logic that detects Windows NT to
  810. use the previous change even if win32 is forced. Corrected
  811. detection of win32 on Win9X.
  812. * builds/dos/detect.mk: Added same correction as for win32 about
  813. COPY on Windows NT. Detection of plain DOS 7.x.
  814. 2004-11-22 Werner Lemberg <wl@gnu.org>
  815. * builds/detect.mk: Undo change from 2004-11-20.
  816. * builds/win32/detect.mk: If the `OS' environment variable contains
  817. `Windows_NT', use `cmd.exe /c copy' for copying files.
  818. 2004-11-20 Werner Lemberg <wl@gnu.org>
  819. * builds/detect.mk (dos_setup): Use `cmd.exe' for copying
  820. $(CONFIG_MK) to force lowercase file name under Windows.
  821. 2004-11-19 Werner Lemberg <wl@gnu.org>
  822. Fix a serious bug in the TT hinter.
  823. * src/truetype/ttgload.c (TT_Process_Simple_Glyph): Don't shift
  824. points vertically before hinting.
  825. * docs/CHANGES: Updated.
  826. * src/cache/ftcglyph.c (FTC_GNode_UnselectFamily,
  827. FTC_GCache_Lookup): A new try to fix comparison with zero.
  828. 2004-11-16 Werner Lemberg <wl@gnu.org>
  829. * builds/unix/configure.ac: Add `-fno-strict-aliasing' if gcc is
  830. used.
  831. * builds/unix/configure: Regenerated.
  832. * builds/unix/config.guess, builds/unix/config.sub: Updated from
  833. `config' CVS module at subversions.gnu.org.
  834. 2004-11-16 Dr. Martin P.J. Zinser <zinser@decus.de>
  835. * src/cache/ftcglyph.c (FTC_GNode_UnselectFamily,
  836. FTC_GCache_Lookup): Fix comparison with zero.
  837. * docs/INSTALL.VMS: Updated.
  838. * vms_make.com: Updated. All `descrip.mms' files are now created
  839. automatically.
  840. * src/*/descrip.mms: Removed.
  841. 2004-11-16 Owen Taylor <otaylor@redhat.com>
  842. * builds/unix/freetype-config.in: Suppress -L$libdir for
  843. /usr/lib64 as well as /usr/lib. (Reported by Dan Winship -
  844. https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=139199)
  845. 2004-11-11 Werner Lemberg <wl@gnu.org>
  846. * src/cff/cffdrivr.c (cff_service_ps_info): Updated.
  847. * src/cid/cidriver.c (cid_service_ps_info): Updated.
  848. * src/type42/t42drivr.c (t42_ps_get_font_private): New function.
  849. (t42_service_ps_info): Updated.
  850. * src/type42/t42parse.c (t42_parse_dict): Remove compiler warning.
  851. 2004-11-11 David Bevan <dbevan@emtex.com>
  852. Add new function FT_Get_PS_Font_Private().
  853. * include/freetype/internal/services/svpsinfo.h
  854. (PS_GetFontPrivateFunc): New service function.
  855. * include/freetype/t1tables.h, src/base/fttype1.c
  856. (FT_Get_PS_Font_Private): New function.
  857. * src/type1/t1driver.c (t1_ps_get_font_private): New function.
  858. (t1_service_ps_info): Updated.
  859. 2004-10-13 Werner Lemberg <wl@gnu.org>
  860. * include/freetype/config/ftstdlib.h: Include `stddef.h'.
  861. (ft_ptrdiff_t): Define.
  862. * include/freetype/fttypes.h (FT_PtrDist): Use `ft_ptrdiff_t'.
  863. * src/cid/cidload.c (cid_parse_dict), src/type1/t1load.c
  864. (parse_dict): Fix compiler warning.
  865. 2004-10-11 Joshua Neal <jneal@csdaily.com>
  866. * src/sfnt/ttcmap.c (tt_face_build_cmaps): Check for pointer
  867. overflow.
  868. * src/sfnt/ttload.c (tt_face_load_hdmx): Protect against bad input.
  869. Don't use FT_QNEW_ARRAY but FT_NEW_ARRAY to make deallocation work
  870. in case of failure.
  871. * src/sfnt/ttsbit.c (Load_SBit_Range): Check range intervals.
  872. (tt_face_load_sbit_strikes): Allocate `strike_sbit_ranges' after
  873. frame test.
  874. * src/truetype/ttgload.c (TTLoad_Simple_Glyph): Add assertion for
  875. `flag'.
  876. 2004-10-09 Werner Lemberg <wl@gnu.org>
  877. * docs/CHANGES: Updated.
  878. 2004-10-09 Boris Letocha <b.letocha@cz.gmc.net>
  879. Fix handling of NPUSHW if skipped in data stream.
  880. * src/truetype/ttinterp.c (opcode_length): Set value for NPUSHW
  881. to -2.
  882. (SkipCode, TT_RunIns): Use opcode_length value for computation of
  883. bytes to be skipped.
  884. 2004-09-10 Jouk Jansen <joukj@hrem.stm.tudelft.nl>
  885. * vms_make.com: Updated.
  886. 2004-09-09 Werner Lemberg <wl@gnu.org>
  887. Adding OpenType validation module. The code is based on the
  888. (unfinished) `otlayout' module but has been heavily modified to make
  889. it much more compact.
  890. * src/otvalid/*: New module.
  891. * include/freetype/ftotval.h, src/base/ftotval.c,
  892. include/freetype/internal/services/svotval.h: New files.
  893. * include/freetype/config/ftmodule.h: Add otv_module_class.
  894. * include/freetype/config/ftheader.h (FT_OPENTYPE_VALIDATE_H): New
  895. macro.
  896. * include/freetype/internal/ftserv.h
  897. (FT_SERVICE_OPENTYPE_VALIDATE_H): New macro.
  898. * include/freetype/internal/fttrace.h (otvmodule, otvcommon,
  899. otvbase, otvgdef, otvgpos, otvgsub, otvjstf): New trace components.
  900. * include/freetype/ftchapters.h: Updated.
  901. * src/base/Jamfile (Library), src/base/descrip.mms (OBJS),
  902. src/base/rules.mk (BASE_EXT_SRC): Updated.
  903. * docs/CHANGES: Updated.
  904. 2004-09-08 Werner Lemberg <wl@gnu.org>
  905. * src/tools/docmaker/sources.py (re_source_block_format2) <column>:
  906. Use lookahead assertion to not match `*/'. This removes spurious
  907. insertions of `/' in the HTML output.
  908. 2004-09-07 Werner Lemberg <wl@gnu.org>
  909. * src/truetype/ttgxvar.c (TT_Vary_Get_Glyph_Deltas): Fix call to
  910. FT_NEW_ARRAY.
  911. 2004-09-04 Werner Lemberg <wl@gnu.org>
  912. * include/freetype/internal/ftobjs.h: Don't include
  913. FT_CONFIG_STANDARD_LIBRARY_H.
  914. (FT_Validator, FT_ValidationLevel, FT_ValidatorRec, FT_VALIDATOR,
  915. ft_validator_init, ft_validator_run, ft_validator_error, FT_INVALID,
  916. FT_INVALID_TOO_SHORT, FT_INVALID_OFFSET, FT_INVALID_FORMAT,
  917. FT_INVALID_GLYPH_ID, FT_INVALID_DATA): Move to...
  918. * include/freetype/internal/ftvalid.h: New file.
  919. Make FT_INVALID return module-specific error codes.
  920. * include/freetype/internal/internal.h (FT_INTERNAL_VALIDATE_H): New
  921. macro.
  922. * include/freetype/fterrors.h: Undefine FT_ERR_PREFIX only if
  923. FT_KEEP_ERR_PREFIX isn't defined.
  924. * src/base/ftobjs.c: Include FT_INTERNAL_VALIDATE_H.
  925. * src/sfnt/ttcmap.h: Don't include FT_INTERNAL_OBJECTS_H but
  926. FT_INTERNAL_VALIDATE_H.
  927. * src/sfnt/ttcmap.c: Don't include FT_INTERNAL_OBJECTS_H but
  928. FT_INTERNAL_VALIDATE_H.
  929. Include sferrors.h before FT_INTERNAL_VALIDATE_H.
  930. s/FT_Err_Ok/SFNT_Err_Ok/.
  931. * src/sfnt/sferrors.h: Define FT_KEEP_ERR_PREFIX.
  932. * src/type1/t1afm.c: Include t1errors.h.
  933. 2004-09-03 Werner Lemberg <wl@gnu.org>
  934. * src/base/ftdebug.c (ft_debug_init): Highest debug level is 7,
  935. not 6.
  936. * docs/DEBUG: Updated.
  937. 2004-08-30 Werner Lemberg <wl@gnu.org>
  938. * include/freetype/tttags.h (TTAG_BASE, TTAG_GDEF, TTAG_GPOS,
  939. TTAG_JSTF): New tags.
  940. * include/freetype/fttypes.h (FT_Bytes, FT_Tag): New typedefs.
  941. (FT_Int): Add `signed'.
  942. 2004-08-29 Werner Lemberg <wl@gnu.org>
  943. * src/otlayout/otlgpos.c (otl_gpos_subtable_validate): Add argument
  944. to pass number of lookups.
  945. Update all callers.
  946. Don't call otl_lookup_list_validate but otl_lookup_validate.
  947. (otl_gpos_validate): Call otl_lookup_list_validate instead of
  948. otl_gpos_subtable_validate.
  949. * src/otlayout/otlgpos.h: Updated.
  950. * src/otlayout/otljstf.c (otl_jstf_max_validate): Add argument to
  951. pass number of lookups.
  952. Update all callers.
  953. * src/cff/cffparse.c (cff_parse_real): s/exp/exponent/ to avoid
  954. compiler warning.
  955. * src/sfnt/ttcmap0.c, src/sfnt/ttcmap0.h: Renamed to...
  956. * src/sfnt/ttcmap.c, src/sfnt/ttcmap.h: This.
  957. * src/sfnt/Jamfile, src/sfnt/rules.mk, src/sfnt/sfdriver.c,
  958. src/sfnt/sfnt.c, src/sfnt/sfobjs.c: Updated.
  959. * builds/compiler/gcc-dev.mk (CFLAGS): Don't add `-Wnested-externs'
  960. if compiler is g++ (v3.3.3 emits a warning otherwise).
  961. 2004-08-28 Werner Lemberg <wl@gnu.org>
  962. * src/otlayout/otlgpos.c (otl_value_length): Return number of bytes,
  963. not number of 16bit entities.
  964. (otl_gpos_lookup2_validate): Check class definition tables for
  965. format 2.
  966. Fix loop for format 2.
  967. (otl_liga_mark2_validate): Fix offset for otl_anchor_validate.
  968. 2004-08-27 Werner Lemberg <wl@gnu.org>
  969. * src/base/ftmac.c: Don't include truetype/ttobjs.h.
  970. Don't include type1/t1objs.h.
  971. (FT_New_Face_From_FSSpec) [!__MWERKS__]: Remove compiler warnings.
  972. 2004-08-27 Mathieu Malaterre <mathieu@malaterre.com>
  973. * src/base/ftmac.c: Handle OS_INLINE for xlc compiler also.
  974. 2004-08-27 Werner Lemberg <wl@gnu.org>
  975. * src/otlayout/otlayout.h: Add copyright.
  976. (OTL_INVALID_OFFSET): Removed.
  977. * src/otlayout/otlgdef.h: Include otlayout.h.
  978. Comment out inclusion of otltable.h.
  979. * src/otlayout/otlgpos.c (otl_gpos_lookup4_validate): Fix call
  980. to otl_base_array_validate.
  981. (otl_liga_mark2_validate): Fix `for' loop.
  982. * src/otlayout/otlgsub.c (otl_ligature_validate): Check `glyph_id',
  983. not components array.
  984. * src/otlcommn.c (otl_lookup_get_count, otl_feature_get_count):
  985. Comment out.
  986. (otl_lookup_list_get_count, otl_feature_list_get_count): Activate.
  987. (otl_feature_list_validate, otl_gsubgpos_get_lookup_count):
  988. s/otl_lookup_get_count/otl_lookup_list_get_count/.
  989. (otl_script_list_validate):
  990. s/otl_feature_get_count/otl_feature_list_get_count/.
  991. (otl_script_validate): Call otl_lang_validate for default language.
  992. * src/otlayout/otlcommn.h: Updated.
  993. 2004-08-16 Werner Lemberg <wl@gnu.org>
  994. * src/otlayout/otlgpos.c (otl_gpos_lookup1_validate,
  995. otl_gpos_lookup2_validate, otl_gpos_lookup3_validate,
  996. otl_gpos_lookup4_validate, otl_gpos_lookup5_validate,
  997. otl_gpos_lookup6_validate, otl_gpos_lookup9_validate,
  998. otl_gpos_validate): Update
  999. function arguments.
  1000. (otl_gpos_lookup7_validate, otl_gpos_lookup8_validate): Update
  1001. function arguments.
  1002. Handle NULL offsets correctly.
  1003. Check sequence and lookup indices for format 3.
  1004. (otl_pos_rule_validate, otl_chain_pos_rule_validate): Add argument
  1005. to pass lookup count.
  1006. Check sequence and glyph indices.
  1007. (otl_gpos_subtable_validate): Update function arguments.
  1008. Update callers.
  1009. * src/otlayout/otlgpos.h: Updated.
  1010. * src/otlayout/otlgsub.c (otl_gsub_lookup1_validate,
  1011. otl_gsub_lookup3_validate, otl_gsub_lookup8_validate): Update
  1012. function arguments.
  1013. Add glyph index checks.
  1014. (otl_sequence_validate, otl_alternate_set_validate,
  1015. otl_ligature_validate): Add argument to pass glyph count.
  1016. Update callers.
  1017. Add glyph index check.
  1018. (otl_gsub_lookup2_validate, otl_gsub_lookup4_validate): Update
  1019. function arguments.
  1020. (otl_ligature_set_validate): Add argument to pass glyph count.
  1021. Update caller.
  1022. (otl_sub_class_rule_validate,
  1023. otl_sub_class_rule_set_validate): Removed.
  1024. (otl_sub_rule_validate, otl_chain_sub_rule_validate): Add argument
  1025. to pass lookup count.
  1026. Update callers.
  1027. Add lookup index check.
  1028. (otl_sub_rule_set_validate, otl_chain_sub_rule_set_validate): Add
  1029. argument to pass lookup count.
  1030. Update callers.
  1031. (otl_gsub_lookup5_validate): Update function arguments.
  1032. Handle NULL offsets correctly.
  1033. Don't call otl_sub_class_rule_set_validate but
  1034. otl_sub_rule_set_validate.
  1035. Check sequence and lookup indices for format 3.
  1036. (otl_gsub_lookup6_validate): Update function arguments.
  1037. Handle NULL offsets correctly.
  1038. Check sequence and lookup indices for format 3.
  1039. (otl_gsub_lookup7_validate, otl_gsub_validate): Update function
  1040. arguments.
  1041. * src/otlayout/otlgsub.h: Updated.
  1042. * src/otlayout/otlbase.c (otl_base_validate): Handle NULL offsets
  1043. correctly.
  1044. * src/otlayout/otlcommn.c (otl_class_definition_validate): Fix
  1045. compiler warning.
  1046. (otl_coverage_get_first, otl_coverage_get_last): New functions.
  1047. (otl_lookup_validate): Add arguments to pass lookup and glyph
  1048. counts.
  1049. Update callers.
  1050. (otl_lookup_list_validate): Add argument to pass glyph count.
  1051. Update callers.
  1052. * src/otlayout/otlcommn.h: Updated.
  1053. * src/otlayout/otljstf.c (otl_jstf_extender_validate,
  1054. otl_jstf_max_validate, otl_jstf_script_validate,
  1055. otl_jstf_priority_validate, otl_jstf_lang_validate): Add parameter
  1056. to validate glyph indices.
  1057. Update callers.
  1058. (otl_jstf_validate): Add parameter which specifies number of glyphs
  1059. in font.
  1060. * src/otlayout/otljstf.h: Updated.
  1061. 2004-08-15 Werner Lemberg <wl@gnu.org>
  1062. * src/otlayout/otlgpos.c (otl_liga_mark2_validate): Add parameter
  1063. to handle possible NULL values properly.
  1064. Update all callers.
  1065. 2004-08-15 Werner Lemberg <wl@gnu.org>
  1066. * src/otlayout/gpos.c: Rename counting variables to be more
  1067. meaningful.
  1068. Add copyright.
  1069. (otl_liga_attach_validate): Renamed to...
  1070. (otl_liga_mark2_validate): This.
  1071. Update all callers.
  1072. (otl_mark2_array_validate): Removed.
  1073. (otl_gpos_lookup6_validate): Call otl_liga_mark2_validate, not
  1074. otl_mark2_array_validate.
  1075. (otl_pos_class_set_validate, otl_pos_class_rule_validate): Removed.
  1076. (otl_gpos_lookup7_validate): Complete code for format 2.
  1077. (otl_chain_pos_class_rule_validate,
  1078. otl_chain_pos_class_set_validate): Removed.
  1079. (otl_gpos_lookup8_validate): Don't call
  1080. otl_chain_pos_class_set_validate but
  1081. otl_chain_pos_rule_set_validate.
  1082. Simplify some code.
  1083. * src/otlayout/otlgpos.h: Add copyright.
  1084. 2004-08-14 Werner Lemberg <wl@gnu.org>
  1085. * src/otlayout/otljstf.c (otl_jstf_gsub_mods_validate): Removed.
  1086. (otl_jstf_gpos_mods_validate): Renamed to...
  1087. (otl_jstf_gsubgpos_mods_validate): This.
  1088. Test whether lookup_count is zero.
  1089. (otl_jstf_priority_validate): Use otl_jstf_gsubgpos_mods_validate.
  1090. (otl_jstf_validate): Initialize gsub_lookup_count and
  1091. gpos_lookup_count if gsub or gpos is zero.
  1092. * src/otlayout/otlgsub.c: Rename counting variables to be more
  1093. meaningful.
  1094. Add copyright.
  1095. (otl_gsub_lookup1_validate): Simplify code.
  1096. (otl_gsub_lookup2_validate, otl_gsub_lookup3_validate,
  1097. otl_gsub_lookup4_validate, otl_gsub_lookup7_validate): Remove unused
  1098. variables.
  1099. (otl_gsub_lookup5_validate): Remove unused variable.
  1100. Fix call to otl_sub_rule_set_validate and
  1101. otl_sub_class_rule_set_validate.
  1102. (otl_chain_sub_class_rule_validate,
  1103. otl_chain_sub_class_set_validate): Removed.
  1104. (otl_gsub_lookup6_validate): Remove unused variable.
  1105. Fix call to otl_chain_sub_rule_set_validate.
  1106. (otl_gsub_lookup7_validate): Handle lookup type 8 also.
  1107. (otl_gsub_lookup8_validate: New function.
  1108. (otl_gsub_lookup1_apply, otl_gsub_lookup2_apply,
  1109. otl_gsub_lookup3_apply): Commented out.
  1110. (otl_gsub_validate_funcs): Add otl_gsub_lookup7_validate and
  1111. otl_gsub_lookup8_validate.
  1112. (otl_gsub_validate): Updated.
  1113. * src/otlayout/otlgsub.h: Add copyright.
  1114. * src/otlayout/otlcommn.c, src/otlayout/otlcommn.h
  1115. (otl_coverage_get_index): Comment out.
  1116. 2004-08-13 Werner Lemberg <wl@gnu.org>
  1117. * src/otlayout/otlcommn.c (otl_gsubgpos_get_lookup_count): New
  1118. function.
  1119. * src/otlayout/otlcommn.h: Updated.
  1120. * src/otlayout/otlbase.c: Rename counting variables to be more
  1121. meaningful.
  1122. Add copyright message.
  1123. * src/otlayout/otlbase.h: Add copyright message.
  1124. * src/otlayout/otlgdef.c: Rename counting variables to be more
  1125. meaningful.
  1126. Add copyright message.
  1127. Use OTL_CHECK everywhere.
  1128. (otl_caret_value_validate): Remove unused variable.
  1129. (otl_gdef_validate): All tables are optional.
  1130. * src/otlayout/otlgdef.h: Add copyright message.
  1131. * src/otlayout/otljstf.c: Rename counting variables to be more
  1132. meaningful.
  1133. Add copyright message.
  1134. (otl_jstf_gsub_mods_validate, otl_jstf_gpos_mods_validate): Add
  1135. parameter to pass lookup count.
  1136. Update all callers.
  1137. Check lookup array.
  1138. (otl_jstf_max_validate):
  1139. s/otl_gpos_subtable_check/otl_gpos_subtable_validate/.
  1140. (otl_jstf_priority_validate, otl_jstf_lang_validate,
  1141. otl_jstf_script_validate): Add two parameters to pass lookup counts.
  1142. Update all callers.
  1143. (otl_jstf_validate): Add two parameters to pass GPOS and GSUB
  1144. table offsets; use otl_gsubgpos_get_lookup_count to convert extract
  1145. lookup counts.
  1146. Fix typo.
  1147. * src/otlayout/otljstf.h: Updated.
  1148. Add copyright message.
  1149. * src/otlayout/otlgpos.c (otl_gpos_subtable_validate): New function.
  1150. (otl_gpos_validate): Use it.
  1151. * src/otlayout/otlgpos.h: Updated.
  1152. 2004-08-13 Werner Lemberg <wl@gnu.org>
  1153. * src/otlayout/otcommn.c: Use OTL_CHECK everywhere.
  1154. (otl_coverage_validate): Initialize `p',
  1155. s/count/num_glyphs/.
  1156. s/start_cover/start_coverage/.
  1157. (otl_coverage_get_index): Return OTL_Long, not OTL_Int.
  1158. Remove unused variables.
  1159. (otl_class_definition_validate): s/count/num_glyphs/.
  1160. Remove unused variables.
  1161. (otl_class_definition_get_value, otl_device_table_get_start,
  1162. otl_device_table_get_end, otl_device_table_get_delta,
  1163. otl_lookup_get_table, otl_lookup_list_get_count,
  1164. otl_lookup_list_get_lookup, otl_lookup_list_get_table,
  1165. otl_feature_get_lookups, otl_feature_list_get_count,
  1166. otl_feature_list_get_feature, otl_lang_get_count,
  1167. otl_lang_get_req_feature, otl_lang_get_features): Commented out
  1168. temporarily until we really need it.
  1169. (otl_lookup_validate): Removed.
  1170. (otl_lookup_table_validate): Renamed to ...
  1171. (otl_lookup_validate): This. Update callers.
  1172. (otl_lookup_list_validate): Remove already commented out definition
  1173. and move the other definition up.
  1174. (otl_feature_validate): Add parameter to pass number of lookups.
  1175. Update callers.
  1176. Check lookup indices.
  1177. (otl_feature_list_validate): Add parameter to pass lookup table.
  1178. Update callers.
  1179. (otl_lang_validate): Add parameter to pass number of features.
  1180. Update callers.
  1181. Handle req_feature and check feature indices.
  1182. (otl_script_validate): Add parameter to pass number of features.
  1183. Update callers.
  1184. (otl_script_list_validate): Add parameter to pass feature table.
  1185. Update callers.
  1186. * src/otlayout/otcommn.h: s/LOCALDEF/LOCAL/.
  1187. Comment out the same functions as in otcommn.c.
  1188. (otl_script_list_get_script): Removed.
  1189. * src/otlayout/otlgsub.c (otl_gsub_lookup1_apply): Change `index' to
  1190. type OTL_Long.
  1191. (otl_gsub_lookup2_apply, otl_gsub_lookup3_apply): Change `index' to
  1192. type OTL_Long.
  1193. Fix test.
  1194. (otl_gsub_validate): Fix order of validation.
  1195. * src/otlayout/otlgpos.c (otl_gpos_validate): Fix order of
  1196. validation.
  1197. 2004-08-12 Werner Lemberg <wl@gnu.org>
  1198. Make otlayout module compile (without actually working).
  1199. * src/otlayout/*: s/OTL_Valid/OTL_Validator/.
  1200. s/NULL/0/.
  1201. * src/otlayout/otlayout.h: Fix various typos.
  1202. (OTL_Bool): New typedef.
  1203. (OTL_Int, OTL_Long, OTL_Int16, OTL_Int32): Use `signed' keyword.
  1204. (OTL_Err_InvalidArgument): Removed.
  1205. (OTL_Err_InvalidData, OTL_Err_InvalidSize): New enum values.
  1206. (OTL_MAKE_TAG): Add missing parenthesis.
  1207. (OTL_INVALID_DATA): Use OTL_Err_InvalidData.
  1208. (OTL_INVALID_TOO_SHORT): Use OTL_Err_InvalidSize.
  1209. (OTL_INVALID_FORMAT, OTL_INVALID_OFFSET): New macros.
  1210. * src/otlayout/otlgpos.c: s/FT_/OTL_/.
  1211. s/OTL_Short/OTL_Int16/.
  1212. (otl_gpos_pairset_validate): Add return type.
  1213. (otl_base_array_validate): Fix call to otl_anchor_validate.
  1214. (otl_liga_array_validate): Fix call to otl_liga_attach_validate.
  1215. (otl_gpos_lookup5_validate): Fix typos.
  1216. (otl_gpos_lookup6_validate): Fix call to otl_mark2_array_validate.
  1217. (otl_gpos_lookup7_validate): Comment out unfinished code.
  1218. Fix typos.
  1219. * src/otlayout/otlgsub.c: Add forward declaration for
  1220. otl_gsub_validate_funcs.
  1221. (otl_gsub_lookup1_apply, otl_gsub_lookup2_apply,
  1222. otl_gsub_lookup3_apply): Fix call to otl_parser_check_property.
  1223. s/otl_coverage_lookup/otl_coverage_get_index/.
  1224. (otl_ligature_validate): Add missing variable declaration.
  1225. (otl_sub_rule_validate): Fix typo.
  1226. (otl_sub_class_rule_validate): Add missing variable declaration.
  1227. Fix typo.
  1228. (otl_gsub_lookup5_validate): Fix typo.
  1229. (otl_gsub_lookup6_validate): Fix call to
  1230. otl_chain_sub_class_set_validate.
  1231. (otl_gsub_validate_funcs): Don't use `const'.
  1232. * src/otlayout/otlcommn.c (otl_class_definition_get_value,
  1233. otl_device_table_validate, otl_device_table_get_delta,
  1234. otl_lookup_validate, otl_script_validate): Add missing
  1235. variable declarations.
  1236. (otl_lookup_list_validate): Comment out first definition.
  1237. (otl_lookup_list_foreach, otl_feature_list_foreach): Comment out.
  1238. (otl_feature_list_validate):
  1239. s/otl_feature_table_validate/otl_feature_validate/.
  1240. (otl_script_list_validate):
  1241. s/otl_script_table_validate/otl_script_validate/.
  1242. * src/otlayout/otlcommn.h: Comment out first declaration.
  1243. (otl_lookup_list_foreach, otl_feature_list_foreach): Comment out.
  1244. * src/otlayout/otlbase.c (otl_base_coord_validate): Fix call to
  1245. otl_device_table_validate.
  1246. (otl_base_script_validate): Add missing variable declarations.
  1247. (otl_base_script_list_validate): Fix call to
  1248. otl_base_script_validate.
  1249. (otl_axis_table_validate): Fix calls to otl_base_tag_list_validate
  1250. and otl_base_script_list_validate.
  1251. (otl_base_validate): Fix calls to otl_axis_table_validate.
  1252. * src/otlayout/otlgdef.c (otl_attach_list_validate): Fix call to
  1253. otl_attach_point_validate.
  1254. (otl_caret_value_validate): Add missing variable declaration.
  1255. Fix call to otl_device_table_validate.
  1256. (otl_ligature_glyph_validate): Fix call to otl_caret_value_validate.
  1257. (otl_ligature_caret_list_validate): Fix call to
  1258. otl_ligature_glyph_validate.
  1259. (otl_gdef_validate): Fix calls to otl_class_definition_validate,
  1260. otl_attach_list_validate, otl_ligature_caret_list_validate, and
  1261. otl_class_definition_validate.
  1262. * src/otlayout/otltable.h (otl_table_validate, otl_table_init,
  1263. otl_table_set_script): Comment out.
  1264. * src/otlayout/otlparse.h (OTL_ParserRec):
  1265. s/OTL_Alternate/OTL_GSUB_Alternate/.
  1266. (OTL_ParseError): Add OTL_Err_Parser_Memory and
  1267. OTL_Err_Parser_Internal.
  1268. (otl_parser_error): Fix typo.
  1269. (otl_parser_check_property): Remove third argument.
  1270. * src/otlayout/otlparse.c (otl_string_ensure):
  1271. s/OTL_Parse_Err_Memory/OTL_Err_Parser_Memory/.
  1272. (OTL_STRING_ENSURE, otl_parser_error, otl_parser_get_index,
  1273. otl_parser_replace_1, otl_parser_replace_n): Fix typos.
  1274. (OTL_PARSER_UNCOVERED): Removed.
  1275. (otl_parser_check_property): Remove third argument.
  1276. * src/otlayout/otljstf.c (otl_jstf_priority_validate): Add missing
  1277. variable declaration.
  1278. * src/otlayout/otlutils.h (OTL_MEM_REALLOC): Fix typo.
  1279. 2004-08-11 Danny <dannyboynow@yahoo.com>
  1280. * src/base/ftstream.c (FT_Stream_Close): Don't reset stream->close
  1281. to NULL. This allows custom close functions to delete the FT_STREAM
  1282. object.
  1283. 2004-08-11 Werner Lemberg <wl@gnu.org>
  1284. Add API to get information about SFNT tables.
  1285. * include/freetype/internal/services/svsfnt.h
  1286. (FT_SFNT_Table_Info_Func): New typedef.
  1287. (SFNT_Table): Add it.
  1288. * src/base/ftobjs (FT_Sfnt_Table_Info): New function.
  1289. * include/freetype/tttables.h: Updated.
  1290. * src/sfnt/sfdriver.c (sfnt_table_info): New function.
  1291. (sfnt_service_sfnt_table): Add it.
  1292. * docs/CHANGES: Updated.
  1293. * include/freetype/freetype.h (FREETYPE_PATCH): Set to 10.
  1294. * builds/unix/configure.ac (version_info): Set to 9:8:3.
  1295. * builds/unix/configure: Updated.
  1296. * builds/win32/visualc/index.html,
  1297. builds/win32/visualc/freetype.dsp,
  1298. builds/win32/visualc/freetype.vcproj: s/219/2110/, s/2.1.9/2.1.10/.
  1299. * builds/freetype.mk (refdoc), README, Jamfile (RefDoc):
  1300. s/2.1.9/2.1.10/.
  1301. * docs/CHANGES, docs/VERSION.DLL: Updated.
  1302. 2004-08-11 Detlef Würkner <TetiSoft@apg.lahn.de>
  1303. * src/base/ftrfork.c (FT_Raccess_Guess)
  1304. [!FT_CONFIG_OPTION_GUESSING_EMBEDDED_RFORK]: Remove compiler
  1305. warnings.
  1306. 2004-08-06 Adam Piotrowski <st_intel@poczta.onet.pl>
  1307. * src/pfr/pfrload.c (pfr_sort_kerning_pairs): Single-byte
  1308. adjustments are unsigned, not signed.
  1309. 2004-08-05 David Turner <david@freetype.org>
  1310. `Activate' gray-scale specifying hinting within the TrueType
  1311. bytecode interpreter. This is an experimental feature which
  1312. should probably be made optional.
  1313. * src/truetype/ttgload.c (TT_Process_Simple_Glyph,
  1314. load_truetype_glyph): Move the code to set the pedantic_hinting flag
  1315. to...
  1316. (TT_Load_Glyph): Here.
  1317. Set `grayscale' flag except for `FT_LOAD_TARGET_MONO'.
  1318. * src/truetype/ttinterp.c (Ins_GETINFO): Return MS rasterizer
  1319. version 1.7.
  1320. Return rotation and stretching info only if glyph is rotated or
  1321. stretched, respectively.
  1322. Handle grayscale info.
  1323. * src/truetype/ttinterp.h (TT_ExecContextRec): Add `grayscale'
  1324. member.
  1325. 2004-08-02 George Williams <gww@silcom.com>
  1326. * src/base/ftobjs.c (FT_Attach_File): Initialize `open.stream'.
  1327. 2004-08-01 Werner Lemberg <wl@gnu.org>
  1328. * docs/CHANGES: Updated.
  1329. 2004-08-01 George Williams <gww@silcom.com>
  1330. FreeType now can read kerning values from PFM files.
  1331. * src/type1/t1afm.c (T1_Done_AFM): Renamed to...
  1332. (T1_Done_Metrics): This.
  1333. Update all callers.
  1334. (T1_Read_AFM): Make it static.
  1335. Don't enter and leave a frame.
  1336. (LITTLE_ENDIAN_USHORT, LITTLE_ENDIAN_UINT): New macros.
  1337. (T1_Read_PFM): New function.
  1338. (T1_Read_Metrics): New higher-level function to be used instead of
  1339. T1_Read_AFM.
  1340. Update all callers.
  1341. 2004-07-31 Werner Lemberg <wl@gnu.org>
  1342. * src/pcf/pcfread (pcf_load_font), src/bdf/bdfdrivr.c
  1343. (BDF_Face_Init), src/truetype/ttgxvar (TT_Get_MM_Var,
  1344. tt_face_vary_cvt): Fix compiler warnings.
  1345. 2004-07-26 Søren Sandmann <sandmann@daimi.au.dk>
  1346. * src/pcf/pcfread.c (pcf_interpret_style): Always allocate memory for
  1347. face->style_name.
  1348. * src/pcf/pcfdrivr.c (PCF_Face_Done): Free `style_name'.
  1349. 2004-07-26 Darren J Longhorn <darren.longhorn@redcom.co.uk>
  1350. * include/freetype/config/ftconfig.h (FT_SIZEOF_LONG): Recognize
  1351. five-byte `long' (which is avoided then).
  1352. 2004-07-25 Detlef Würkner <TetiSoft@apg.lahn.de>
  1353. * src/pcf/pcfdrivr.c (PCF_Set_Pixel_Size): Compare heights, not
  1354. ppem values.
  1355. (PCF_Set_Point_Size): Don't call PCF_Set_Pixel_Size but provide own
  1356. code to compare ppem values.
  1357. * src/bdf/bdfdrivr.c (BDF_Set_Pixel_Size): Compare heights, not
  1358. ppem values.
  1359. (BDF_Set_Point_Size): Don't call BDF_Set_Pixel_Size but provide own
  1360. code to compare ppem values.
  1361. 2004-07-25 Kornfeld Eliyahu Peter <peter@e-kadmon.net>
  1362. * src/sfnt/sfobjs.c (sfnt_load_face): Handle
  1363. TT_NAME_ID_PREFERRED_FAMILY and TT_NAME_ID_PREFERRED_SUBFAMILY.
  1364. 2004-07-24 Derek B. Noonburg <derekn@foolabs.com>
  1365. * src/cff/cffload.c (cff_font_load): Always create inverse mapping.
  1366. Even if the charstring count is the same as the CID count, it is
  1367. still possible that the font uses a different CID -> GID mapping.
  1368. 2004-07-23 Werner Lemberg <wl@gnu.org>
  1369. * src/truetype/ttobjs.c (tt_face_init): Accept 0x00020000 format tag
  1370. found in some Arphic fonts made for Chinese version of Windows 3.1.
  1371. 2004-07-17 David Turner <david@freetype.org>
  1372. Fixed a dangling pointer bug in the cache code that happened in very
  1373. rare cases, i.e., when a new family object was destroyed by an
  1374. out-of-memory condition during a glyph node initialization. The
  1375. function FTC_Cache_Lookup would flush the cache and restart the
  1376. lookup with a bad pointer.
  1377. * include/freetype/cache/ftcglyph.h (FTC_FAMILY_TREE): New macro.
  1378. (FTC_GCACHE_LOOKUP_CMP): Use it.
  1379. Handle reference count in `num_nodes' correctly.
  1380. * src/cache/ftcglyph.c (FTC_GNode_UnselectFamily): Use
  1381. FTC_FAMILY_FREE.
  1382. (FTC_GCache_Lookup): Handle reference count in `num_nodes' correctly.
  1383. * src/cache/ftcmanag.c (FTC_Manager_FlushN): Fixed a cache flushing
  1384. bug.
  1385. * src/truetype/ttinterp.c (Normalize): Fixed a bug that caused
  1386. long and unnecessary delays while normalizing huge vectors.
  1387. 2004-07-15 Werner Lemberg <wl@gnu.org>
  1388. * docs/CHANGES: Updated.
  1389. * src/base/ftstroke.c (FT_Stroker_ParseOutline): Fix compiler
  1390. warning.
  1391. 2004-07-15 David Turner <david@freetype.org>
  1392. * src/base/ftstroke.c (FT_Stroker_ParseOutline): Single points
  1393. are not stroked, preventing a bug with pala.ttf and other
  1394. fonts.
  1395. * include/freetype/ftstroke.h: Updating documentation comments.
  1396. 2004-07-13 Werner Lemberg <wl@gnu.org>
  1397. * src/base/ftstroke.c (ft_stroke_border_reverse): Removed. Unused.
  1398. 2004-07-12 David Turner <david@freetype.org>
  1399. * src/base/ftstroke.c (ft_stroke_border_close): Add second parameter
  1400. to indicate reversion of points.
  1401. Update all callers.
  1402. (ft_stroke_border_reverse): Fix initialization of `point1' and
  1403. `tag1'.
  1404. * src/cache/ftcsbits.c (ftc_snode_load): Fixing advance computation
  1405. for transformed glyphs.
  1406. 2004-07-11 David Turner <david@freetype.org>
  1407. Fix bugs that prevented the stroker to correctly generate stroked
  1408. paths from closed paths, i.e., nearly all glyphs in vectorial fonts.
  1409. The code is still _very_ buggy though; treat with special care.
  1410. * src/base/ftstroke.c (FT_STROKE_TAG_BEGIN_END): New macro.
  1411. (ft_stroke_border_reverse): New function.
  1412. (ft_stroker_inside): Remove local variable `sigma'; use different
  1413. threshold.
  1414. (ft_stroker_add_reverse_left): Switch begin/end tags if necessary.
  1415. (FT_Stroker_EndSubPath): Call ft_stroker_inside and
  1416. ft_stroke_border_reverse.
  1417. 2004-06-26 Peter Kovar <peter.kovar@r3.roburnet.sk>
  1418. * src/truetype/ttgload.c (load_truetype_glyph): Fix typo.
  1419. 2004-06-25 Werner Lemberg <wl@gnu.org>
  1420. * src/type1/t1afm.c (afm_atoindex): Fix boundary test. Reported
  1421. by Dirck Blaskey.
  1422. 2004-06-24 David Turner <david@freetype.org>
  1423. * Version 2.1.9 released.
  1424. =========================
  1425. * src/truetype/ttgload.c, src/truetype/ttxgvar.c: Removing
  1426. compiler warnings.
  1427. 2004-06-23 Werner Lemberg <wl@gnu.org>
  1428. * include/freetype/internal/ftmemory.h [FT_DEBUG_MEMORY]: Declare
  1429. FT_QAlloc_Debug and FT_QRealloc_Debug.
  1430. * src/base/ftutil.c (FT_QAlloc): Fix error and debug messages.
  1431. (FT_QRealloc): Call FT_QAlloc if original pointer is NULL.
  1432. Fix error message.
  1433. 2004-06-23 David Turner <david@freetype.org>
  1434. * include/freetype/internal/ftmemory.h, src/base/ftutil.c
  1435. (FT_QAlloc, FT_QRealloc), src/base/ftdbgmem.c (FT_QAlloc_Debug,
  1436. FT_QRealloc_Debug): New functions that perform allocation without
  1437. zero-ing out the corresponding blocks.
  1438. * include/freetype/internal/ftmemory.h (FT_MEM_QALLOC,
  1439. FT_MEM_QREALLOC, FT_MEM_QNEW, FT_MEM_QNEW_ARRAY,
  1440. FT_MEM_QRENEW_ARRAY, FT_QALLOC, FT_QREALLOC, FT_QNEW, FT_QNEW_ARRAY,
  1441. FT_QRENEW_ARRAY): New macros.
  1442. * src/base/ftstream.c (FT_Stream_EnterFrame): Use FT_QALLOC.
  1443. * src/gzip/ftgzip.c (FT_Stream_OpenGzip): Use FT_QNEW_ARRAY.
  1444. * src/sfnt/sfobjs.c (tt_face_get_name): Use FT_QNEW_ARRAY.
  1445. * src/sfnt/ttload.c (tt_face_load_directory, tt_face_load_metrics,
  1446. tt_face_load_gasp): Use FT_QNEW_ARRAY.
  1447. (tt_face_load_kern): Use FT_QNEW_ARRAY.
  1448. Small optimization in the kerning table verifier; this speeds up
  1449. TrueType face opening by about 7%.
  1450. (tt_face_load_hdmx): Use FT_QNEW_ARRAY and FT_QALLOC.
  1451. * include/freetype/config/ftmodule.h: Changed the order of modules,
  1452. putting TrueType and Type 1 first. This dramatically improves the
  1453. performance of face open/close operations. For example, putting the
  1454. TrueType driver first in the list results in a 5x speedup when
  1455. opening `Vera.ttf'.
  1456. The very problem is that both the PCF and BDF drivers do a lot more
  1457. than necessary to detect that they cannot handle a font file.
  1458. 2004-06-22 Werner Lemberg <wl@gnu.org>
  1459. * src/pcf/pcfread.c (pcf_read_TOC, pcf_get_properties,
  1460. pcf_get_metrics, pcf_get_bitmaps, pcf_get_encodings): Improve
  1461. debugging messages.
  1462. * src/pcf/pcfdrivr.c (FT_COMPONENT): Move up.
  1463. (PCF_Face_Init): Simplify code.
  1464. * src/bdf/bdfdrivr.h (BDF_FaceRec): New element `default_glyph'.
  1465. * src/bdf/bdflib.c (_bdf_add_property, _bdf_parse_start),
  1466. src/bdf/bdf.h (bdf_font_t): s/default_glyph/default_char/.
  1467. * src/bdf/bdfdrivr.c (BDF_Face_Init): Fix number of glyphs.
  1468. Set `default_glyph'.
  1469. (BDF_Glyph_Load): Use `default_glyph' for undefined glyph.
  1470. * docs/CHANGES: Updated.
  1471. 2004-06-21 Werner Lemberg <wl@gnu.org>
  1472. * docs/CHANGES: Updated.
  1473. 2004-06-21 David Turner <david@freetype.org>
  1474. * src/truetype/ttgload.c (TT_Process_Simple_Glyph,
  1475. load_truetype_glyph): Don't access (unrounded)
  1476. `TT_Size.root.metrics' but (rounded) `TT_Size.metrics'. This fixes
  1477. a scaling bug that caused incorrect rendering when the bytecode
  1478. interpreter was enabled.
  1479. 2004-06-14 Huw D M Davies <h.davies1@physics.ox.ac.uk>
  1480. * src/winfonts/winfnt.c (FNT_Face_Init): Set x_ppem and y_ppem
  1481. based on pixel_width and pixel_height.
  1482. (FNT_Size_Set_Pixels): Updated.
  1483. 2004-06-14 Werner Lemberg <wl@gnu.org>
  1484. * src/lzw/zopen.c: Comment out inclusion of signal.h and unistd.h.
  1485. Reported by Hyvärinen Jyrki Juhani.
  1486. 2004-06-11 Werner Lemberg <wl@gnu.org>
  1487. * docs/CHANGES: Updated.
  1488. 2004-06-10 David Turner <david@freetype.org>
  1489. * src/base/ftobject.c, src/base/fthash.c, src/base/ftexcept.c,
  1490. src/base/ftsysio.c, src/base/ftsysmem.c, src/base/ftlist.c: Removed.
  1491. Obsolete.
  1492. * src/raster/ftraster.c (Alignment, PAlignment): New union to fix
  1493. problems with 64bit systems.
  1494. (AlignProfileSize): Use it.
  1495. 2004-06-08 David Turner <david@freetype.org>
  1496. * include/freetype/freetype.h (FT_Glyph_Metrics): Move `lsb_delta'
  1497. and `rsb_delta' elements to...
  1498. (FT_GlyphSlotRec): Here to retain binary compatibility with older
  1499. FreeType versions.
  1500. Update all users.
  1501. * src/sfnt/sfobjs.c (tt_face_get_name): Remove compiler warning.
  1502. * src/winfonts/winfnt.c (FNT_Load_Glyph): Add missing initialization
  1503. of slot->metrics.width and slot->metrics.height when loading a
  1504. Windows FNT glyph. Thanks to Huw Davies.
  1505. * include/freetype/cache/ftcmru.h (FTC_MruNode_CompareFunc): Change
  1506. return type to FT_Bool.
  1507. * src/cache/ftcbasic.c (ftc_basic_family_compare): Change return
  1508. type to FT_Bool.
  1509. * src/cache/ftccache.c (FTC_Cache_Init, ftc_cache_init): Make
  1510. the former call the latter, not vice versa.
  1511. (FTC_Cache_Done, ftc_cache_done): Ditto.
  1512. * src/cache/ftcglyph.c (FTC_GNode_Compare, ftc_gnode_compare): Make
  1513. the former call the latter, not vice versa.
  1514. (FTC_GCache_Init, ftc_gcache_init): Ditto.
  1515. (FTC_GCache_Done, ftc_gcache_done): Ditto.
  1516. * src/cache/ftcimage.c (FTC_INode_Free, ftc_inode_free): Make the
  1517. former call the latter, not vice versa.
  1518. (FTC_INode_Weight, ftc_inode_weight): Ditto.
  1519. * src/cache/ftcmanag.c (ftc_size_node_compare,
  1520. ftc_size_node_compare_faceid, ftc_face_node_compare): Change return
  1521. type to FT_Bool.
  1522. * src/cache/ftcsbits.c (FTC_SNode_Free, ftc_snode_free): Make the
  1523. former call the latter, not vice versa.
  1524. (FTC_SNode_Weight, ftc_snode_weight): Ditto.
  1525. (FTC_SNode_Compare, ftc_snode_compare): Ditto.
  1526. * src/cache/ftcsbits.c: Fix some bugs and inefficiencies in the cache
  1527. sub-system.
  1528. 2004-06-05 Werner Lemberg <wl@gnu.org>
  1529. * src/autofit/afloader.c (af_loader_load_g): Set `lsb_delta' and
  1530. `rsb_delta' in slot->metrics and tune side bearings slightly.
  1531. 2004-06-04 Werner Lemberg <wl@gnu.org>
  1532. * docs/CHANGES: Updated.
  1533. 2004-06-04 David Chester <davidchester@qmx.net>
  1534. Improve inter-letter spacing for autohinted glyphs.
  1535. * include/freetype/freetype.h (FT_Glyph_Metrics): Add elements
  1536. `lsb_delta' and `rsb_delta'.
  1537. * src/autohint/ahhint.c (ah_hinter_load): Set `lsb_delta' and
  1538. `rsb_delta' in slot->metrics and tune side bearings slightly.
  1539. 2004-06-04 David Turner <david@freetype.org>
  1540. * src/autofit/*: Important fixes to the auto-fitter. The output
  1541. now seems to be 100% equivalent to the auto-hinter, while being
  1542. about 2% faster (which proves that script-specific algorithm
  1543. selection isn't a performance problem).
  1544. To test it, change `autohint' to `autofit' in
  1545. <freetype/config/ftmodule.h> and recompile.
  1546. A few more testing is needed before making this the official
  1547. auto-hinting module.
  1548. 2004-06-02 Werner Lemberg <wl@gnu.org>
  1549. * src/truetype/ttgload.c (compute_glyph_metrics): Fix compiler
  1550. warnings.
  1551. 2004-06-01 Werner Lemberg <wl@gnu.org>
  1552. * src/sfnt/sfobjs.c (tt_face_get_name): Make sure that an English
  1553. name record for the Apple platform is preferred to a non-English
  1554. entry for the Microsoft platform. Problem reported by HANDA
  1555. Ken'ichi.
  1556. 2004-05-19 George Williams <gww@silcom.com>
  1557. * src/type1/t1load.c (mm_axis_unmap, mm_weights_unmap): New
  1558. auxiliary functions.
  1559. (T1_Get_MM_Var): Provide axis tags.
  1560. Use mm_axis_unmap and mm_weights_unmap to provide default values
  1561. for design and normalized axis coordinates.
  1562. * include/freetype/t1tables.h (PS_DesignMapRec): Change type of
  1563. `design_points' to FT_Long.
  1564. Update all users.
  1565. 2004-05-17 Werner Lemberg <wl@gnu.org>
  1566. * src/base/ftbbox.c (BBox_Conic_Check): Fix boundary cases.
  1567. Reported by Mikey Anbary <manbary@vizrt.com>.
  1568. 2004-05-15 Werner Lemberg <wl@gnu.org>
  1569. * src/sfnt/sfobjs.c (sfnt_done_face): Free face->postscript_name.
  1570. 2004-05-15 George Williams <gww@silcom.com>
  1571. * src/sfnt/ttload.c (tt_face_load_max_profile): Always set
  1572. face->root.num_glyphs.
  1573. 2004-05-14 Masatake YAMATO <jet@gyve.org>
  1574. George Williams <gww@silcom.com>
  1575. * src/sfnt/ttload.c (sfnt_dir_check): Handle `bhed' properly.
  1576. 2004-05-14 Werner Lemberg <wl@gnu.org>
  1577. * src/cache/ftcbasic.c (ftc_basic_family_compare,
  1578. ftc_basic_family_init, ftc_basic_family_get_count,
  1579. ftc_basic_family_load_bitmap, ftc_basic_family_load_glyph,
  1580. ftc_basic_gnode_compare_faceid): Adjust parameters and return types
  1581. to prototypes given in header files from include/freetype/cache.
  1582. Use casts to proper types locally.
  1583. (ftc_basic_image_family_class, ftc_basic_image_cache_class,
  1584. ftc_basic_sbit_family_class, ftc_basic_sbit_cache_class): Remove
  1585. casts.
  1586. * src/cache/ftccback.h: Adjust parameters and return types to
  1587. prototypes given in header files from include/freetype/cache.
  1588. * src/cache/ftcimage.c (ftc_inode_free, ftc_inode_new,
  1589. ftc_inode_weight): Adjust parameters and return types to prototypes
  1590. given in header files from include/freetype/cache. Use casts to
  1591. proper types locally.
  1592. * src/cache/ftcsbits.c (ftc_snode_free, ftc_snode_new,
  1593. ftc_snode_weight, ftc_snode_compare): Adjust parameters and return
  1594. types to prototypes given in header files from
  1595. include/freetype/cache. Use casts to proper types locally.
  1596. * src/cache/ftccmap.c (ftc_cmap_node_free, ftc_cmap_node_new,
  1597. ftc_cmap_node_weight, ftc_cmap_node_compare,
  1598. ftc_cmap_node_remove_faceid): Adjust parameters and return types to
  1599. prototypes given in header files from include/freetype/cache. Use
  1600. casts to proper types locally.
  1601. (ftc_cmap_cache_class): Remove casts.
  1602. * src/cache/ftcglyph.c (ftc_gnode_compare, ftc_gcache_init,
  1603. ftc_gcache_done): Adjust parameters and return types to prototypes
  1604. given in header files from include/freetype/cache. Use casts to
  1605. proper types locally.
  1606. * src/cache/ftcmanag.c (ftc_size_node_done, ftc_size_node_compare,
  1607. ftc_size_node_init, ftc_size_node_reset,
  1608. ftc_size_node_compare_faceid, ftc_face_node_init,
  1609. ftc_face_node_done, ftc_face_node_compare: Adjust parameters and
  1610. return types to prototypes given in header files from
  1611. include/freetype/cache. Use casts to proper types locally.
  1612. (ftc_size_list_class, ftc_face_list_class): Remove casts.
  1613. 2004-05-13 Werner Lemberg <wl@gnu.org>
  1614. * src/autohint/ahmodule.c (ft_autohinter_init, ft_autohinter_done):
  1615. Use FT_Module as parameter and do a cast to FT_AutoHinter locally.
  1616. (autohint_module_class): Remove casts.
  1617. * src/base/ftglyph.c (ft_bitmap_glyph_init, ft_bitmap_glyph_copy,
  1618. ft_bitmap_glyph_done, ft_bitmap_glyph_bbox, ft_outline_glyph_init,
  1619. ft_outline_glyph_done, ft_outline_glyph_copy,
  1620. ft_outline_glyph_transform, ft_outline_glyph_bbox,
  1621. ft_outline_glyph_prepare): Use FT_Glyph as parameter and do a cast
  1622. to FT_XXXGlyph locally.
  1623. Use FT_CALLBACK_DEF throughout.
  1624. (ft_bitmap_glyph_class, ft_outline_glyph_class): Remove casts.
  1625. * src/bdf/bdfdrivr.c (bdf_cmap_init, bdf_cmap_done,
  1626. bdf_cmap_char_index, bdf_cmap_char_next): Use FT_CMap as parameter
  1627. and do a cast to BDF_CMap locally.
  1628. (bdf_cmap_class): Remove casts.
  1629. 2004-05-12 Werner Lemberg <wl@gnu.org>
  1630. * src/cff/cffgload.h (CFF_Builder): Remove `error'.
  1631. * src/cff/cffgload.c (cff_decoder_parse_charstrings): Replace
  1632. `Memory_Error' with `Fail' and update all users.
  1633. 2004-05-11 Werner Lemberg <wl@gnu.org>
  1634. * include/freetype/internal/psaux.h (T1_ParseState): New
  1635. enumeration.
  1636. (T1_BuilderRec): Replace `path_begun' with `parse_state'.
  1637. Remove `error'.
  1638. * src/psaux/t1decode.c (t1_decoder_parse_charstrings): Replace
  1639. `Memory_Error' with `Fail' and update all users.
  1640. Don't use `builder->error'.
  1641. Replace `path_begun' with `parse_state' and check parsing states.
  1642. * src/psaux/psobjs.c (t1_builder_init, t1_builder_start_point):
  1643. Replace `path_begun' with `parse_state' and check parsing states.
  1644. 2004-05-10 George Williams <gww@silcom.com>
  1645. * src/truetype/ttxgvar.c (ft_var_load_avar): Do free arrays in case
  1646. of error -- `avar' is optional so we can't rely on tt_done_blend
  1647. being called automatically.
  1648. 2004-05-09 George Williams <gww@silcom.com>
  1649. * src/truetype/ttxgvar.c (ft_var_load_avar, ft_var_load_gvar): Fix
  1650. error handling.
  1651. 2004-05-07 Werner Lemberg <wl@gnu.org>
  1652. * src/pfr/pfrobjs.c, src/pfr/pfrobjs.h (pfr_face_init,
  1653. pfr_face_done, pfr_face_get_kerning, pfr_slot_init, pfr_slot_done,
  1654. pfr_slot_load): Don't use PFR_XXX but FT_XXX arguments which are
  1655. typecast to the proper PFR_XXX types within the function.
  1656. Update code accordingly.
  1657. * src/pfr/pfrdrivr.c (pfr_get_kerning, pfr_get_advance,
  1658. pfr_get_metrics, pfr_get_service): Don't use PFR_XXX but FT_XXX
  1659. arguments which are typecast to the proper PFR_XXX types within the
  1660. function.
  1661. Update code accordingly.
  1662. Use FT_CALLBACK_DEF throughout.
  1663. (pfr_metrics_service_rec, pfr_driver_class): Remove casts.
  1664. 2004-05-06 Masatake YAMATO <jet@gyve.org>
  1665. * src/truetype/ttgxvar.c (ft_var_load_gvar): Use FT_FACE_STREAM.
  1666. (*): Rename local variable OffsetToData to offsetToData.
  1667. 2004-05-06 Werner Lemberg <wl@gnu.org>
  1668. * src/cff/cffobjs.c (cff_size_done, cff_size_init, cff_size_reset,
  1669. cff_slot_done, cff_slot_init, cff_face_init, cff_face_done): Access
  1670. root fields directly.
  1671. * src/cff/cffdrivr.c (Load_Glyph): Access root fields directly.
  1672. * src/truetype/ttgload.c (TT_Process_Simple_Glyph): Save current
  1673. frame before calling TT_Vary_Get_Glyph_Deltas.
  1674. * src/pcf/pcfdrivr.c (PCF_CMapRec): Rename `cmap' to `root' for
  1675. consistency.
  1676. (pcf_cmap_init, pcf_cmap_done, pcf_cmap_char_index,
  1677. pcf_cmap_char_next): Don't use PCF_XXX but FT_XXX arguments which
  1678. are typecast to the proper PCF_XXX types within the function.
  1679. Update code accordingly.
  1680. (pcf_cmap_class): Remove casts.
  1681. (PCF_Face_Done, PCF_Face_Init, PCF_Set_Pixel_Size): Don't use
  1682. PCF_XXX but FT_XXX arguments which are typecast to the proper
  1683. PCF_XXX types within the function.
  1684. Update code accordingly.
  1685. Use FT_CALLBACK_DEF throughout.
  1686. (PCF_Set_Point_Size): New wrapper function.
  1687. (PCF_Glyph_Load, pcf_driver_requester): Use FT_CALLBACK_DEF.
  1688. (pcf_driver_class): Remove casts.
  1689. 2004-05-04 Steve Hartwell <shspamsink@comcast.net>
  1690. * src/truetype/ttobjs.c (tt_driver_done): Fix typo.
  1691. 2004-05-04 Werner Lemberg <wl@gnu.org>
  1692. * src/bdf/bdfdrivr.c (BDF_Face_Done, BDF_Face_Init,
  1693. BDF_Set_Pixel_Size): Don't use BDF_XXX but FT_XXX arguments which
  1694. are typecast to the proper BDF_XXX types within the function.
  1695. Update code accordingly.
  1696. Use FT_CALLBACK_DEF throughout.
  1697. (BDF_Set_Point_Size): New wrapper function.
  1698. (bdf_driver_class): Remove casts.
  1699. * src/cff/cffdrivr.c (Get_Kerning, Load_Glyph, cff_get_interface):
  1700. Don't use CFF_XXX but FT_XXX arguments which are typecast to the
  1701. proper CFF_XXX types within the function.
  1702. Update code accordingly.
  1703. Use FT_CALLBACK_DEF throughout.
  1704. (cff_driver_class): Remove casts.
  1705. * src/cff/cffobjs.h, src/cff/cffobjs.c (cff_size_done,
  1706. cff_size_init, cff_size_reset, cff_slot_done, cff_slot_init,
  1707. cff_face_init, cff_face_done, cff_driver_init, cff_driver_done):
  1708. Don't use CFF_XXX but FT_XXX arguments which are typecast to the
  1709. proper CFF_XXX types within the function.
  1710. Update code accordingly.
  1711. (cff_point_size_reset): New wrapper function.
  1712. * src/cid/cidobjs.h, src/cid/cidobjs.c (cid_slot_done,
  1713. cid_slot_init, cid_size_done, cid_size_init, cid_size_reset,
  1714. cid_face_done, cid_face_init, cid_driver_init, cid_driver_done):
  1715. Don't use CID_XXX but FT_XXX arguments which are typecast to the
  1716. proper CID_XXX types within the function.
  1717. Update code accordingly.
  1718. (cid_point_size_reset): New wrapper function.
  1719. * src/cid/cidgload.c, src/cid/cidgload.h (cid_slot_load_glyph):
  1720. Don't use CID_XXX but FT_XXX arguments which are typecast to the
  1721. proper CID_XXX types within the function.
  1722. Update code accordingly.
  1723. * src/cid/cidriver.c (cid_get_interface):
  1724. Don't use CID_XXX but FT_XXX arguments which are typecast to the
  1725. proper CID_XXX types within the function.
  1726. Update code accordingly.
  1727. Use FT_CALLBACK_DEF.
  1728. (t1cid_driver_class): Remove casts.
  1729. * src/truetype/ttdriver.c (tt_get_interface): Use FT_CALLBACK_DEF.
  1730. * src/truetype/ttgxvar.c (ft_var_load_avar): Don't free non-local
  1731. variables (this is done later).
  1732. (ft_var_load_avar): Fix call to FT_FRAME_ENTER.
  1733. (TT_Get_MM_Var): Fix size for `fvar_fields'.
  1734. (TT_Vary_Get_Glyph_Deltas): Handle deallocation of local variables
  1735. correctly.
  1736. * src/base/ftdbgmem.c (ft_mem_debug_realloc): Don't abort if
  1737. current size is zero.
  1738. 2004-05-03 Steve Hartwell <shspamsink@comcast.net>
  1739. * src/truetype/ttobjs.h, src/truetype/ttobjs.c (tt_face_init,
  1740. tt_face_done, tt_size_init, tt_size_done, tt_driver_init,
  1741. tt_driver_done): Don't use TT_XXX but FT_XXX arguments which are
  1742. typecast to the proper TT_XXX types within the function.
  1743. Update code accordingly.
  1744. * src/truetype/ttdriver.c (Get_Kerning, Set_Char_Sizes,
  1745. Set_Pixel_Sizes, Load_Glyph, tt_get_interface): Don't use TT_XXX but
  1746. FT_XXX arguments which are typecast to the proper TT_XXX types
  1747. within the function.
  1748. Update code accordingly.
  1749. (tt_driver_class): Remove casts.
  1750. 2004-05-02 Werner Lemberg <wl@gnu.org>
  1751. * src/sfnt/ttload.c (tt_face_free_names): Check that `table->names'
  1752. is not NULL. Reported by Gordon Childs <gchilds@quickcut.com.au>.
  1753. 2004-04-29 Werner Lemberg <wl@gnu.org>
  1754. * docs/formats.txt: Add more information on PFR format.
  1755. 2004-04-28 Werner Lemberg <wl@gnu.org>
  1756. * docs/formats.txt: New file.
  1757. * docs/CHANGES: Updated.
  1758. 2004-04-28 Masatake YAMATO <jet@gyve.org>
  1759. * include/freetype/internal/tttypes.h (GX_BlendRec_)
  1760. [TT_CONFIG_OPTION_GX_VAR_SUPPORT]: Fix a typo.
  1761. * src/truetype/ttgxvar.h (GX_BlendRec_): Fix a typo.
  1762. 2004-04-27 Masatake YAMATO <jet@gyve.org>
  1763. * src/truetype/ttgxvar.h: Use FT_LOCAL instead of FT_LOCAL_DEF
  1764. for function declarations.
  1765. 2004-04-25 George Williams <gww@silcom.com>
  1766. * src/truetype/ttgxvar.c (ft_var_apply_tuple): Fix typo.
  1767. 2004-04-25 Werner Lemberg <wl@gnu.org>
  1768. * src/truetype/Jamfile, docs/CHANGES: Updated.
  1769. 2004-04-24 Werner Lemberg <wl@gnu.org>
  1770. * src/pcf/pcfdrivr.c: Revert change from 2004-04-17.
  1771. * src/pcf/pcfutil.c: Use FT_LOCAL_DEF.
  1772. * src/pcf/pcfutil.h: Include FT_CONFIG_CONFIG_H.
  1773. Use FT_BEGIN_HEADER and FT_END_HEADER.
  1774. Use FT_LOCAL.
  1775. 2004-04-24 George Williams <gww@silcom.com>
  1776. Add support for Apple's distortable font technology (in GX fonts).
  1777. * devel/ftoption.h, include/freetype/config/ftoption.h
  1778. (TT_CONFIG_OPTION_GX_VAR_SUPPORT): New macro.
  1779. * include/freetype/ftmm.h (FT_Var_Axis, FT_Var_Named_Style,
  1780. FT_MM_Var): New structures.
  1781. (FT_Get_MM_Var, FT_Set_Var_Design_Coordinates,
  1782. FT_Set_Var_Blend_Coordinates): New function declarations.
  1783. * include/freetype/internal/services/svmm.h (FT_Get_MM_Var_Func,
  1784. FT_Set_Var_Design_Func): New typedefs.
  1785. Update MultiMasters service.
  1786. * include/freetype/internal/tttypes.h
  1787. [TT_CONFIG_OPTION_GX_VAR_SUPPORT]: Include FT_MULTIPLE_MASTERS_H.
  1788. (GX_Blend) [TT_CONFIG_OPTION_GX_VAR_SUPPORT]: New typedef.
  1789. (TT_Face) [TT_CONFIG_OPTION_GX_VAR_SUPPORT]: New members `doblend'
  1790. and `blend'.
  1791. * include/freetype/tttags.h (TTAG_avar, TTAG_cvar, TTAG_gvar): New
  1792. macros.
  1793. * include/freetype/internal/fttrace.h: Add `ttgxvar'.
  1794. * src/base/ftmm.c (FT_Get_MM_Var, FT_Set_Var_Design_Coordinates,
  1795. FT_Set_Var_Blend_Coordinates): New functions.
  1796. * src/sfnt/sfobjs.c (sfnt_load_face)
  1797. [TT_CONFIG_OPTION_GX_VAR_SUPPORT]: Set FT_FACE_FLAG_MULTIPLE_MASTERS
  1798. flag for GX var fonts.
  1799. * src/truetype/ttgxvar.c, src/truetype/ttgxvar.h: New files.
  1800. * src/truetype/truetype.c [TT_CONFIG_OPTION_GX_VAR_SUPPORT]: Include
  1801. ttgxvar.c.
  1802. * src/truetype/ttdriver.c [TT_CONFIG_OPTION_GX_VAR_SUPPORT]: Include
  1803. FT_MULTIPLE_MASTERS_H, FT_SERVICE_MULTIPLE_MASTERS_H, and ttgxvar.h.
  1804. (tt_service_gx_multi_masters) [TT_CONFIG_OPTION_GX_VAR_SUPPORT]:
  1805. New service.
  1806. (tt_services) [TT_CONFIG_OPTION_GX_VAR_SUPPORT]: Updated.
  1807. * src/truetype/ttgload.c [TT_CONFIG_OPTION_GX_VAR_SUPPORT]: Include
  1808. ttgxvar.h.
  1809. (TT_Process_Simple_Glyph, load_truetype_glyph)
  1810. [TT_CONFIG_OPTION_GX_VAR_SUPPORT]: Support GX var fonts.
  1811. * src/truetype/ttobjs.c [TT_CONFIG_OPTION_GX_VAR_SUPPORT]: Include
  1812. ttgxvar.h.
  1813. (tt_done_face) [TT_CONFIG_OPTION_GX_VAR_SUPPORT]: Call
  1814. tt_done_blend.
  1815. * src/truetype/ttpload.c [TT_CONFIG_OPTION_GX_VAR_SUPPORT]: Include
  1816. ttgxvar.h.
  1817. (tt_face_load_cvt) [TT_CONFIG_OPTION_GX_VAR_SUPPORT]: Call
  1818. tt_face_vary_cvt.
  1819. * src/truetype/rules.mk (TT_DRV_SRC): Add ttgxvar.c.
  1820. * src/type1/t1driver.c (t1_service_multi_masters): Add T1_Get_MM_Var
  1821. and T1_Set_Var_Design.
  1822. * src/type1/t1load.c (FT_INT_TO_FIXED, FT_FIXED_TO_INT): New macros.
  1823. (T1_Get_MM_Var, T1_Set_Var_Design): New functions.
  1824. * src/type1/t1load.h (T1_Get_MM_Var, T1_Set_Var_Design): New
  1825. function declarations.
  1826. 2004-04-23 Werner Lemberg <wl@gnu.org>
  1827. * include/freetype/ftcache.h (FT_Get_CharMap_Index): Rename
  1828. declaration and move to...
  1829. * include/freetype/freetype.h (FT_Get_Charmap_Index): Here.
  1830. (FREETYPE_PATCH): Set to 9.
  1831. * src/base/ftobjs.c (FT_Get_Charmap_Index): New function.
  1832. * builds/unix/configure.ac (version_info): Set to 9:7:3.
  1833. * builds/unix/configure: Updated.
  1834. * builds/win32/visualc/index.html,
  1835. builds/win32/visualc/freetype.dsp,
  1836. builds/win32/visualc/freetype.vcproj: s/218/219/.
  1837. * builds/freetype.mk (refdoc), README, Jamfile (RefDoc):
  1838. s/2.1.8/2.1.9/.
  1839. * docs/CHANGES, docs/VERSION.DLL: Updated.
  1840. 2004-04-21 Werner Lemberg <wl@gnu.org>
  1841. * src/cff/cffparse.c (cff_parser_run), src/psaux/psobjs.c
  1842. (ps_parser_load_field): Use FT_CHAR_BIT.
  1843. 2004-04-21 David Turner <david@freetype.org>
  1844. * Version 2.1.8 released.
  1845. =========================
  1846. * src/cff/cffobjs.c (cff_face_init): Fix a small memory leak.
  1847. * src/autofit/afloader.c (af_loader_load_g), src/autofit/afmodule.c
  1848. (af_autofitter_load_glyph), src/base/ftdebug.c (FT_Trace_Get_Name):
  1849. Remove compiler warnings.
  1850. * src/autofit/aftypes.h: Undefine AF_DEBUG.
  1851. * src/lzw/zopen.c (rmask), src/pcf/pcfdrivr.c (pcf_service_bdf,
  1852. pcf_services), src/pcf/pcfread.c (tableNames), src/psaux/psobjs.c
  1853. (ft_char_table), src/type42/t42drivr.c (t42_service_glyph_dict,
  1854. t42_service_ps_font_name): Decorate data arrays with `const' to
  1855. avoid populating the `.data' segment.
  1856. * src/lzw/Jamfile: New file.
  1857. 2004-04-20 Werner Lemberg <wl@gnu.org>
  1858. * src/psaux/psobjs.c (T1Radix): Renamed to...
  1859. (ps_radix): This.
  1860. Update current cursor position.
  1861. * docs/CHANGES: Updated.
  1862. 2004-04-18 Werner Lemberg <wl@gnu.org>
  1863. * src/truetype/ttgload.c, src/truetype/ttgload.h (TT_Load_Glyph),
  1864. src/ttdriver.c (Load_Glyph): Change type of `glyph_index' to
  1865. FT_UInt. From Lex Warners.
  1866. 2004-04-17 Chisato Yamauchi <cyamauch@a.phys.nagoya-u.ac.jp>
  1867. * src/sfnt/ttload.c (tt_face_load_sfnt_header): Really fix change
  1868. from 2004-03-19.
  1869. * src/bdf/bdfdrivr.c (BDF_Face_Init): Use `ft_strlen'.
  1870. * src/pcf/pcfutil.c, src/pcf/pcfutil.h: Decorate functions with
  1871. `static'.
  1872. Remove unused function `RepadBitmap'.
  1873. * src/pcf/pcfdrivr.c: Don't include pcfutil.h.
  1874. 2004-04-16 Werner Lemberg <wl@gnu.org>
  1875. * builds/unix/freetype-config.in (usage): Fix and improve usage
  1876. information.
  1877. 2004-04-15 Werner Lemberg <wl@gnu.org>
  1878. * builds/unix/ftconfig.in, builds/vms/ftconfig.h: Define
  1879. FT_CHAR_BIT.
  1880. * src/base/ftobjs.c (FT_Load_Glyph): Don't apply autohinting if
  1881. glyph is vertically distorted or mirrored.
  1882. * src/cff/cffgload.c (cff_slot_load): Handle zero `size' properly
  1883. for embedded bitmaps.
  1884. * docs/CHANGES: Updated.
  1885. 2004-04-15 bytesoftware <bytesoftware@btinternet.com>
  1886. * include/freetype/config/ftconfig.h, src/base/ftstream.c
  1887. (FT_Stream_ReadFields): More fixes using FT_CHAR_BIT.
  1888. 2004-04-14 Werner Lemberg <wl@gnu.org>
  1889. * include/freetype/config/ftconfig.h (FT_CHAR_BIT): New macro.
  1890. 2004-04-14 Alex Strelnikov <ptktyrf@mail.ru>
  1891. * src/cache/ftcsbits.c (ftc_snode_load): Initialize `*asize' in case
  1892. of error.
  1893. 2004-04-14 Werner Lemberg <wl@gnu.org>
  1894. * src/base/ftmac.c [__GNUC__]: Define OS_INLINE.
  1895. * builds/unix/configure.ac: Don't try to remove `-ansi' compilation
  1896. switch on the Mac.
  1897. * builds/unix/ltmain.sh: Regenerated with `libtoolize --force
  1898. --copy' from libtool 1.5.6.
  1899. * builds/unix/aclocal.m4: Regenerated with `aclocal -I .' from
  1900. automake 1.8a.
  1901. * builds/unix/configure: Regenerated with autoconf 2.59a.
  1902. 2004-04-13 Werner Lemberg <wl@gnu.org>
  1903. * include/freetype/config/ftconfig.h: Use CHAR_BIT to define
  1904. size of FT_SIZEOF_xxx.
  1905. 2004-04-12 Chisato Yamauchi <cyamauch@a.phys.nagoya-u.ac.jp>
  1906. * include/freetype/internal/sfnt.h (TT_Find_SBit_Image_Func,
  1907. TT_Load_SBit_Metrics_Func): New typedefs.
  1908. (SFNT_Interface): Add find_sbit_image and load_sbit_metrics.
  1909. * src/sfnt/sfdriver.c (sfnt_interface): Updated.
  1910. * src/sfnt/ttsbit.h (tt_find_sbit_image, tt_load_sbit_metrics): New
  1911. declarations.
  1912. * src/sfnt/ttsbit.c (find_sbit_image): Renamed to...
  1913. (tt_find_sbit_image): This.
  1914. Updated all callers.
  1915. (load_sbit_metrics): Renamed to...
  1916. (tt_load_sbit_metrics): This.
  1917. Updated all callers.
  1918. 2004-04-12 Werner Lemberg <wl@gnu.org>
  1919. * configure: Accept makepp also.
  1920. * builds/unix/detect.mk: Use proper path to unix-def.mk.
  1921. * builds/unix/unix-def.in (BUILD_DIR, PLATFORM): Remove.
  1922. * builds/unix/unix.mk (BUILD_DIR, PLATFORM): Define.
  1923. Use BUILD_DIR.
  1924. * docs/INSTALL, docs/INSTALL.GNU, docs/INSTALL.UNX: Update
  1925. documentation on makepp.
  1926. 2004-04-11 Werner Lemberg <wl@gnu.org>
  1927. * src/lzw/zopen.c: Don't include sys/param.h and sys/stat.h.
  1928. 2004-04-10 Werner Lemberg <wl@gnu.org>
  1929. * src/lzw/ftlzw.c: Include zopen.h dependent on
  1930. FT_CONFIG_OPTION_USE_LZW.
  1931. * src/base/ftdebug.c: s/index/idx/ to avoid compiler warnings.
  1932. 2004-04-02 Werner Lemberg <wl@gnu.org>
  1933. * builds/unix/ltmain.sh: Regenerated with `libtoolize --force
  1934. --copy' from libtool 1.5.2.
  1935. * builds/unix/aclocal.m4: Regenerated with `aclocal -I .' from
  1936. automake 1.8a.
  1937. * builds/unix/configure: Regenerated with autoconf 2.59a.
  1938. 2004-04-01 Werner Lemberg <wl@gnu.org>
  1939. * builds/unix/ft-munmap.m4 (FT_MUNMAP_PARAM): Fix arguments of
  1940. AC_COMPILE_IFELSE.
  1941. * builds/unix/aclocal.m4: Regenerated with `aclocal -I .' from
  1942. automake 1.8a.
  1943. * builds/unix/configure: Regenerated with autoconf 2.59a.
  1944. * builds/unix/config.guess, builds/unix/config.sub: Updated from
  1945. `config' CVS module at subversions.gnu.org.
  1946. * builds/unix/install-sh, builds/unix/mkinstalldirs: Updated from
  1947. `texinfo' CVS module at subversions.gnu.org.
  1948. * builds/freetype.mk (refdoc): Updated.
  1949. 2004-03-31 Werner Lemberg <wl@gnu.org>
  1950. Handle broken FNT files which don't have a trailing NULL byte
  1951. in the face name string.
  1952. * src/winfonts/winfnt.h (FNT_FontRec): New member `family_name'.
  1953. * src/winfonts/winfnt.c (fnt_font_done): Free font->family_name.
  1954. (FNT_Face_Init): Append a final zero byte to the font face name.
  1955. 2004-03-30 Werner Lemberg <wl@gnu.org>
  1956. * src/sfnt/ttload.c (tt_face_load_sfnt_header): Fix change from
  1957. 2004-03-19.
  1958. 2004-03-27 Werner Lemberg <wl@gnu.org>
  1959. * src/base/descrip.mms (OBJS): Add ftbbox.obj.
  1960. 2004-03-26 George Williams <gww@silcom.com>
  1961. Add vertical phantom points.
  1962. * include/freetype/internal/tttypes.h (TT_LoaderRec): Add
  1963. `top_bearing', `vadvance', `pp3', and `pp4'.
  1964. * src/autofit/afloader.c (af_loader_load_g): Handle two more points.
  1965. * src/autohint/ahhint.c (ah_hinter_load): Handle two more points.
  1966. * src/truetype/ttgload.c (Get_VMetrics): New function.
  1967. (TT_Load_Simple_Glyph, TT_Process_Simple_Glyph): Handle two more
  1968. points.
  1969. (load_truetype_glyph): Use Get_VMetrics.
  1970. Handle two more points.
  1971. (compute_glyph_metrics): Thanks to vertical phantom points we now
  1972. can always compute `advance_height' and `top_bearing'.
  1973. * src/truetype/ttobjs.h (TT_SubglyphRec): Add vertical phantom
  1974. points.
  1975. * src/autohint/ahglyph.c (ah_outline_load): Fix allocation of
  1976. `news'.
  1977. 2004-03-21 Werner Lemberg <wl@gnu.org>
  1978. * src/bdf/bdfdrivr.c (BDF_Glyph_Load): Fix left side bearing.
  1979. 2004-03-20 Steve Hartwell <shspamsink@comcast.net>
  1980. * src/cache/ftcmru.c (FTC_MruList_RemoveSelection): Handle a NULL
  1981. value for `selection' as `select all'.
  1982. 2004-03-19 Steve Hartwell <shspamsink@comcast.net>
  1983. * src/sfnt/ttload.c (tt_face_load_sfnt_header): Reject face_index
  1984. values > 0 if loading non-TTC fonts.
  1985. * src/base/ftmac.c (open_face_from_buffer): Set positive face_index
  1986. to zero before calling FT_Open_Face.
  1987. * docs/CHANGES: Updated.
  1988. 2004-03-04 Werner Lemberg <wl@gnu.org>
  1989. * Jamfile, vms_make.com, builds/win32/visualc/freetype.dsp,
  1990. builds/win32/visualc/freetype/vcproj, include/freetype/ftmoderr.h:
  1991. Add LZW module.
  1992. * Jamfile.in: Removed.
  1993. * docs/CHANGES: Updated.
  1994. * include/freetype/internal/ftobjs.h: s/MIN/FT_MIN/, s/MAX/FT_MAX/,
  1995. s/ABS/FT_ABS/. Updated all callers.
  1996. * src/type1/t1load.c (parse_dict), src/pcf/pcfdrivr.c
  1997. (PCF_Face_Init): Use FT_ERROR_BASE.
  1998. 2004-03-04 Albert Chin <china@thewrittenword.com>
  1999. Add support for PCF fonts compressed with LZW (extension .pcf.Z,
  2000. created with `compress').
  2001. * include/freetype/config/ftoption.h, devel/ftoption.h
  2002. (FT_CONFIG_OPTION_USE_LZW): New macro.
  2003. * include/freetype/ftlzw.h: New file.
  2004. * include/freetype/config/ftheader.h (FT_LZW_H): New macro for
  2005. ftlzw.h.
  2006. * src/lzw/*: New files.
  2007. * src/pcf/pcfdrivr.c: Include FT_LZW_H.
  2008. (PCF_Face_Init): Try LZW also.
  2009. * src/gzip/ftgzip.c: s/0/Gzip_Err_Ok/ where appropriate.
  2010. Beautify.
  2011. 2004-03-03 Werner Lemberg <wl@gnu.org>
  2012. * src/pshinter/pshalgo.c (psh_hint_table_init): Simplify code.
  2013. 2004-03-02 Werner Lemberg <wl@gnu.org>
  2014. Add embedded bitmap support to CFF driver.
  2015. * src/cff/cffobjs.h (CFF_SizeRec): New structure.
  2016. * src/cff/cffgload.c (cff_builder_init): Updated.
  2017. (cff_slot_load): Updated.
  2018. [TT_CONFIG_OPTION_EMBEDDED_BITMAPS]: Load sbit.
  2019. * src/cff/cffobjs.c (sbit_size_reset)
  2020. [TT_CONFIG_OPTION_EMBEDDED_BITMAPS]: New function.
  2021. (cff_size_get_globals_funcs, cff_size_done, cff_size_init): Updated.
  2022. (cff_size_reset): Updated.
  2023. [TT_CONFIG_OPTION_EMBEDDED_BITMAPS]: Call sbit_size_reset.
  2024. * src/cff/cffdrivr.c (Load_Glyph): Updated.
  2025. (cff_driver_class): Use CFF_SizeRec.
  2026. * docs/CHANGES: Updated.
  2027. 2004-03-01 Werner Lemberg <wl@gnu.org>
  2028. * src/pshinter/pshglob.c (psh_globals_scale_widths): Don't use
  2029. FT_RoundFix but FT_PIX_ROUND.
  2030. (psh_blues_snap_stem): Don't use blue_shift but blue_threshold.
  2031. * src/pshinter/pshalgo.c (PSH_STRONG_THRESHOLD_MAXIMUM): New macro.
  2032. (psh_glyph_find_strong_points): Use PSH_STRONG_THRESHOLD_MAXIMUM.
  2033. (psh_glyph_find_blue_points): New function. Needed for fonts like
  2034. p052003l.pfb (URW Palladio L Roman) which have flex curves at the
  2035. base line within blue zones, but the flex curves aren't covered by
  2036. hints.
  2037. (ps_hints_apply): Use psh_glyph_find_blue_points.
  2038. 2004-02-27 Garrick Meeker <garrick@digitalanarchy.com>
  2039. * builds/unix/configure.ac: Fix compiler flags for
  2040. `--with-old-mac-fonts'.
  2041. * builds/unix/configure: Regenerated.
  2042. * src/base/ftmac.c: s/TARGET_API_MAC_CARBON/!TARGET_API_MAC_OS8/.
  2043. (FT_New_Face_From_Resource): New function.
  2044. (FT_New_Face): Use FT_New_Face_From_Resource.
  2045. (FT_New_Face_From_FSSpec): Use FT_New_Face_From_Resource.
  2046. [__MWERKS__]: Don't include FSp_fopen.h.
  2047. 2004-02-26 Werner Lemberg <wl@gnu.org>
  2048. * src/pshinter/pshglob.c (psh_globals_new): Fix value of
  2049. `dim->stdw.count'.
  2050. Don't assign default values to blue scale and blue shift.
  2051. 2004-02-25 Werner Lemberg <wl@gnu.org>
  2052. * docs/CHANGES: Updated.
  2053. 2004-02-25 Garrick Meeker <garrick@digitalanarchy.com>
  2054. Steve Hartwell <shspamsink@comcast.net>
  2055. Improve MacOS fond support. Provide a new API
  2056. `FT_New_Face_From_FSSpec' similar to `FT_New_Face'.
  2057. * src/base/ftmac.c [__MWERKS__]: Include FSp_fopen.h.
  2058. STREAM_FILE [__MWERKS__]: New macro.
  2059. (ft_FSp_stream_close, ft_FSp_stream_io) [__MWERKS__]: New functions.
  2060. (file_spec_from_path) [__MWERKS__]: Updated #if statement.
  2061. (get_file_type, make_lwfn_spec): Use `const' for argument.
  2062. (is_dfont) [TARGET_API_MAC_CARBON]: Removed.
  2063. (count_face_sfnt, count_faces): New functions.
  2064. (parse_fond): Do some range checking.
  2065. (read_lwfn): Change type of second argument.
  2066. No longer call FSpOpenResFile.
  2067. (OpenFileAsResource): New function.
  2068. (FT_New_Face_From_LWFN): Use `const' for second argument.
  2069. Use OpenFileAsResource.
  2070. (FT_New_Face_From_Suitcase): Change type of second argument.
  2071. No longer call FSpOpenResFile.
  2072. Loop over all resource indices.
  2073. (FT_New_Face_From_dfont) [TARGET_API_MAC_CARBON]: Removed.
  2074. (FT_GetFile_From_Mac_Name): Use `const' for first argument.
  2075. (ResourceForkSize): Removed.
  2076. (FT_New_Face): Updated to use new functions.
  2077. (FT_New_Face_From_FSSpec): New function.
  2078. * include/freetype/ftmac.h: Updated.
  2079. 2004-02-24 Malcolm Taylor <mtaylor@clear.net.nz>
  2080. * src/autohint/ahhint.c (ah_hinter_load) <FT_GLYPH_FORMAT_OUTLINE>:
  2081. Handle case where outline->num_vedges is zero while computing hinted
  2082. metrics.
  2083. 2004-02-24 Gordon Childs <gchilds@quickcut.com.au>
  2084. * src/cff/cffcmap.c (cff_cmap_unicode_init): Provide correct value
  2085. for `count'.
  2086. 2004-02-24 Werner Lemberg <wl@gnu.org>
  2087. * include/freetype/t1tables.h (PS_PrivateRec): Add
  2088. `expansion_factor'.
  2089. * src/pshinter/pshglob (psh_blues_scale_zones): Fix computation
  2090. of blues->no_overshoots -- `blues_scale' is stored with a
  2091. magnification of 1000, and `scale' returns fractional pixels.
  2092. * src/type1/t1load.c (T1_Open_Face): Initialize `blue_shift',
  2093. `blue_fuzz', `expansion_factor', and `blue_scale' according to the
  2094. Type 1 specification.
  2095. * src/type1/t1tokens.h: Handle `ExpansionFactor'.
  2096. * docs/CHANGES: Updated.
  2097. 2004-02-24 Masatake YAMATO <jet@gyve.org>
  2098. Provide generic access to MacOS resource forks.
  2099. * src/base/ftrfork.c, include/freetype/internal/ftrfork.h: New
  2100. files.
  2101. * src/base/ftobjs.c: Include FT_INTERNAL_RFORK_H.
  2102. (Mac_Read_POST_Resource, Mac_Read_sfnt_Resource): Remove arguments
  2103. `resource_listoffset' and `resource_data' and adapt code
  2104. accordingly. These values are calculated outside of the function
  2105. now.
  2106. Add new argument `offsets'.
  2107. (IsMacResource): Use `FT_Raccess_Get_HeaderInfo' and
  2108. `FT_Raccess_Get_DataOffsets'.
  2109. (load_face_in_embedded_rfork): New function.
  2110. (load_mac_face): Use load_face_in_embedded_rfork.
  2111. (ft_input_stream_new): Renamed to...
  2112. (FT_Stream_New): This. Use FT_BASE_DEF. Updated all callers.
  2113. (ft_input_stream_free): Renamed to...
  2114. (FT_Stream_Free): This. Use FT_BASE_DEF. Updated all callers.
  2115. * src/base/ftbase.c: Include ftrfork.c.
  2116. * src/base/rules.mk (BASE_SRC), src/base/Jamfile: Updated.
  2117. * include/freetype/internal/internal.h (FT_INTERNAL_RFORK_H):
  2118. New macro.
  2119. * include/freetype/internal/fttrace.h: Added `rfork' as a new
  2120. trace definition.
  2121. * include/freetype/internal/ftstream.h: Declare FT_Stream_New and
  2122. FT_Stream_Free.
  2123. * include/freetype/config/ftoption.h, devel/ftoption.h
  2124. (FT_CONFIG_OPTION_GUESSING_EMBEDDED_RFORK): New option.
  2125. * include/freetype/config/ftstdlib.h (ft_strrchr): New macro.
  2126. 2004-02-23 Werner Lemberg <wl@gnu.org>
  2127. * docs/CHANGES: Updated.
  2128. * include/freetype/internal/ftdebug.h: Include FT_FREETYPE_H.
  2129. 2004-02-23 Masatake YAMATO <jet@gyve.org>
  2130. Provide a simple API to control FreeType's tracing levels.
  2131. * include/freetype/internal/ftdebug.h (FT_Trace_Get_Count,
  2132. FT_Trace_Get_Name): New declarations.
  2133. * src/base/ftdebug.c (FT_Trace_Get_Count, FT_Trace_Get_Name): New
  2134. functions.
  2135. 2004-02-23 David Turner <david@freetype.org>
  2136. * src/autofit/afhints.c, src/autofit/afhints.h,
  2137. src/autofit/aflatin.c, src/autofit/afloader.c, src/types.h: Grave
  2138. bugs have been fixed. The auto-fitter works, doesn't crash, but
  2139. still produces unexpected results...
  2140. 2004-02-21 Werner Lemberg <wl@gnu.org>
  2141. * src/pshinter/pshalgo.c (PSH_STRONG_THRESHOLD): Changed to hold
  2142. the accepted shift for strong points in fractional pixels (which
  2143. is a heuristic value).
  2144. (psh_glyph_find_strong_points): Compute threshold for
  2145. psh_hint_table_find_strong_points.
  2146. (psh_hint_table_find_strong_point): Add parameter to pass threshold.
  2147. 2004-02-20 Werner Lemberg <wl@gnu.org>
  2148. * src/pshinter/pshrec.c (ps_mask_table_set_bits): Don't call
  2149. ps_mask_table_alloc but ps_mask_table_last.
  2150. (ps_hints_t2mask): Use correct position and number for vertical
  2151. and horizontal hinter mask bits.
  2152. * docs/CHANGES: Updated.
  2153. 2004-02-19 Werner Lemberg <wl@gnu.org>
  2154. * src/base/ftstroke.c (FT_Glyph_StrokeBorder): Fix enum handling.
  2155. * src/cff/cffdrivr.c (cff_get_cmap_info): Remove compiler warning.
  2156. 2004-02-18 Werner Lemberg <wl@gnu.org>
  2157. * include/freetype/freetype.h: Document FT_LOAD_TARGET_XXX properly.
  2158. * src/base/ftglyph.c (ft_bitmap_glyph_class,
  2159. ft_outline_glyph_class): Tag with FT_CALLBACK_TABLE_DEF.
  2160. * src/smooth/ftsmooth.c (ft_smooth_render): Handle
  2161. FT_RENDER_MODE_LIGHT.
  2162. 2004-02-17 Werner Lemberg <wl@gnu.org>
  2163. Fix callback functions in cache module.
  2164. * src/cache/ftccback.h: New file for callback declarations.
  2165. * src/cache/ftcbasic.c (ftc_basic_family_compare,
  2166. ftc_basic_family_init, ftc_basic_family_get_count,
  2167. ftc_basic_family_load_bitmap, ftc_basic_family_load_glyph,
  2168. ftc_basic_gnode_compare_faceid): Use FT_CALLBACK_DEF.
  2169. (ftc_basic_image_family_class, ftc_basic_image_cache_class,
  2170. ftc_basic_sbit_family_class, ftc_basic_sbit_cache_class):
  2171. Use FT_CALLBACK_TABLE_DEF and local wrapper functions.
  2172. * src/cache/ftccache.c: Include ftccback.h.
  2173. (ftc_cache_init, ftc_cache_done): New wrapper functions which use
  2174. FT_LOCAL_DEF.
  2175. * src/cache/ftccmap.c: Include ftccback.h.
  2176. (ftc_cmap_cache_class): Use local wrapper functions.
  2177. * src/cache/ftcglyph.c: Include ftccback.h.
  2178. (ftc_gnode_compare, ftc_gcache_init, ftc_gcache_done): New wrapper
  2179. functions which use FT_LOCAL_DEF.
  2180. * src/cache/ftcimage.c: Include ftccback.h.
  2181. (ftc_inode_free, ftc_inode_new, ftc_inode_weight): New wrapper
  2182. functions which use FT_LOCAL_DEF.
  2183. * src/cache/ftcmanag.c (ftc_size_list_class, ftc_face_list_class):
  2184. Use FT_CALLBACK_TABLE_DEF.
  2185. * src/cache;/ftcsbits.c: Include ftccback.h.
  2186. (ftc_snode_free, ftc_snode_new, ftc_snode_weight,
  2187. ftc_snode_compare): New wrapper functions which use FT_LOCAL_DEF.
  2188. * src/cache/rules.mk (CACHE_DRV_H): Add ftccback.h.
  2189. 2004-02-17 Masatake YAMATO <jet@gyve.org>
  2190. * include/freetype/ftmac.h (FT_GetFile_From_Mac_Name): Fix a typo
  2191. (FT_EXPORT_DEF -> FT_EXPORT).
  2192. * include/freetype/ftxf86.h (FT_Get_X11_Font_Format): Ditto.
  2193. 2004-02-15 Werner Lemberg <wl@gnu.org>
  2194. * src/base/ftobjs.c (FT_Set_Char_Size): Fix typo.
  2195. 2004-02-14 Masatake YAMATO <jet@gyve.org>
  2196. * builds/unix/ftsystem.c: Include errno.h.
  2197. (ft_close_stream): Renamed to...
  2198. (ft_close_stream_by_munmap): This.
  2199. (ft_close_stream_by_free): New function.
  2200. (FT_Stream_Open): Use fallback method if mmap fails.
  2201. Use proper function for closing the stream.
  2202. 2004-02-14 Werner Lemberg <wl@gnu.org>
  2203. * src/type1/t1load.c (parse_dict): Initialize `start_binary'.
  2204. 2004-02-13 Robert Etheridge <roberte@stcc.cc.tx.us>
  2205. * src/type42/t42objs.c (T42_Face_Init), src/type1/t1objs.c
  2206. (T1_Face_Init), src/cid/cidobjs.c (cid_face_init): Fix computation
  2207. of underline_position and underline_thickness.
  2208. 2004-02-12 Werner Lemberg <wl@gnu.org>
  2209. * src/base/ftobjs.c (FT_Set_Char_Size): Return immediately if
  2210. ppem values don't change. Suggested by Graham Asher.
  2211. 2004-02-11 Werner Lemberg <wl@gnu.org>
  2212. * src/cid/cidload.c (cid_face_open): Always allocate
  2213. face->cid_stream so that we can deallocate it safely.
  2214. 2004-02-10 Werner Lemberg <wl@gnu.org>
  2215. Make the PS parser more tolerant w.r.t. non-standard font data. In
  2216. general, an error is only reported in case of a syntax error; a
  2217. wrong type is now simply ignored (if possible). To be independent
  2218. of the order of various MM-specific keywords, the parse_shared_dict
  2219. routine has been removed -- the PS parser is now capable to skip
  2220. this data. It no longer fails on parsing e.g.
  2221. dup /WeightVector exch def
  2222. Since the token following /WeightVector isn't `[' (starting an
  2223. array) it is simply ignored.
  2224. * include/freetype/fterrdef.h: Define `FT_Err_Ignore' (0xA2) as a
  2225. new internal error value.
  2226. * src/type1/t1load.c (parse_blend_axis_types,
  2227. parse_blend_design_positions, parse_blend_design_map): Return
  2228. T1_Err_Ignore if no proper array is following the keyword.
  2229. (parse_weight_vector): Use T1_ToTokenArray, initializing `blend'
  2230. structure, if necessary.
  2231. Return T1_Err_Ignore if no proper array is following the keyword.
  2232. (parse_shared_dict): Removed.
  2233. (parse_encoding): Set parser->root.error to return T1_Err_Ignore
  2234. if no result can be obtained.
  2235. Check for errors before accessing `elements' array.
  2236. (t1_keywords): Remove /shareddict.
  2237. (parse_dict): Reset error if t1_load_keyword returns T1_Err_Ignore.
  2238. Set keyword_flag only in case of success.
  2239. Check error code if skipping an unrecognized token.
  2240. (T1_Open_Face) [!T1_CONFIG_OPTION_NO_MM_SUPPORT]: Call T1_Done_Blend
  2241. if blend commands haven't set up a proper MM font.
  2242. * src/psaux/psobjs.c (ps_parser_load_field_table): Remove special
  2243. code for synthetic fonts.
  2244. Return PSaux_Err_Ignore if no proper value has been found.
  2245. 2004-02-09 Werner Lemberg <wl@gnu.org>
  2246. * src/cff/cffgload.c (cff_decoder_parse_charstrings)
  2247. <cff_op_endchar>: Preserve glyph width before calling
  2248. cff_operator_seac.
  2249. 2004-02-09 Martin Muskens <mmuskens@aurelon.com>
  2250. * src/cff/cffgload.c (cff_decoder_parse_charstrings): Handle special
  2251. first argument for `hintmask' and `cntrmask' operators also.
  2252. 2004-02-08 Werner Lemberg <wl@gnu.org>
  2253. * builds/unix/configure.in: Call AC_SUBST for `enable_shared',
  2254. `hardcode_libdir_flag_spec', and `wl'.
  2255. * builds/unix/configure: Regenerated.
  2256. * builds/unix/freetype-config.in: Make --prefix and --exec-prefix
  2257. actually work.
  2258. Report a proper --rpath (or -R) value for --libs argument if a
  2259. shared library has been built.
  2260. * docs/CHANGES: Updated.
  2261. 2004-02-07 Keith Packard <keithp@keithp.com>
  2262. * src/bdf/bdfdrivr.c (BDF_Face_Init, BDF_Set_Pixel_Size): Fix
  2263. computation of various vertical and horizontal metric values.
  2264. * src/pcfdrivr.c (PCF_Set_Pixel_Size), src/pcfread (pcf_load_font):
  2265. Ditto.
  2266. 2004-02-07 Werner Lemberg <wl@gnu.org>
  2267. * builds/win32/visualc/index.html,
  2268. builds/win32/visualc/freetype.dsp,
  2269. builds/win32/visualc/freetype.dsw, docs/CHANGES: Updated.
  2270. 2004-02-07 Vitaliy Pasternak <v_a_pasternak@mail.ru>
  2271. * builds/win32/visualc/freetype.sln,
  2272. builds/win32/visualc/freetype.vcproj: New files for VS.NET 2003.
  2273. 2004-02-03 Werner Lemberg <wl@gnu.org>
  2274. * include/freetype/cache/ftccache.h (FTC_CACHE_LOOKUP_CMP):
  2275. Initialize `node'.
  2276. * src/type1/t1load.c (parse_dict): Initialize `have_integer'.
  2277. 2004-02-02 Werner Lemberg <wl@gnu.org>
  2278. * src/type1/t1load.c (parse_dict): Handle `RD' and `-|' commands
  2279. outside of /Subrs or /CharStrings. This can happen if there is
  2280. additional code manipulating those two arrays so that FreeType
  2281. doesn't recognize them properly.
  2282. (T1_Open_Face): Improve an error message.
  2283. 2004-02-01 Werner Lemberg <wl@gnu.org>
  2284. * src/type1/t1load.c (parse_charstrings): Exit immediately if
  2285. there are no elements in /CharStrings. This is needed for fonts
  2286. like Optima-Oblique which not only define /CharStrings but access it
  2287. also.
  2288. 2004-02-01 David Turner <david@freetype.org>
  2289. * src/sfnt/Jamfile: Removing `ttcmap' from the list of sources.
  2290. * include/freetype/cache/ftccache.h (FTC_CACHE_LOOKUP_CMP)
  2291. <FTC_INLINE>: Provide macro version which doesn't use inline code.
  2292. * include/freetype/cache/ftcglyph.h (FTC_GCACHE_LOOKUP_CMP)
  2293. <FTC_INLINE>: Ditto.
  2294. Use FTC_MRULIST_LOOKUP_CMP.
  2295. * include/freetype/cache/ftcmru.h (FTC_MRULIST_LOOKUP_CMP): New
  2296. macro.
  2297. (FTC_MRULIST_LOOKUP): Use it.
  2298. * src/cache/Jamfile (_sources), src/cache/descrip.mms: Updated.
  2299. * src/cache/ftcbasic.c: Fix compiler warnings.
  2300. * src/cache/ftcmanag.c (FTC_Manager_LookupSize,
  2301. FTC_Manager_LookupFace) <FTC_INLINE>: Use FTC_MRULIST_LOOKUP_CMP.
  2302. * src/cache/ftcmru.c (FTC_MruList_Find): Fix a bug (found after
  2303. heavy testing).
  2304. * Jamfile: Updating `refdoc' target, and adding `autohint' to the
  2305. list of modules to build. Both the autohinter and autofitter will
  2306. be built by default. But which one will be used is determined by
  2307. the content of `ftmodule.h'.
  2308. * src/autofit/*: Many updates, but the code is still buggy...
  2309. 2004-01-31 Werner Lemberg <wl@gnu.org>
  2310. * src/cff/cffgload.c (cff_operator_seac): Fix magnitude of
  2311. accent offset.
  2312. Update code similarly to the seac support for Type 1 fonts.
  2313. (cff_decoder_parse_charstrings) <cff_op_endchar>: Fix magnitude
  2314. of accent offset.
  2315. Don't hint glyphs twice if seac is emulated.
  2316. <cff_op_flex>: Assign correct point tags.
  2317. * docs/CHANGES: Updated.
  2318. 2004-01-30 Werner Lemberg <wl@gnu.org>
  2319. * src/type1/t1parse.c (T1_Get_Private_Dict): Use FT_MEM_MOVE, not
  2320. FT_MEM_COPY, for copying the private dict.
  2321. * src/type1/t1load.c (parse_subrs): Assign number of subrs only
  2322. in first run.
  2323. (parse_charstrings): Parse /CharStrings in second run without
  2324. assigning values.
  2325. (parse_dict): Skip all /CharStrings arrays but the first. We need
  2326. this for non-standard fonts like `Optima' which have different
  2327. outlines depending on the resolution. Note that there is no
  2328. guarantee that we get fitting /Subrs and /CharStrings arrays; this
  2329. can only be done by a real PS interpreter.
  2330. 2004-01-29 Antoine Leca <Antoine-Freetype@Leca-Marti.org>
  2331. * builds/win32/visualc/index.html: New file, giving detailed
  2332. explanations about forcing CR+LF line endings for the VC++ project
  2333. files.
  2334. 2004-01-22 Garrick Meeker <garrick@digitalanarchy.com>
  2335. * src/cff/cffload.c (cff_subfont_load): Initialize `dict'.
  2336. 2004-01-22 Werner Lemberg <wl@gnu.org>
  2337. Add support for the hexadecimal representation of binary data
  2338. started with `StartData' in CID-keyed Type 1 fonts.
  2339. * include/freetype/internal/t1types.h (CID_FaceRec): Add new
  2340. members `binary_data' and `cid_stream'.
  2341. * src/cid/cidload.c (cid_read_subrs): Use `face->cid_stream'.
  2342. (cid_hex_to_binary): New auxiliary function.
  2343. (cid_face_open): Add new argument `face_index' to return quickly
  2344. if less than zero. Updated all callers.
  2345. Call `cid_hex_to_binary', then open and assign memory stream to
  2346. `face->cid_stream' if `parser->binary_length' is non-zero.
  2347. * src/cid/cidload.h: Updated.
  2348. * src/cid/cidobjs.c (cid_face_done): Free `binary_data' and
  2349. `cid_stream'.
  2350. * src/cid/cidparse.c (cid_parser_new): Check arguments to
  2351. `StartData' and set parser->binary_length accordingly.
  2352. * src/cid/cidparse.h (CID_Parser): New member `binary_length'.
  2353. * src/cid/cidgload.c (cid_load_glyph): Use `face->cid_stream'.
  2354. * docs/CHANGES: Updated.
  2355. 2004-01-21 Werner Lemberg <wl@gnu.org>
  2356. include/freetype/config/ftstdlib.h (ft_atoi): Replaced with...
  2357. (ft_atol): This.
  2358. * src/base/ftdbgmem.c: s/atol/ft_atol/.
  2359. * src/type42/t42drivr.c: s/ft_atoi/ft_atol/.
  2360. 2004-01-20 Masatake YAMATO <jet@gyve.org>
  2361. * include/freetype/ftcache.h: Delete duplicated definition of
  2362. FTC_FaceID.
  2363. * src/cff/cffdrivr.c (cff_get_cmap_info): Call sfnt module's TT CMap
  2364. Info service function if the cmap comes from sfnt. Return 0 if the
  2365. cmap is synthesized in cff module.
  2366. 2004-01-20 David Turner <david@freetype.org>
  2367. * src/cache/ftcmanag.c (ftc_size_node_compare): Call
  2368. FT_Activate_Size.
  2369. 2004-01-20 Werner Lemberg <wl@gnu.org>
  2370. * src/type1/t1parse.c (T1_Get_Private_Dict): Skip exactly one
  2371. CR, LF, or CR/LF after `eexec'.
  2372. 2004-01-18 David Turner <david@freetype.org>
  2373. * src/sfnt/ttsbit.c (tt_face_set_sbit_strike): Remove compiler
  2374. warning.
  2375. * src/tools/docmaker/*: Updating beautifier tool.
  2376. 2004-01-15 David Turner <david@freetype.org>
  2377. * src/base/ftoutln.c (ft_orientation_extremum_compute): Fix
  2378. infinite loop bug.
  2379. * include/freetype/ftstroke.h: Include FT_GLYPH_H.
  2380. (FT_Stroker_Rewind, FT_Glyph_Stroke, FT_Glyph_StrokeBorder): New
  2381. declarations.
  2382. * src/base/ftstroke.c: Include FT_INTERNAL_OBJECTS_H.
  2383. (FT_Outline_GetOutsideBorder): Inverse result.
  2384. (FT_Stroker_Rewind, FT_Glyph_Stroke, FT_Glyph_StrokeBorder): New
  2385. functions.
  2386. (FT_Stroker_EndSubPath): Close path if needed.
  2387. (FT_Stroker_Set, FT_Stroker_ParseOutline): Use FT_Stroker_Rewind.
  2388. * include/freetype/cache/ftcmanag.h (FTC_ScalerRec,
  2389. FTC_Manager_LookupSize): Moved to...
  2390. * include/freetype/ftcache.h (FTC_ScalerRec,
  2391. FTC_Manager_LookupSize): Here.
  2392. * src/tools/docmaker/docbeauty.py: New file to beautify the
  2393. documentation comments (e.g., to convert them to single block border
  2394. mode).
  2395. * src/tools/docmaker/docmaker.py (file_exists, make_file_list):
  2396. Moved to...
  2397. * src/tools/docmaker/utils.py (file_exists, make_file_list): Here.
  2398. 2004-01-14 David Turner <david@freetype.org>
  2399. * include/freetype/internal/ftmemory.h (FT_ARRAY_COPY,
  2400. FT_ARRAY_MOVE): New macros to make copying arrays easier.
  2401. Updated all relevant code to use them.
  2402. 2004-01-14 Werner Lemberg <wl@gnu.org>
  2403. * src/cff/cffload.c (cff_font_load): Load charstrings_index earlier.
  2404. Use number of charstrings as argument to CFF_Load_FD_Select (as
  2405. documented in the CFF specs).
  2406. 2004-01-13 Graham Asher <graham.asher@btinternet.com>
  2407. * src/pshinter/pshalgo.c (psh_glyph_init): Move assignment of
  2408. `glyph->memory' up to free arrays properly in case of failure.
  2409. 2004-01-10 Masatake YAMATO <jet@gyve.org>
  2410. Make `FT_Get_CMap_Language_ID' work with CFF. Bug reported by
  2411. Steve Hartwell <shspamsink@comcast.net>.
  2412. * src/cff/cffdrivr.c: Include FT_SERVICE_TT_CMAP_H.
  2413. (cff_services): Added an entry for FT_SERVICE_ID_TT_CMAP.
  2414. (cff_get_cmap_info): New function.
  2415. (cff_service_get_cmap_info) New entry for cff_services.
  2416. * src/sfnt/ttcmap0.c: Exit loop after a format match has been found.
  2417. Suggested by Steve Hartwell <shspamsink@comcast.net>.
  2418. 2004-01-03 Masatake YAMATO <jet@gyve.org>
  2419. * src/base/ftobjs.c (destroy_charmaps): New function.
  2420. (destroy_face, open_face): Use `destroy_charmaps'.
  2421. 2004-01-01 Werner Lemberg <wl@gnu.org>
  2422. * docs/CHANGES: Updated.
  2423. 2004-01-01 Michael Jansson <mjan@em2-solutions.com>
  2424. * src/winfonts/winfnt.c (FNT_Size_Set_Pixels): Fix sign of
  2425. size->metrics.descender.
  2426. 2003-12-31 Wolfgang Domröse <porthos.domroese@harz.de>
  2427. * src/cff/cffgload.c (cff_decoder_parse_charstrings)
  2428. [FT_DEBUG_LEVEL_TRACE]: Use `%ld' in FT_TRACE4.
  2429. <cff_op_flex1>: Change type of dx and dy to FT_Pos and remove
  2430. cast for accessing arguments.
  2431. 2003-12-31 Werner Lemberg <wl@gnu.org>
  2432. * src/truetype/ttgload.c (TT_Load_Simple_Glyph): Revert previous
  2433. change. It's not necessary.
  2434. 2003-12-29 Smith Charles <smith.charles@free.fr>
  2435. * src/truetype/ttgload.c (TT_Load_Simple_Glyph): Handle `repeated
  2436. flags set' correctly.
  2437. 2003-12-29 Werner Lemberg <wl@gnu.org>
  2438. * src/cff/cffobjs.c (cff_face_init): Fix memory leak by deallocating
  2439. `full' and `weight' properly.
  2440. * src/cff/cffgload.c (cff_decoder_parse_charstrings)
  2441. <cff_op_hintmask> [FT_DEBUG_LEVEL_TRACE]: Use `0x' as prefix for
  2442. tracing output.
  2443. 2003-12-26 Werner Lemberg <wl@gnu.org>
  2444. * include/freetype/internal/sfnt.h (TT_Set_SBit_Strike_Func):
  2445. Use FT_UInt for ppem values.
  2446. * src/sfnt/ttsbit.c (tt_face_set_sbit_strike): Use FT_UInt for
  2447. ppem values.
  2448. * src/sfnt/ttsbit.h: Updated.
  2449. * src/base/ftobjs.c (FT_Set_Pixel_Sizes): Don't allow ppem values
  2450. larger than -0FFFF.
  2451. 2003-12-25 Werner Lemberg <wl@gnu.org>
  2452. * src/base/fttrigon.c, src/base/ftgloadr.c: Include
  2453. FT_INTERNAL_OBJECTS_H.
  2454. * src/base/ftstroke.c (FT_Outline_GetInsideBorder,
  2455. FT_Outline_GetOutsideBorder): s/or/o/ to make it compile with
  2456. C++ compilers.
  2457. * src/cache/ftcmru.c, include/freetype/cache/ftcmru.h:
  2458. s/select/selection/ to avoid compiler warning.
  2459. * src/cff/cffload.h: s/select/ftselect/ to avoid potential
  2460. compiler warning.
  2461. 2003-12-24 Werner Lemberg <wl@gnu.org>
  2462. * src/cache/ftcsbits.c (FTC_SNode_Weight):
  2463. s/FTC_SBIT_ITEM_PER_NODE/FTC_SBIT_ITEMS_PER_NODE/.
  2464. 2003-12-24 David Turner <david@freetype.org>
  2465. * Fixed compilation problems in the cache sub-system.
  2466. * Partial updates to src/autofit.
  2467. * Jamfile (FT2_COMPONENTS): Add autofit module.
  2468. 2003-12-23 Werner Lemberg <wl@gnu.org>
  2469. * src/cff/cffgload.c (cff_lookup_glyph_by_stdcharcode): Handle
  2470. CID-keyed fonts.
  2471. 2003-12-23 David Turner <david@freetype.org>
  2472. * include/freetype/internal/ftobjs.h (FT_PAD_FLOOR, FT_PAD_ROUND,
  2473. FT_PAD_CEIL, FT_PIX_FLOOR, FT_PIX_ROUND, FT_PIX_CEIL): New macros.
  2474. They are used to avoid compiler warnings with very pedantic compilers.
  2475. Note that `(x) & -64' causes a warning if (x) is not signed. Use
  2476. `(x) & ~63' instead!
  2477. Updated all related code.
  2478. Add support for extraction of `inside' and `outside' borders.
  2479. * src/base/ftstroke.c (FT_StrokerBorder): New enumeration.
  2480. (FT_Outline_GetInsideBorder, FT_Outline_GetOutsideBorder,
  2481. FT_Stroker_GetBorderCounts, FT_Stroker_ExportBorder): New functions.
  2482. (FT_StrokeBorderRec): New boolean member `valid'.
  2483. (ft_stroke_border_get_counts): Updated.
  2484. * include/freetype/ftstroke.h: Updated.
  2485. 2003-12-22 Werner Lemberg <wl@gnu.org>
  2486. * include/freetype/ftwinfnt.h (FT_WinFNT_ID_*): New definitions
  2487. to describe the `charset' field in FT_WinFNT_HeaderRec.
  2488. * src/winfonts/winfnt.c (FNT_Face_Init): Set encoding to
  2489. FT_ENCODING_NONE except for FT_WinFNT_ID_MAC.
  2490. * include/freetype/freetype.h (FT_Encoding): Improve comment,
  2491. based on work by Detlef Würkner <TetiSoft@apg.lahn.de>.
  2492. * docs/CHANGES: Updated.
  2493. 2003-12-22 David Turner <david@freetype.org>
  2494. * include/freetype/ftcache.h,
  2495. include/freetype/cache/ftcmanag.h,
  2496. include/freetype/cache/ftccache.h,
  2497. include/freetype/cache/ftcmanag.h,
  2498. include/freetype/cache/ftcmru.h (added),
  2499. include/freetype/cache/ftlru.h (removed),
  2500. include/freetype/cache/ftcsbits.h,
  2501. include/freetype/cache/ftcimage.h,
  2502. include/freetype/cache/ftcglyph.h,
  2503. src/cache/ftcmru.c,
  2504. src/cache/ftcmanag.c,
  2505. src/cache/ftccache.c,
  2506. src/cache/ftcglyph.c,
  2507. src/cache/ftcimage.c,
  2508. src/cache/ftcsbits.c,
  2509. src/cache/ftccmap.c,
  2510. src/cache/ftcbasic.c (added),
  2511. src/cache/ftlru.c (removed):
  2512. *Complete* rewrite of the cache sub-system to `solve' the
  2513. following points:
  2514. - all public APIs have been moved to FT_CACHE_H, everything
  2515. under `include/freetype/cache' is only needed by client
  2516. applications that want to implement their own caches
  2517. - a new function named FTC_Manager_RemoveFaceID to deal
  2518. with the uninstallation of FaceIDs
  2519. - the image and sbit cache are now abstract classes, that
  2520. can be extended much more easily by client applications
  2521. - better performance in certain areas. Further optimizations
  2522. to come shortly anyway...
  2523. - the FTC_CMapCache_Lookup function has changed its signature,
  2524. charmaps can now only be retrieved by index
  2525. - FTC_Manager_Lookup_Face => FTC_Manager_LookupFace
  2526. FTC_Manager_Lookup_Size => FTC_Manager_LookupSize (still in
  2527. private header for the moment)
  2528. 2003-12-21 Werner Lemberg <wl@gnu.org>
  2529. * src/type1/t1load.c (parse_dict): Stop parsing if `eexec' keyword
  2530. is encountered.
  2531. 2003-12-19 Werner Lemberg <wl@gnu.org>
  2532. * src/cff/cfftypes.h (CFF_MAX_CID_FONTS): Increase to 32. For
  2533. example, the Japanese Hiragino font already contains 15 subfonts.
  2534. * src/cff/cffload.c (cff_font_load): Deallocate `sids' array for
  2535. CID-keyed fonts.
  2536. * devel/ftoption.h: Define FT_DEBUG_MEMORY.
  2537. 2003-12-18 Werner Lemberg <wl@gnu.org>
  2538. * include/freetype/ttnameid.h (TT_ADOBE_ID_LATIN_1): New macro.
  2539. * src/type1/t1objs.c (T1_Face_Init): Use TT_ADOBE_ID* values.
  2540. 2003-12-18 Werner Lemberg <wl@gnu.org>
  2541. * src/cff/cfftypes.h (CFF_FontRecDictRec): Change type of
  2542. `cid_count' to `FT_ULong'.
  2543. * src/cff/cffgload.c (cff_slot_load): Take care of empty `cids'
  2544. array.
  2545. * src/cff/cffload.c (cff_charset_done): Free `cids' array.
  2546. (cff_font_load): Create cids array only for CID-keyed fonts which
  2547. are subsetted.
  2548. * src/cff/cffobjs.c (cff_face_init): Check the availability of
  2549. the PSNames modules for non-pure CFFs also.
  2550. Set FT_FACE_FLAG_GLYPH_NAMES for a non-pure CFF also if it isn't
  2551. CID-keyed.
  2552. * src/cff/rules.mk (CFF_DRV_H): Add cfftypes.h.
  2553. 2003-12-17 Werner Lemberg <wl@gnu.org>
  2554. * src/sfnt/sfobjs.c (sfnt_init_face): Don't set
  2555. FT_FACE_FLAG_GLYPH_NAMES if the font contains a version 3.0 `post'
  2556. table.
  2557. * docs/CHANGES: Updated.
  2558. 2003-12-17 Masatake YAMATO <jet@gyve.org>
  2559. Add new function FT_Get_CMap_Language_ID to extract the language ID
  2560. for TrueType/sfnt fonts.
  2561. * include/freetype/internal/services/svttcmap.h: New file.
  2562. * include/freetype/internal/ftserv.h (FT_SERVICE_TT_CMAP_H): Add
  2563. svttcmap.h.
  2564. * src/sfnt/sfdriver.c: Include ttcmap0.h.
  2565. (tt_service_get_cmap_info): New service.
  2566. (sfnt_services): Updated.
  2567. * src/sfnt/ttcmap0.c (tt_cmap*_get_info): New functions.
  2568. (tt_cmap*_class_rec): Add tt_cmap*_get_info members.
  2569. (tt_get_cmap_info): New function.
  2570. * src/sfnt/ttcmap0.h: Include FT_SERVICE_TT_CMAP_H.
  2571. (TT_CMap_ClassRec): New field `get_cmap_info'.
  2572. (tt_get_cmap_info): New declaration.
  2573. * src/base/ftobjs.c: Include FT_SERVICE_TT_CMAP_H.
  2574. (FT_Get_CMap_Language_ID): New function implementation.
  2575. * include/freetype/tttables.h (FT_Get_CMap_Language_ID): New
  2576. function declaration.
  2577. 2003-12-16 Werner Lemberg <wl@gnu.org>
  2578. * src/sfnt/ttcmap.c, src/sfnt/ttcmap.h: Removed. Obsolete.
  2579. * include/freetype/internal/sfnt.h (SFNT_Interface): Remove
  2580. obsolete fields `load_charmap' and `free_charmap'.
  2581. (TT_CharMap_Load_Func, TT_CharMap_Free_Func): Removed.
  2582. * src/sfnt/sfnt.c: Don't include ttcmap.c.
  2583. * src/sfnt/rules.mk (SFNT_DRV_SRC): Don't include ttcmap.c.
  2584. * src/sfnt/ttload.c: Don't include ttcmap.h.
  2585. * src/sfnt/sfdriver.c: Don't include ttcmap.h.
  2586. (sfnt_interface): Updated.
  2587. * include/freetype/internal/tttypes.h (TT_TableDirRec,
  2588. TT_CMapDirRec, TT_CMapDirEntryRec, TT_CMap0, TT_CMap2SubHeaderRec,
  2589. TT_CMap2Rec, TT_CMap4Segment, TT_CMap4Rec, TT_CMap6,
  2590. TT_CMapGroupRec, TT_CMap8_12Rec, TT_CMap10Rec, TT_CharMap_Func,
  2591. TT_CharNext_Func, TT_CMapTableRec, TT_CharMapRec): Removed.
  2592. Obsolete.
  2593. * src/cff/cffobjs.h (CFF_CharMapRec): Removed. Obsolete.
  2594. 2003-12-15 Werner Lemberg <wl@gnu.org>
  2595. * docs/CHANGES: Updated.
  2596. 2003-12-15 Wolfgang Domröse <porthos.domroese@harz.de>
  2597. * builds/atari/*: New directory for building FreeType 2 on Atari
  2598. with the PureC compiler.
  2599. 2003-12-12 Wolfgang Domröse <porthos.domroese@harz.de>
  2600. * src/type1/t1gload.c (T1_Parse_Glyph_And_Get_Char_String): Add
  2601. cast.
  2602. * src/cff/cffdrivr.c (cff_ps_has_glyph_names): Assure that return
  2603. value is either 0 or 1.
  2604. 2003-12-12 Werner Lemberg <wl@gnu.org>
  2605. * src/cff/cffdrivr.c (cff_get_glyph_name): Improve error message.
  2606. (cff_get_name_index): Return if no PSNames service is available.
  2607. (cff_ps_has_glyph_names): Handle CID-keyed fonts correctly.
  2608. * src/cff/cfftypes.h (CFF_CharsetRec): New field `cids', used for
  2609. CID-keyed fonts. This is the inverse mapping of `sids'.
  2610. * src/cff/cffload.c (cff_charset_load): New argument `invert'.
  2611. Initialize charset->cids if `invert' is set.
  2612. (cff_font_load): In call to cff_charset_load, set `invert' to true
  2613. for CID-keyed fonts.
  2614. * src/cff/cffgload.c (cff_slot_load): Handle glyph index as CID
  2615. and map it to the real glyph index.
  2616. * docs/CHANGES: Updated.
  2617. 2003-12-11 Werner Lemberg <wl@gnu.org>
  2618. * src/cff/cffobjs.c (cff_face_init): Don't set
  2619. FT_FACE_FLAG_GLYPH_NAMES for CID-keyed fonts.
  2620. Don't construct a cmap for CID-keyed fonts.
  2621. 2003-12-10 Werner Lemberg <wl@gnu.org>
  2622. Use implementation specific SID value 0xFFFF to indicate that
  2623. a dictionary element is missing.
  2624. * src/cff/cffload.c (cff_subfont_load): Initialize all fields
  2625. which hold SIDs to 0xFFFF.
  2626. (cff_index_get_sid_string): Handle SID value 0xFFFF.
  2627. Handle case where `psnames' is zero.
  2628. (cff_font_load): Updated.
  2629. Don't load encoding for CID-keyed CFFs.
  2630. * src/cff/cffobjs.c (cff_face_init): Updated.
  2631. Don't check for PSNames module if font is CID-keyed.
  2632. Compute style name properly (using the same algorithm as in the
  2633. CID driver).
  2634. Fix computation of style flags.
  2635. * src/cff/cfftoken.h: Comment out handling of base_font_name.
  2636. Rename `postscript' field to `embedded_postscript'
  2637. * src/cff/cfftypes.h (CFF_FontRecDictRec): Remove `base_font_name'
  2638. and `postscript'.
  2639. 2003-12-10 Detlef Würkner <TetiSoft@apg.lahn.de>
  2640. * src/pcf/pcfdrivr.c (pcf_get_charset_id): New function (a clone
  2641. of the similar BDF function).
  2642. (pcf_service_bdf): Use it.
  2643. 2003-12-09 Werner Lemberg <wl@gnu.org>
  2644. * src/sfnt/sfobjs.c (sfnt_load_face): Set FT_FACE_FLAG_GLYPH_NAMES
  2645. only if a `post' table is present.
  2646. 2003-12-09 George Williams <gww@silcom.com>
  2647. * src/base/ftobjs.c (load_mac_face): Recent versions of Linux
  2648. support Mac's HFS+ file system, thus enable code to read /rsrc on
  2649. non-Macintosh platforms also.
  2650. 2003-12-08 Werner Lemberg <wl@gnu.org>
  2651. * include/freetype/internal/psaux.h (PS_TableRec): Change type
  2652. of `lengths' to FT_PtrDist.
  2653. (T1_DecoderRec): Change type of `subrs_len' to FT_PtrDist.
  2654. * include/freetype/internal/t1types.h (T1_FontRec): Change type
  2655. of `subrs_len' and `charstrings_len' to FT_PtrDist.
  2656. * src/base/ftobjs.c (Mac_Read_POST_Resource): Replace `junk'
  2657. variable with better solution.
  2658. (IsMacResource): Remove unused variable `map_len'.
  2659. Replace `junk' variable with better solution.
  2660. (FT_Open_Face) [!FT_MACINTOSH]: Add conditional
  2661. FT_CONFIG_OPTION_MAC_FONTS.
  2662. 2003-12-08 Wolfgang Domröse <porthos.domroese@harz.de>
  2663. * src/autohint/ahhint.c (ah_hinter_hint_edges,
  2664. ah_hinter_align_strong_points): Add some casts.
  2665. * src/base/ftoutln.c (FT_OrientationExtremumRec): Change type
  2666. of `pos' to FT_Long.
  2667. * src/base/ftobjs.c (Mac_Read_POST_Resource,
  2668. Mac_Read_sfnt_Resource): Change type of `len' to FT_Long.
  2669. * src/type42/t42parse.c (t42_parse_dict): Add cast for `n_keywords'.
  2670. 2003-12-07 Werner Lemberg <wl@gnu.org>
  2671. * docs/raster.txt: New file, taken from FreeType 1 and completely
  2672. revised.
  2673. 2003-12-04 Masatake YAMATO <jet@gyve.org>
  2674. * src/type1/t1driver.c (Get_Interface): Remove FT_UNUSED for
  2675. t1_interface. t1_interface is used.
  2676. 2003-11-27 David Turner <david@freetype.org>
  2677. * src/pfr/pfrdrivr.c (pfr_get_metrics): Revert incorrect change of
  2678. 2003-11-23: For PFR fonts, metrics->x_scale and metrics->y_scale are
  2679. the scaling values for outline units, not for metric units.
  2680. 2003-11-25 Werner Lemberg <wl@gnu.org>
  2681. * src/base/ftcalc.c, include/freetype/internal/ftcalc.h
  2682. (FT_MulDiv_No_Round): Surround code with `#ifdef
  2683. TT_CONFIG_OPTION_BYTECODE_INTERPRETER ... #endif'.
  2684. 2003-11-23 Werner Lemberg <wl@gnu.org>
  2685. * src/base/ftcalc.c (FT_MulDiv_No_Round): New function (32 and
  2686. 64 bit version).
  2687. * include/freetype/internal/ftcalc.h: Updated.
  2688. * src/truetype/ttinterp.c (TT_MULDIV_NO_ROUND): New macro.
  2689. (TT_INT64): Removed.
  2690. (DO_DIV): Use TT_MULDIV_NO_ROUND.
  2691. * src/pfr/pfrdrivr.c (pfr_get_metrics): Directly use
  2692. metrics->x_scale and metrics->y_scale.
  2693. 2003-11-22 Rogier van Dalen <R.C.van.Dalen@umail.leidenuniv.nl>
  2694. * src/truetype/ttinterp.c (CUR_Func_move_orig): New macro.
  2695. (Direct_Move_Orig, Direct_Move_Orig_X, Direct_Move_Orig_Y): New
  2696. functions. Similar to Direct_Move, Direct_Move_X, and
  2697. Direct_Move_Y but without touching.
  2698. (Compute_Funcs): Use new functions.
  2699. (Round_None, Round_To_Grid, Round_To_Half_Grid, Round_Down_To_Grid,
  2700. Round_Up_To_Grid, Round_To_Double_Grid, Round_Super,
  2701. Round_Super_45): Fix rounding of value zero.
  2702. (DO_DIV): Don't use TT_MULDIV.
  2703. (Ins_SHC): This instruction actually touches the points.
  2704. (Ins_MSIRP): Fix undocumented behaviour.
  2705. * src/truetype/ttinterp.h (TT_ExecContextRec): Updated.
  2706. 2003-11-22 Werner Lemberg <wl@gnu.org>
  2707. * docs/VERSION.DLL, docs/CHANGES: Updated.
  2708. * src/base/ftobjs.c (FT_Set_Char_Size): Make metrics->x_scale and
  2709. metrics->y_scale really precise.
  2710. (FT_Load_Glyph): Update computation of linearHoriAdvance and
  2711. linearVertAdvance.
  2712. * src/truetype/ttinterp.c (Update_Max): Use FT_REALLOC.
  2713. 2003-11-22 David Turner <david@freetype.org>
  2714. * src/autofit/*: More updates.
  2715. * include/freetype/freetype.h (FREETYPE_PATCH): Set to 8.
  2716. * builds/unix/configure.ac (version_info): Set to 9:6:3.
  2717. * README: Updated.
  2718. 2003-11-13 John A. Boyd Jr. <jaboydjr@netwalk.com>
  2719. * src/bdf/bdfdrivr.c (bdf_interpret_style), src/pcf/pcfread.c
  2720. (pcf_interpret_style): Replace spaces with dashes in properties
  2721. SETWIDTH_NAME and ADD_STYLE_NAME to simplify parsing.
  2722. 2003-11-11 Werner Lemberg <wl@gnu.org>
  2723. * docs/CHANGES: Updated.
  2724. 2003-11-11 John A. Boyd Jr. <jaboydjr@netwalk.com>
  2725. Handle SETWIDTH_NAME and ADD_STYLE_NAME properties for BDF and PCF
  2726. fonts.
  2727. * src/bdf/bdfdrivr.c (bdf_interpret_style): New auxiliary function.
  2728. (BDF_Face_Init): Don't handle style properties but call
  2729. bdf_interpret_style.
  2730. * src/pcf/pcfread.c (pcf_interpret_style): New auxiliary function.
  2731. (pcf_load_font): Don't handle style properties but call
  2732. pcf_interpret_style.
  2733. 2003-11-07 Werner Lemberg <wl@gnu.org>
  2734. * Version 2.1.7 released.
  2735. =========================
  2736. * include/freetype/freetype.h (FREETYPE_PATCH): Set to 7.
  2737. * builds/unix/ft2unix.h: Fix comments.
  2738. * builds/unix/ftconfig.in: Synchronized with ANSI version.
  2739. Use `#undef' in templates as recommended in the autoconf
  2740. documentation.
  2741. Since real `#undef' lines don't survive during configuration, use
  2742. `/undef' instead; the postprocessing facility of the
  2743. AC_CONFIG_HEADERS autoconf macro converts them to `#undef'.
  2744. * builds/unix/install.mk (install): Install Unix version of
  2745. `ftconfig.h'.
  2746. * builds/unix/unix-cc.in (CFLAGS): Set FT_CONFIG_CONFIG_H macro
  2747. to include the correct `ftconfig.h' file.
  2748. * builds/unix/ft-munmap.m4 (FT_MUNMAP_DECL): Removed.
  2749. (FT_MUNMAP_PARAM): Updated syntax to autoconf 2.59.
  2750. * builds/unix/freetype2.m4: Updated syntax to autoconf 2.59.
  2751. * builds/unix/configure.ac: Use AC_CONFIG_HEADERS instead of
  2752. AC_CONFIG_HEADER to create ftconfig.h, and use second argument
  2753. to replace `/undef' with `#undef'.
  2754. Don't use FT_MUNMAP_DECL but AC_CHECK_DECLS to check for munmap.
  2755. Use AS_HELP_STRING in AC_ARG_WITH.
  2756. Update syntax to autoconf 2.59.
  2757. * builds/unix/ltmain.sh: Regenerated with `libtoolize --force
  2758. --copy' from libtool 1.5.
  2759. * builds/unix/aclocal.m4: Regenerated with `aclocal -I .' from
  2760. automake 1.7.8.
  2761. * builds/unix/configure: Regenerated with autoconf 2.59.
  2762. * builds/unix/config.guess, builds/unix/config.sub: Updated from
  2763. `config' CVS module at subversions.gnu.org
  2764. * builds/unix/install-sh, builds/unix/mkinstalldirs: Updated from
  2765. `texinfo' CVS module at subversions.gnu.org.
  2766. * builds/vms/ftconfig.h: Synchronized with ANSI version.
  2767. * docs/CUSTOMIZE: Fix documentation error.
  2768. * docs/CHANGES, docs/VERSION.DLL, docs/release: Updated.
  2769. * builds/freetype.mk (refdoc): Updated --title.
  2770. 2003-11-07 David Turner <david@freetype.org>
  2771. * Version 2.1.6 released.
  2772. =========================
  2773. * install: Removed. Obsolete.
  2774. 2003-11-04 Werner Lemberg <wl@gnu.org>
  2775. * src/sfnt/sfdriver.c: Include FT_SERVICE_SFNT_H.
  2776. (sfnt_service_sfnt_table): New service.
  2777. (sfnt_services): Updated.
  2778. * docs/license.txt: Reworded.
  2779. 2003-11-03 Werner Lemberg <wl@gnu.org>
  2780. * include/freetype/*: Add a guard to all public header files which
  2781. load FT_FREETYPE_H to reject freetype.h from FreeType 1.
  2782. 2003-11-02 Patrick Welche <prlw1@newn.cam.ac.uk>
  2783. * builds/unix/freetype2.m4, builds/unix/ft-munmap.m4: Protect
  2784. first argument of AC_DEFUN with brackets to avoid possible
  2785. expansion.
  2786. 2003-11-02 Werner Lemberg <wl@gnu.org>
  2787. * include/freetype/cache/ftcglyph.h: Don't include stddef.h.
  2788. * include/freetype/freetype.h: Fix check for ft2build.h.
  2789. 2003-11-01 Werner Lemberg <wl@gnu.org>
  2790. * include/freetype/freetype.h: Check that ft2build.h has been
  2791. loaded first.
  2792. * src/base/fttype1.c (FT_Get_PS_Font_Info): Fix incorrectly applied
  2793. patch.
  2794. 2003-10-31 Detlef Würkner <TetiSoft@apg.lahn.de>
  2795. * src/base/fttype1.c (FT_Get_PS_Font_Info, FT_Has_PS_Glyph_Names):
  2796. Fix parameter order in calls to FT_FACE_FIND_SERVICE.
  2797. 2003-10-31 Werner Lemberg <wl@gnu.org>
  2798. * include/freetype/internal/ftserv.h
  2799. (FT_SERVICE_POSTSCRIPT_NAMES_H): Removed. Unused.
  2800. * src/type42/t42drivr.c (t42_services): Updated.
  2801. 2003-10-29 David Turner <david@freetype.org>
  2802. * include/freetype/internal/bdftypes.h: Removed. Obsolete.
  2803. * src/base/ftbdf.c: Updated.
  2804. * include/freetype/internal/cfftypes.h: Moved to...
  2805. * src/cff/cfftypes.h: This place since no other module needs to
  2806. know about those types.
  2807. * include/freetype/internal/t42types.h: Moved to...
  2808. * src/type42/t42types.h: This place since no other module needs to
  2809. know about those types.
  2810. * include/freetype/internal/services/svbdf.h: Include FT_BDF_H.
  2811. * include/freetype/internal/services/svpsname.h: Renamed to...
  2812. * include/freetype/internal/services/svpscmap.h: This.
  2813. Updated `FT_Service_PsNames' -> `FT_Service_PsCMaps' and
  2814. `POSTSCRIPT_NAMES' -> `POSTSCRIPT_CMAPS' everywhere.
  2815. * include/freetype/internal/services/svpsinfo.h: New file, providing
  2816. PostScript info service.
  2817. * include/freetype/internal/ftserv.h (FT_SERVICE_POSTSCRIPT_CMAPS_H,
  2818. FT_SERVICE_POSTSCRIPT_INFO_H): New macros for svpscmap.h and
  2819. svpsinfo.h.
  2820. * include/freetype/internal/internal.h (FT_INTERNAL_TYPE42_TYPES_H,
  2821. FT_INTERNAL_CFF_TYPES_H, FT_INTERNAL_BDF_TYPES_H): Removed.
  2822. * src/base/fttype1.c: Don't include FT_INTERNAL_TYPE1_TYPES_H and
  2823. FT_INTERNAL_TYPE42_TYPES_H but FT_INTERNAL_SERVICE_H and
  2824. FT_SERVICE_POSTSCRIPT_INFO_H.
  2825. (FT_Get_PS_Font_Info, FT_Has_PS_Glyph_Names): Use new
  2826. POSTSCRIPT_INFO service.
  2827. * src/cff/cffdrivr.c: Include FT_SERVICE_POSTSCRIPT_INFO_H.
  2828. (cff_ps_has_glyph_names): New function.
  2829. (cff_service_ps_info): New service.
  2830. (cff_services): Updated.
  2831. * src/cff/cffload.h, src/cff/cffobjs.h, src/cff/cffparse.h: Don't
  2832. include FT_INTERNAL_CFF_TYPES_H but cfftypes.h directly.
  2833. * src/cid/cidriver.c: Include FT_SERVICE_POSTSCRIPT_INFO_H.
  2834. (cid_ps_get_font_info): New function.
  2835. (cid_service_ps_info): New service.
  2836. (cid_services): Updated.
  2837. * src/type1/t1driver.c: Include FT_SERVICE_POSTSCRIPT_INFO_H.
  2838. (t1_ps_get_font_info, t1_ps_has_glyph_names): New functions.
  2839. (t1_service_ps_info): New service.
  2840. (t1_services): Updated.
  2841. * src/type42/t42drivr.c: Include FT_SERVICE_POSTSCRIPT_INFO_H.
  2842. (t42_ps_get_font_info, t42_ps_has_glyph_names): New functions.
  2843. (t42_service_ps_info): New service.
  2844. * src/type42/t42objs.h: Don't include FT_INTERNAL_TYPE42_TYPES_H
  2845. but t42types.h directly.
  2846. * src/psnames/psmodule.c (psnames_interface, psnames_services):
  2847. Renamed to...
  2848. (pscmaps_interface, pscmaps_services): This.
  2849. Updated all users.
  2850. * src/gzip/infblock.c (inflate_blocks): Remove compiler warning.
  2851. 2003-10-22 Werner Lemberg <wl@gnu.org>
  2852. * src/type1/t1load.c (parse_encoding): Handle `/Encoding [ ... ]'.
  2853. * src/type1/t1parse.c (T1_Get_Private_Dict): Test whether `eexec'
  2854. is real.
  2855. * src/type42/t42parse.c (t42_parse_encoding): Improve boundary
  2856. checking while parsing.
  2857. * docs/CHANGES: Updated.
  2858. 2003-10-21 Josselin Mouette <joss@debian.org>
  2859. * include/freetype/internal/t1types.h (T1_FontRec): `paint_type'
  2860. and `stroke_width' aren't pointers.
  2861. * src/type42/t42objs.c (T42_Face_Done), src/type1/t1objs.c
  2862. (T1_Face_Done): Don't free `paint_type' and `stroke_width'.
  2863. 2003-10-20 Graham Asher <graham.asher@btinternet.com>
  2864. * src/winfonts/winfnt.c (fnt_cmap_class): Fix position of `const'.
  2865. 2003-10-19 Werner Lemberg <wl@gnu.org>
  2866. * src/autohint/ahhint.c (ah_hinter_load_glyph): Patch from
  2867. 2003-08-18 introduced a severe bug (FT_Render_Glyph was called
  2868. twice under some circumstances, causing strange results). This
  2869. is fixed now by clearing the FT_LOAD_RENDER bit of `load_flags'.
  2870. * src/base/ftpfr.c (FT_Get_PFR_Metrics): Initialize `error'.
  2871. * src/psaux/psobjs.c (ps_tobytes): Initialize `n'.
  2872. * src/type42/t42parse.c (t42_parse_sfnts): Initialize `string_size'.
  2873. 2003-10-16 Werner Lemberg <wl@gnu.org>
  2874. Completely revised Type 42 parser. It now handles both fonts
  2875. produced with ttftot42 (tested version 0.3.1) and
  2876. TrueTypeToType42.ps (tested version May 2001; it is necessary to
  2877. fix the broken header comment to be `%!PS-TrueTypeFont...').
  2878. * src/type42/t42objs.c (T42_GlyphSlot_Load): Change fourth
  2879. parameter to `FT_UInt'.
  2880. * src/type42/t42objs.h: Updated.
  2881. * src/type42/t42parse.h (T42_ParserRec): Change type of `in_memory'
  2882. to FT_Bool.
  2883. (T42_Loader): Change type of `num_chars' and `num_glyphs' to
  2884. FT_UInt.
  2885. Add `swap_table' element.
  2886. * src/type42/t42parse.c (T42_KEYWORD_COUNT, T1_ToFixed,
  2887. T1_ToCoordArray, T1_ToTokenArray): Removed.
  2888. (T1_ToBytes): New macro.
  2889. (t42_is_alpha, t42_hexval): Removed.
  2890. (t42_is_space): Handle `\0'.
  2891. (t42_parse_encoding): Updated to use new PostScript parser routines
  2892. from psaux.
  2893. Handle `/Encoding [ ... ]' also.
  2894. (T42_Load_Status): New enumeration.
  2895. (t42_parse_sfnts): Updated to use new PostScript parser routines
  2896. from psaux.
  2897. (t42_parse_charstrings): Updated to use new PostScript parser
  2898. routines from psaux.
  2899. Handle `/CharStrings << ... >>' also.
  2900. Don't expect that /.notdef is the first element in dictionary. Copy
  2901. code from type1 module to handle this.
  2902. (t42_parse_dict): Updated to use new PostScript parser routines
  2903. from psaux.
  2904. Remove code for synthetic fonts (which can't occur in Type 42
  2905. fonts).
  2906. (t42_loader_done): Release `swap_table'.
  2907. * src/psaux/psobjs.c (skip_string): Increase `cur' properly.
  2908. * src/type1/t1load.c (parse_charstrings): Make test for `.notdef'
  2909. faster.
  2910. 2003-10-15 Graham Asher <graham.asher@btinternet.com>
  2911. * src/autohint/ahglobal.c (blue_chars), src/winfonts/winfnt.c
  2912. (fnt_cmap_class_rec, fnt_cmap_class), src/bdf/bdflib.c (empty,
  2913. _num_bdf_properties), src/gzip/infutil.c (inflate_mask),
  2914. src/gzip/inffixed.h (fixed_bl, fixed_bd, fixed_tl, fixed_td),
  2915. src/gzip/inftrees.h (inflate_trees_fixed), src/gzip/inftrees.c
  2916. (inflate_trees_fixed): Decorate with more `const' to avoid
  2917. writable global variables which are disallowed on ARM.
  2918. 2003-10-08 Werner Lemberg <wl@gnu.org>
  2919. * src/type1/t1load.c (parse_font_matrix, parse_charstrings): Remove
  2920. code specially for synthetic fonts; this is handled elsewhere.
  2921. (parse_encoding): Remove code specially for synthetic fonts; this is
  2922. handled elsewhere.
  2923. Improve boundary checking while parsing.
  2924. (parse_dict): Improve boundary checking while parsing.
  2925. Use ft_memcmp to simplify code.
  2926. 2003-10-07 Werner Lemberg <wl@gnu.org>
  2927. * src/type1/t1load.c (parse_subrs, parse_dict): Handle synthetic
  2928. fonts properly.
  2929. (parse_charstrings): Copy correct number of characters into
  2930. `name_table'.
  2931. 2003-10-06 Werner Lemberg <wl@gnu.org>
  2932. Heavy modification of the PS parser to handle comments and strings
  2933. correctly. This doesn't slow down the loading of PS fonts
  2934. significantly since charstrings aren't affected.
  2935. * include/freetype/config/ftstdlib.h (ft_xdigit): Renamed to...
  2936. (ft_isxdigit): This. Updated all callers.
  2937. (ft_isdigit): New alias to `isdigit'.
  2938. * include/freetype/internal/psaux.h (PS_Parser_FuncsRec): Renamed
  2939. `skip_alpha' to `skip_PS_token'.
  2940. Add parameter to `to_bytes' and change some argument types.
  2941. * src/psaux/psauxmod.c (ps_parser_funcs): Updated.
  2942. * src/psaux/psobjs.c (ft_char_table): New array to map character
  2943. codes (ASCII and EBCDIC) of digits to numbers.
  2944. (OP): New auxiliary macro holding either `>=' or `<' depending on
  2945. the character encoding.
  2946. (skip_comment): New function.
  2947. (skip_spaces): Use it.
  2948. (skip_alpha): Removed.
  2949. (skip_literal_string, skip_string): New functions.
  2950. (ps_parser_skip_PS_token): New function. This is a better
  2951. replacement of...
  2952. (ps_parser_skip_alpha): Removed.
  2953. (ps_parser_to_token, ps_parser_to_token_array): Updated.
  2954. (T1Radix): Rewritten, using `ft_char_table'.
  2955. (t1_toint): Renamed to...
  2956. (ps_toint): This. Update all callers.
  2957. Use `ft_char_table'.
  2958. (ps_tobytes): Add parameter to handle delimiters and change some
  2959. argument types.
  2960. Use `ft_char_table'.
  2961. (t1_tofixed): Renamed to...
  2962. (ps_tofixed): This. Update all callers.
  2963. Use `ft_char_table'.
  2964. (t1_tocoordarray): Renamed and updated to...
  2965. (ps_tocoordarray): This. Update all callers.
  2966. (t1_tofixedarray): Renamed and updated to...
  2967. (ps_tofixedarray): This. Update all callers.
  2968. (t1_tobool): Renamed to...
  2969. (ps_tobool): This. Update all callers.
  2970. (ps_parser_load_field): Updated.
  2971. (ps_parser_load_field_table): Use `T1_MAX_TABLE_ELEMENTS'
  2972. everywhere.
  2973. (ps_parser_to_int, ps_parser_to_fixed, ps_parser_to_coord_array,
  2974. ps_parser_to_fixed_array): Skip spaces. Updated.
  2975. (ps_parser_to_bytes): Add parameter to handle delimiters and change
  2976. some argument types. Updated.
  2977. * src/psaux/psobjs.h: Updated.
  2978. * src/cid/cidload.c (cid_parse_dict): Updated.
  2979. * src/cid/cidparse.c (cid_parser_new): Check whether the `StartData'
  2980. token was really found.
  2981. * src/cid/cidparse.h (cid_parser_skip_alpha): Updated and renamed
  2982. to...
  2983. (cid_parser_skip_PS_token): This.
  2984. * src/type1/t1parse.h (T1_ParserRec): Use `FT_Bool' for boolean
  2985. fields.
  2986. (T1_Skip_Alpha): Replaced with...
  2987. (T1_Skip_PS_Token): This new macro.
  2988. * src/type1/t1parse.c (hexa_value): Removed.
  2989. (T1_Get_Private_Dict): Use `ft_isxdigit' and
  2990. `psaux->ps_parser_funcs_to_bytes' for handling ASCII hexadecimal
  2991. encoding.
  2992. After decrypting, replace the four random bytes at the beginning
  2993. with whitespace.
  2994. * src/type1/t1load.c (t1_allocate_blend): Use proper error values.
  2995. (parser_blend_design_positions, parse_blend_design_map,
  2996. parse_weight_vector): Updated.
  2997. (is_space): Handle `\f' also.
  2998. (is_name_char): Removed.
  2999. (read_binary_data): Updated.
  3000. (parse_encoding): Use `ft_isdigit'.
  3001. Updated.
  3002. (parse_subrs): Updated.
  3003. (TABLE_EXTEND): New macro.
  3004. (parse_charstrings): Updated.
  3005. Provide a workaround for buggy fonts which have more entries in the
  3006. /CharStrings dictionary then expected; the function now adds some
  3007. slots and skips entries which still exceed the new limit.
  3008. (parse_dict): Updated.
  3009. Terminate on the token `closefile'.
  3010. * src/type42/t42parse.c (T1_Skip_Alpha): Replaced with...
  3011. (T1_Skip_PS_Token): This new macro. Updated all callers.
  3012. (t42_parse_encoding): Use `ft_isdigit'.
  3013. * src/base/ftmm.c (ft_face_get_mm_service): Return FT_Err_Ok if
  3014. success.
  3015. 2003-10-05 Werner Lemberg <wl@gnu.org>
  3016. * include/freetype/ftmodule.h: Renamed to...
  3017. * include/freetype/ftmodapi.h: This to avoid duplicate file names.
  3018. * include/freetype/config/ftheader.h (FT_MODULE_H): Updated.
  3019. 2003-10-04 Werner Lemberg <wl@gnu.org>
  3020. * src/base/ftoutln.c (FT_OrientationExtremumRec,
  3021. FT_Outline_Get_Orientation): Trivial typo fixes to make it compile.
  3022. 2003-10-02 Markus F.X.J. Oberhumer <markus@oberhumer.com>
  3023. * src/winfonts/winfnt.c (FT_WinFNT_HeaderRec): `color_table_offset'
  3024. has four bytes, not two.
  3025. Fix all users.
  3026. (fnt_font_load, FNT_Load_Glyph): Add more font validity tests.
  3027. 2003-10-01 David Turner <david@freetype.org>
  3028. * src/autofit/*: Adding first source files of the new multi-script
  3029. `auto-fitter'.
  3030. * include/freetype/ftoutln.h (FT_Orientation): New enumeration.
  3031. (FT_Outline_Get_Orientation): New declaration.
  3032. * src/base/ftoutln.c (FT_OrientationExtremumRec): New structure.
  3033. (ft_orientation_extremum_compute): New auxiliary function.
  3034. (FT_Outline_Get_Orientation): New function to compute the fill
  3035. orientation of a given glyph outline.
  3036. * include/freetype/internal/ftserv.h (FT_FACE_LOOKUP_SERVICE): Fixed
  3037. trivial bug which could crash the font engine when a cached service
  3038. pointer was retrieved.
  3039. 2003-09-30 Werner Lemberg <wl@gnu.org>
  3040. * src/cid/cidload.c (cid_parse_dict): Skip token if no keyword is
  3041. found.
  3042. * src/type1/t1parse.c (IS_T1_WHITESPACE, IS_T1_LINESPACE,
  3043. IS_T1_SPACE): Removed.
  3044. (PFB_Tag): Removed.
  3045. (read_pfb_tag): Don't use PFB_Tag.
  3046. * src/type42/t42parse.c (t42_is_space): Handle `\f' also.
  3047. (t42_parse_encoding): Handle synthetic fonts.
  3048. 2003-09-29 Werner Lemberg <wl@gnu.org>
  3049. * include/freetype/internal/t1types.h: Don't include
  3050. FT_INTERNAL_OBJECTS_H but FT_INTERNAL_SERVICE_H.
  3051. * src/truetype/ttobjs.c: Don't include
  3052. FT_SERVICE_POSTSCRIPT_NAMES_H.
  3053. 2003-09-29 David Turner <david@freetype.org>
  3054. Added new service to handle glyph name dictionaries, replacing the
  3055. old internal header named `psnames.h' by `services/svpsname.h'.
  3056. Note that this is different from `services/svpostnm.h' which only
  3057. handles the retrieval of PostScript font names for a given face.
  3058. (Should we merge these two services into a single header?)
  3059. * include/freetype/internal/psnames.h: Removed. Most of its
  3060. contents is moved to...
  3061. * include/freetype/internal/services/svpsname.h: New file.
  3062. * include/freetype/internal/services/svpostnm.h
  3063. (FT_SERVICE_ID_POSTSCRIPT_NAME): Replaced with...
  3064. (FT_SERVICE_ID_POSTSCRIPT_FONT_NAME): New macro.
  3065. (PsName): Service named changed to...
  3066. (PsFontName): This.
  3067. Updated `FT_Service_PsName' -> `FT_Service_PsFontName' and
  3068. `POSTSCRIPT_NAME' -> `POSTSCRIPT_FONT_NAME' everywhere.
  3069. * include/freetype/internal/internal.h
  3070. (FT_INTERNAL_POSTSCRIPT_NAMES_H): Removed.
  3071. * include/freetype/internal/psaux.h: Include
  3072. FT_SERVICE_POSTSCRIPT_NAMES_H.
  3073. (T1_DecoderRec): Updated type of `psnames'.
  3074. * include/freetype/internal/t1types.h: Don't include
  3075. FT_INTERNAL_POSTSCRIPT_NAMES_H but FT_SERVICE_POSTSCRIPT_NAMES_H.
  3076. Include FT_INTERNAL_OBJECTS_H.
  3077. * include/freetype/internal/t42types.h: Don't include
  3078. FT_INTERNAL_POSTSCRIPT_NAMES_H.
  3079. * include/freetype/internal/tttypes.h (TT_FaceRec): Updated.
  3080. * include/freetype/internal/ftserv.h (FT_FACE_FIND_SERVICE): Changed
  3081. order of parameters. All callers updated.
  3082. (FT_FACE_FIND_GLOBAL_SERVICE): New macro to look up a service
  3083. globally, checking all modules.
  3084. (FT_ServiceCacheRec): Updated.
  3085. (FT_SERVICE_POSTSCRIPT_NAMES_H): New macro for accessing
  3086. `svpsname.h'.
  3087. * include/freetype/internal/ftobjs.h, src/base/ftobjs.c
  3088. (ft_module_get_service): New function.
  3089. * src/cff/cffdrivr.c: Don't include FT_INTERNAL_POSTSCRIPT_NAMES_H
  3090. but FT_SERVICE_POSTSCRIPT_NAMES_H.
  3091. (cff_get_glyph_name, cff_get_name_index): Use new POSTSCRIPT_NAMES
  3092. service.
  3093. * src/cff/cffcmap.c (cff_cmap_unicode_init): Updated.
  3094. * src/cff/cffload.c, src/cff/cffload.h: Don't include
  3095. FT_INTERNAL_POSTSCRIPT_NAMES_H but FT_SERVICE_POSTSCRIPT_NAMES_H.
  3096. (cff_index_get_sid_string): Updated.
  3097. * src/cff/cffobjs.c: Don't include FT_INTERNAL_POSTSCRIPT_NAMES_H
  3098. but FT_SERVICE_POSTSCRIPT_NAMES_H.
  3099. (cff_face_init): Use new POSTSCRIPT_NAMES service.
  3100. * src/cff/cffobjs.h: Don't include FT_INTERNAL_POSTSCRIPT_NAMES_H
  3101. but FT_SERVICE_POSTSCRIPT_NAMES_H.
  3102. * src/cid/cidobjs.c: Don't include FT_INTERNAL_POSTSCRIPT_NAMES_H
  3103. but FT_SERVICE_POSTSCRIPT_NAMES_H.
  3104. (cid_face_init): Use new POSTSCRIPT_NAMES service.
  3105. * src/cid/cidriver.c: Don't include FT_INTERNAL_POSTSCRIPT_NAMES_H.
  3106. * src/psaux/t1cmap.c (t1_cmap_std_init, t1_cmap_unicode_init): Use
  3107. new POSTSCRIPT_NAMES service.
  3108. * src/psaux/t1decode.h (t1_lookup_glyph_by_stdcharcode,
  3109. t1_decode_init): Use new POSTSCRIPT_NAMES service.
  3110. * src/psaux/t1cmap.h, src/psaux/t1decode.h: Don't include
  3111. FT_INTERNAL_POSTSCRIPT_NAMES_H.
  3112. * src/psnames/psmodule.c: Don't include
  3113. FT_INTERNAL_POSTSCRIPT_NAMES_H but FT_SERVICE_POSTSCRIPT_NAMES_H.
  3114. (ps_build_unicode_table): Renamed to...
  3115. (ps_unicodes_init): This.
  3116. (ps_lookup_unicode): Renamed to...
  3117. (ps_unicodes_char_index): This.
  3118. (ps_next_unicode): Renamed to...
  3119. (ps_unicodes_char_next): This.
  3120. (psnames_interface): Updated.
  3121. (psnames_services): New services list.
  3122. (psnames_get_service): New function.
  3123. (psnames_module_class): Updated.
  3124. * src/sfnt/sfobjs.c: Don't include FT_INTERNAL_POSTSCRIPT_NAMES_H
  3125. but FT_SERVICE_POSTSCRIPT_NAMES_H.
  3126. (sfnt_init_face): Use new POSTSCRIPT_NAMES service.
  3127. * src/sfnt/ttpost.c: Don't include FT_INTERNAL_POSTSCRIPT_NAMES_H
  3128. but FT_SERVICE_POSTSCRIPT_NAMES_H.
  3129. (tt_face_get_ps_name): Updated.
  3130. * src/truetype/ttobjs.c: Don't include
  3131. FT_INTERNAL_POSTSCRIPT_NAMES_H but FT_SERVICE_POSTSCRIPT_NAMES_H.
  3132. * src/type1/t1driver.c: Don't include
  3133. FT_INTERNAL_POSTSCRIPT_NAMES_H but FT_SERVICE_POSTSCRIPT_NAMES_H.
  3134. * src/type1/t1objs.c: Don't include
  3135. FT_INTERNAL_POSTSCRIPT_NAMES_H but FT_SERVICE_POSTSCRIPT_NAMES_H.
  3136. (T1_Face_Init): Use new POSTSCRIPT_NAMES service.
  3137. * src/type42/t42drivr.c (t42_get_ps_name): Renamed to...
  3138. (t42_get_ps_font_name): This.
  3139. (t42_service_ps_name): Renamed to...
  3140. (t42_service_ps_font_name): This.
  3141. (t42_services): Updated.
  3142. * src/type42/t42objs.c (T42_Face_Init): Use new POSTSCRIPT_NAMES
  3143. service.
  3144. * src/type42/t42objs.h: Don't include
  3145. FT_INTERNAL_POSTSCRIPT_NAMES_H but FT_SERVICE_POSTSCRIPT_NAMES_H.
  3146. * src/base/ftglyph.c (FT_Get_Glyph): Don't access `slot' before
  3147. testing its validity. Reported by Henry Maddocks
  3148. <maddocks@metservice.com>.
  3149. 2003-09-21 Werner Lemberg <wl@gnu.org>
  3150. * include/freetype/internal/ftserv.h (FT_FACE_FIND_SERVICE):
  3151. Fix compilation warning (s/pptr/Pptr/).
  3152. * include/freetype/internal/internal.h (FT_INTERNAL_PFR_H,
  3153. FT_INTERNAL_FNT_TYPES_H): Removed.
  3154. 2003-09-21 David Turner <david@freetype.org>
  3155. Migrating the PFR and WINFNT drivers to the new service-based
  3156. internal API.
  3157. * include/freetype/internal/fnttypes.h: Removed. Most of its data
  3158. are moved to winfnt.h and...
  3159. * include/freetype/internal/services/svwinfnt.h: New file.
  3160. * include/freetype/internal/pfr.h: Removed. Most of its data are
  3161. moved to...
  3162. * include/freetype/internal/services/svpfr.h: New file.
  3163. * include/freetype/internal/ftserv.h (FT_FACE_FIND_SERVICE,
  3164. FT_FACE_LOOKUP_SERVICE): Simplify fix of 2003-09-16 by removing
  3165. pointer type argument.
  3166. Updated all callers.
  3167. Update macro names of services header files.
  3168. * src/base/ftobjs.c (FT_Get_Name_Index): Simplified code.
  3169. * src/base/ftpfr.c: Include FT_SERVICE_PFR_H instead of
  3170. FT_INTERNAL_PFR_H.
  3171. (ft_pfr_check, FT_Get_PFR_Metrics, FT_Get_PFR_Kerning,
  3172. FT_Get_PFR_Advance): Use services provided in `PFR_METRICS'.
  3173. * src/base/ftwinfnt.c: Include FT_SERVICE_WINFNT_H instead of
  3174. FT_INTERNAL_FNT_TYPES_H.
  3175. (FT_Get_WinFNT_Header): Use service provided in `WINFNT'.
  3176. * src/pfr/pfrdrivr.c: Include FT_SERVICE_PFR_H and
  3177. FT_SERVICE_XFREE86_NAME_H instead of FT_INTERNAL_PFR_H.
  3178. (pfr_service_bdf): Updated.
  3179. (pfr_services): New services list.
  3180. (pfr_get_service): New function.
  3181. (pfr_driver_class): Updated.
  3182. * src/winfonts/winfnt.c: Include FT_SERVICE_WINFNT_H and
  3183. FT_SERVICE_XFREE86_NAME_H instead of FT_INTERNAL_FNT_TYPES_H.
  3184. (winfnt_get_header, winfnt_get_service): New functions.
  3185. (winfnt_service_rec): New structure providing WINFNT services.
  3186. (winfnt_services): New services list.
  3187. (winfnt_driver_class): Updated.
  3188. * src/winfonts/winfnt.h: Add most of the removed fnttypes.h data.
  3189. * src/sfnt/sfdriver.c (sfnt_service_ps_name): Fix typo.
  3190. * src/type1/t1driver.c (t1_service_ps_name): Fix typo.
  3191. * src/cff/cffobjs.c, src/cid/cidobjs.c, src/pfr/pfrsbit.c,
  3192. src/psaux/psobjs.c, src/sfnt/sfobjs.c, src/truetype/ttobjs.c,
  3193. src/type1/t1objs.c, src/type42/t42objs.c: Removing various compiler
  3194. warnings.
  3195. 2003-09-19 David Bevan <dbevan@emtex.com>
  3196. * src/type1/t1parse.c (pfb_tag_fields): Removed.
  3197. (read_pfb_tag): Fix code so that it doesn't fail on end-of-file
  3198. indicator (0x8003).
  3199. * docs/CHANGES: Updated.
  3200. 2003-09-16 Werner Lemberg <wl@gnu.org>
  3201. * include/freetype/internal/ftserv.h (FT_FACE_FIND_SERVICE,
  3202. FT_FACE_LOOKUP_SERVICE): Add parameter to pass pointer type.
  3203. Ugly, I know, but this is needed for compilation with C++ --
  3204. maybe someone knows a better solution?
  3205. Updated all callers.
  3206. * src/base/ftobjs.c (FT_Get_Name_Index, FT_Get_Glyph_Name): Remove
  3207. C++ compiler warnings.
  3208. * src/base/ftbdf.c (FT_Get_BDF_Charset_ID, FT_Get_BDF_Property):
  3209. Fix order of arguments passed to FT_FACE_FIND_SERVICE.
  3210. 2003-09-15 Werner Lemberg <wl@gnu.org>
  3211. Avoid header files with identical names.
  3212. * include/freetype/internal/services/bdf.h: Renamed to...
  3213. * include/freetype/internal/services/svbdf.h: This.
  3214. Add copyright notice.
  3215. * include/freetype/internal/services/glyfdict.h: Renamed to...
  3216. * include/freetype/internal/services/svgldict.h: This.
  3217. Add copyright notice.
  3218. * include/freetype/internal/services/multmast.h: Renamed to...
  3219. * include/freetype/internal/services/svmm.h: This.
  3220. Add copyright notice.
  3221. Add FT_BEGIN_HEADER and FT_END_HEADER.
  3222. * include/freetype/internal/services/sfnt.h: Renamed to...
  3223. * include/freetype/internal/services/svsfnt.h: This.
  3224. Add copyright notice.
  3225. * include/freetype/internal/services/postname.h: Renamed to...
  3226. * include/freetype/internal/services/svpostnm.h: This.
  3227. Add copyright notice.
  3228. * include/freetype/internal/services/xf86name.h: Renamed to...
  3229. * include/freetype/internal/services/svxf86nm.h: This.
  3230. Add copyright notice.
  3231. * include/freetype/internal/ftserv.h: Add FT_BEGIN_HEADER and
  3232. FT_END_HEADER.
  3233. Add copyright notice.
  3234. Update macro names of services header files.
  3235. * builds/freetype.mk (SERVICES_DIR): New variable.
  3236. (BASE_H): Add services header files.
  3237. 2003-09-11 Werner Lemberg <wl@gnu.org>
  3238. * builds/toplevel.mk (distclean): Remove `builds/unix/freetype2.pc'.
  3239. * src/cff/cffdrivr.c: Don't load headers twice.
  3240. * include/freetype/internal/ftserv.h (FT_SERVICE_SFNT_H): New macro.
  3241. * src/base/ftobjs.c: Include FT_SERVICE_SFNT_H.
  3242. * src/cff/cffcmap.c: Include `cfferrs.h'.
  3243. * src/pfr/pfrdrivr.c: Include `pfrerror.h'.
  3244. * src/sfnt/sfdriver.c: Include `sferrors.h'.
  3245. * src/psaux/psobjs.h: Add declaration for `ps_parser_to_bytes'.
  3246. 2003-09-11 David Turner <david@freetype.org>
  3247. Introducing the concept of `module services'. This is the first
  3248. step towards a massive simplification of the engine's internals, in
  3249. order to get rid of various numbers of hacks.
  3250. Note that these changes will break source & binary compatibility for
  3251. authors of external font drivers.
  3252. * include/freetype/config/ftconfig.h (FT_BEGIN_STMNT, FT_END_STMNT,
  3253. FT_DUMMY_STMNT): New macros.
  3254. * include/freetype/internal/ftserv.h: New file, containing the new
  3255. structures and macros to provide `services'.
  3256. * include/freetype/internal/internal.h (FT_INTERNAL_EXTENSION_H,
  3257. FT_INTERNAL_EXTEND_H, FT_INTERNAL_HASH_H, FT_INTERNAL_OBJECT_H):
  3258. Removed, obsolete.
  3259. (FT_INTERNAL_SERVICE_H): New macro for `ftserv.h'.
  3260. * include/freetype/internal/services/bdf.h,
  3261. include/freetype/internal/services/glyfdict.h,
  3262. include/freetype/internal/services/postname.h,
  3263. include/freetype/internal/services/xf86name.h: New files.
  3264. * include/freetype/ftmm.h (FT_Get_MM_Func, FT_Set_MM_Design_Func,
  3265. FT_Set_MM_Blend_Func): Function pointers moved (in modified form)
  3266. to...
  3267. * include/freetype/internal/services/multmast.h: New file.
  3268. * include/freetype/internal/sfnt.h (SFNT_Interface): `get_interface'
  3269. is now of type `FT_Module_Requester'.
  3270. (SFNT_Get_Interface_Func, SFNT_Load_Table_Func): Function pointers
  3271. moved (in modified form) to...
  3272. * include/freetype/internal/services/sfnt.h: New file.
  3273. * include/freetype/tttables.h (FT_Get_Sfnt_Table_Func): Function
  3274. pointer moved (in modified form) to `services/sfnt.h'.
  3275. * include/freetype/ftmodule.h (FT_Module_Interface): Make it a
  3276. a typedef to `FT_Pointer'.
  3277. * include/freetype/internal/tttypes.h (TT_FaceRec): Add
  3278. `postscript_name'.
  3279. * include/freetype/internal/ftobjs.h (FT_Face_InternalRec): Remove
  3280. `postscript_name'.
  3281. Add `services' element.
  3282. (FT_LibraryRec): Remove `meta_class'.
  3283. * src/base/ftbdf.c: Include FT_SERVICE_BDF_H.
  3284. (test_font_type): Removed.
  3285. (FT_Get_BDF_Charset_ID, FT_Get_BDF_Property): Use services
  3286. provided in `FT_SERVICE_ID_BDF'.
  3287. * src/base/ftmm.c: Include FT_SERVICE_MULTIPLE_MASTERS_H.
  3288. (ft_face_get_mm_service): New auxiliary function to get services
  3289. from `FT_SERVICE_ID_MULTI_MASTERS'.
  3290. (FT_Get_Multi_Master, FT_Set_MM_Design_Coordinates,
  3291. FT_Set_MM_Blend_Coordinates): Use `ft_face_get_mm_service'.
  3292. * src/base/ftobjs.c: Include FT_SERVICE_POSTSCRIPT_NAME_H and
  3293. FT_SERVICE_GLYPH_DICT_H.
  3294. (ft_service_list_lookup): New function to get a specific service.
  3295. (destroy_face): Updated.
  3296. (Mac_Read_POST_Resource): Simplify some code.
  3297. (IsMacResource): Fix warnings.
  3298. (FT_Get_Name_Index, FT_Get_Glyph_Name): Use services provided in
  3299. `FT_SERVICE_ID_GLYPH_DICT'.
  3300. (FT_Get_Postscript_Name): Use service provided in
  3301. `FT_SERVICE_ID_POSTSCRIPT_NAME'.
  3302. (FT_Get_Sfnt_Table, FT_Load_Sfnt_Table): Use services provided in
  3303. `FT_SERVICE_ID_SFNT_TABLE'.
  3304. * src/base/ftxf86.c: Include FT_SERVICE_XFREE86_NAME_H.
  3305. (FT_Get_X11_Font_Format): Use service provided in
  3306. `FT_SERVICE_ID_XF86_NAME'.
  3307. * src/bdf/bdfdrivr.c: Include FT_SERVICE_BDF_H and
  3308. FT_SERVICE_XFREE86_NAME_H.
  3309. (bdf_get_charset_id): New function.
  3310. (bdf_service_bdf): New structure providing BDF services.
  3311. (bdf_services): New services list.
  3312. (bdf_driver_requester): Use `ft_service_list_lookup'.
  3313. * src/cff/cffdrivr.c: Include FT_SERVICE_XFREE86_NAME_H and
  3314. FT_SERVICE_GLYPH_DICT_H.
  3315. (cff_service_glyph_dict): New structure providing CFF services.
  3316. (cff_services): New services list.
  3317. (cff_get_interface): Use `ft_service_list_lookup'.
  3318. * src/cid/cidriver.c: Include FT_SERVICE_POSTSCRIPT_NAME_H and
  3319. FT_SERVICE_XFREE86_NAME_H.
  3320. (cid_service_ps_name): New structure providing CID services.
  3321. (cid_services): New services list.
  3322. (cid_get_interface): Use `ft_service_list_lookup'.
  3323. * src/pcf/pcfdrivr.c: Include FT_SERVICE_BDF_H and
  3324. FT_SERVICE_XFREE86_NAME_H.
  3325. (pcf_service_bdf): New structure providing PCF services.
  3326. (pcf_services): New services list.
  3327. (pcf_driver_requester): Use `ft_service_list_lookup'.
  3328. * src/sfnt/sfdriver.c: Include FT_SERVICE_GLYPH_DICT_H and
  3329. FT_SERVICE_POSTSCRIPT_NAME_H.
  3330. (get_sfnt_glyph_name): Renamed to...
  3331. (sfnt_get_glyph_name): This.
  3332. (get_sfnt_postscript_name): Renamed to...
  3333. (sfnt_get_ps_name): This.
  3334. Updated.
  3335. (sfnt_service_glyph_dict, sfnt_service_ps_name): New structures
  3336. providing services.
  3337. (sfnt_services): New services list.
  3338. (sfnt_get_interface): Use `ft_service_list_lookup'.
  3339. * src/truetype/ttdriver.c: Include FT_SERVICE_XFREE86_NAME_H.
  3340. (tt_services): New services list.
  3341. (tt_get_interface): Use `ft_service_list_lookup'.
  3342. * src/type1/t1driver.c: Include FT_SERVICE_MULTIPLE_MASTERS_H,
  3343. FT_SERVICE_GLYPH_DICT_H, FT_SERVICE_XFREE86_NAME_H, and
  3344. FT_SERVICE_POSTSCRIPT_NAME_H.
  3345. (t1_service_glyph_dict, t1_service_ps_name,
  3346. t1_service_multi_masters): New structures providing Type 1 services.
  3347. (t1_services): New services list.
  3348. (Get_Interface): Use `ft_service_list_lookup'.
  3349. * src/type42/t42drivr.c: Include FT_SERVICE_XFREE86_NAME_H,
  3350. FT_SERVICE_GLYPH_DICT_H, and FT_SERVICE_POSTSCRIPT_NAME_H.
  3351. (t42_service_glyph_dict, t42_service_ps_name): New structures
  3352. providing Type 42 services.
  3353. (t42_services): New services list.
  3354. (T42_Get_Interface): Use `ft_service_list_lookup'.
  3355. * README, docs/CHANGES: Updating version numbers for 2.1.6, and
  3356. removing obsolete warnings in the documentation.
  3357. * include/freetype/freetype.h (FREETYPE_PATCH): Set to 6.
  3358. * builds/unix/configure.ac (version_info): Set to 9:5:3.
  3359. * builds/unix/configure: Regenerated.
  3360. * include/freetype/internal/ftcore.h,
  3361. include/freetype/internal/ftexcept.h,
  3362. include/freetype/internal/fthash.h,
  3363. include/freetype/internal/ftobject.h: Removed. Obsolete.
  3364. 2003-09-09 David Turner <david@freetype.org>
  3365. Fixing PFR kerning support. The tables within the font file contain
  3366. (charcode,charcode) kerning pairs, we need to convert them to
  3367. (gindex,gindex).
  3368. * src/base/ftpfr.c (ft_pfr_check): Fix serious typo.
  3369. * src/pfr/pfrload.c: Remove dead code.
  3370. (pfr_get_gindex, pfr_compare_kern_pairs, pfr_sort_kerning_pairs):
  3371. New functions.
  3372. (pfr_phy_font_done): Free `kern_pairs'.
  3373. (pfr_phy_font_load): Call `pfr_sort_kerning_pairs'.
  3374. * src/pfr/pfrobjs.c (pfr_face_get_kerning): Fix kerning extraction.
  3375. * src/pfr/pfrtypes.h (PFR_KERN_PAIR_INDEX): New macro.
  3376. (PFR_KernPairRec): Make `kerning' an FT_Int.
  3377. (PFR_PhyFontRec): New element `kern_pairs'.
  3378. (PFR_KernFlags): Values of PFR_KERN_2BYTE_CHAR and
  3379. PFR_KERN_2BYTE_ADJ were erroneously reversed.
  3380. * include/freetype/ftoption.h: Commenting out the macro
  3381. TT_CONFIG_OPTION_BYTECODE_INTERPRETER.
  3382. 2003-09-02 David Turner <david@freetype.org>
  3383. * Version 2.1.5 released.
  3384. =========================
  3385. 2003-08-31 Manish Singh <yosh@gimp.org>
  3386. * src/bdf/bdflib.c (_bdf_readstream): Don't use FT_MEM_COPY but
  3387. FT_MEM_MOVE.
  3388. 2003-08-30 Werner Lemberg <wl@gnu.org>
  3389. * include/freetype/freetype.h (FT_ENCODING_SJIS, FT_ENCODING_GB2312,
  3390. FT_ENCODING_BIG5, FT_ENCODING_WANSUNG, FT_ENCODING_JOHAB): New
  3391. enumerations of FT_Encoding. The FT_ENCODING_MS_* variants except
  3392. FT_ENCODING_MS_SYMBOL are now deprecated.
  3393. Updated all users.
  3394. * docs/CHANGES: Document it.
  3395. 2003-08-27 Werner Lemberg <wl@gnu.org>
  3396. * src/bdf/bdfdrivr.c (BDF_Face_Init): Accept lowercase characters
  3397. for spacing.
  3398. 2003-08-27 Mike FABIAN <mfabian@suse.de>
  3399. * src/pcf/pcfread.c (pcf_load_font), src/bdf/bdfdrivr.c
  3400. (BDF_Face_Init): Accept lowercase characters for slant and weight.
  3401. 2003-08-18 David Turner <david@freetype.org>
  3402. * include/freetype/config/ftoption.h: Disabling TrueType bytecode
  3403. interpreter until the UNPATENTED_HINTING works as advertised.
  3404. * src/autohint/ahhint.c (ah_hinter_load_glyph): Use `|' for
  3405. setting `load_flags'.
  3406. * Jamfile: Adding the `refdoc' target to the Jamfile in order to
  3407. build the API Reference in `docs/reference' automatically.
  3408. * include/freetype/t1tables.h (PS_FontInfoRec), src/cid/cidtoken.h,
  3409. src/type1/t1tokens.h, src/type42/t42parse.c: Resetting the types of
  3410. `italic_angle', `underline_position', and `underline_thickness' to
  3411. their previous values (i.e., long, short, and ushort) in order to
  3412. avoid breaking binary compatibility.
  3413. * include/freetype/ttunpat.h: Fixing documentation comment.
  3414. * include/freetype/config/ftoption.h, devel/ftoption.h
  3415. (TT_CONFIG_OPTION_COMPILE_UNPATENTED_HINTING): Replaced with...
  3416. (TT_CONFIG_OPTION_UNPATENTED_HINTING): This. Updated all users.
  3417. (TT_CONFIG_OPTION_FORCE_UNPATENTED_HINTING): Removed.
  3418. * include/freetype/internal/ftobjs.h (FT_DEBUG_HOOK_TYPE1): Removed.
  3419. (FT_DEBUG_HOOK_UNPATENTED_HINTING): New macro. Use this with
  3420. `FT_Set_Debug_Hook' to get the same effect as the removed
  3421. TT_CONFIG_OPTION_FORCE_UNPATENTED_HINTING.
  3422. * src/truetype/ttobjs.c (tt_face_init): Use
  3423. `FT_DEBUG_HOOK_UNPATENTED_HINTING'.
  3424. 2003-08-06 Werner Lemberg <wl@gnu.org>
  3425. * src/type1/t1gload.c (T1_Load_Glyph), src/cff/cffgload.c
  3426. (cff_slot_load), src/cid/cidgload.c (cid_slot_load_glyph): Fix
  3427. previous change.
  3428. 2003-08-05 Werner Lemberg <wl@gnu.org>
  3429. * src/type1/t1gload.c (T1_Load_Glyph), src/cff/cffgload.c
  3430. (cff_slot_load), src/cid/cidgload.c (cid_slot_load_glyph): Apply
  3431. font matrix to advance width also.
  3432. * docs/CHANGES: Updated.
  3433. 2003-07-26 Werner Lemberg <wl@gnu.org>
  3434. * builds/unix/configure.ac (version_info): Set to 9:4:3.
  3435. * builds/unix/configure: Updated.
  3436. * docs/CHANGES, docs/VERSION.DLL: Updated.
  3437. * include/freetype/freetype.h (FT_GlyphSlot): Change 2003-06-16
  3438. also breaks binary compatibility. Reintroduce an unsigned integer
  3439. at the old position of `flags' called `reserved'.
  3440. 2003-07-25 Werner Lemberg <wl@gnu.org>
  3441. Make API reference valid HTML 4.01 transitional.
  3442. * src/tools/docmaker/tohtml.py (html_header_1): Add doctype
  3443. and charset.
  3444. (html_header_2): Fix style elements and add some more.
  3445. Fix syntax.
  3446. (block_header, block_footer, description_header, description_footer,
  3447. marker_header, marker_footer, source_header, source_footer,
  3448. chapter_header): Don't use <center>...</center> but `align=center'
  3449. table attribute.
  3450. (chapter_inter, chapter_footer): Add <li> and use special <ul>
  3451. class.
  3452. Use double quotes around table widths given in percent.
  3453. (keyword_prefix, keyword_suffix): Don't change font colour directly
  3454. but use a new <span> class.
  3455. (section_synopsis_header, section_synopsis_footer): Don't change
  3456. colour.
  3457. (code_header, code_footer): Don't change font colour directly but
  3458. use a special <pre> class.
  3459. (print_html_field): <tr> gets the `valign' attribute, not <table>.
  3460. (print_html_field_list): Ditto.
  3461. (index_exit): Don't use <center>...</center> but `align=center'
  3462. table attribute.
  3463. (section_enter): Ditto.
  3464. (toc_exit): Don't emit </table>.
  3465. (block_enter): Use <h4><a>, not <a><h4>.
  3466. (__init__): Fix tag order in self.html_footer.
  3467. 2003-07-25 David Turner <david@freetype.org>
  3468. This change reimplements fix from 2003-05-30 without breaking
  3469. binary compatibility.
  3470. * include/freetype/t1tables.h (PS_FontInfoRec): `italic_angle',
  3471. `is_fixed_pitch', `underline_position', `underline_thickness' are
  3472. reverted to be normal values.
  3473. * include/freetype/internal/psaux.h (T1_FieldType): Remove
  3474. `T1_FIELD_TYPE_BOOL_P', `T1_FIELD_TYPE_INTEGER_P',
  3475. `T1_FIELD_TYPE_FIXED_P', `T1_FIELD_TYPE_FIXED_1000_P'.
  3476. (T1_FIELD_TYPE_BOOL_P, T1_FIELD_NUM_P, T1_FIELD_FIXED_P,
  3477. T1_FIELD_FIXED_1000_P): Removed.
  3478. (T1_FIELD_TYPE_BOOL): Renamed to...
  3479. (T1_FIELD_BOOL): New macro. Updated all callers.
  3480. * src/type42/t42parse.c: `italic_angle', `is_fixed_pitch',
  3481. `underline_position', `underline_thickness', `paint_type',
  3482. `stroke_width' are reverted to be normal values.
  3483. (T42_KEYWORD_COUNT): New macro.
  3484. (t42_parse_dict): New array `keyword_flags' to mark that a value has
  3485. already been assigned to a dictionary entry.
  3486. * src/type42/t42objs.c (T42_Face_Init, T42_Face_Done): Updated.
  3487. * src/cid/cidtoken.h: `italic_angle', `is_fixed_pitch',
  3488. `underline_position', `underline_thickness' are reverted to be
  3489. normal values.
  3490. * src/cid/cidobjs.c (cid_face_done, cid_face_init): Updated.
  3491. * src/psaux/psobjs.c (ps_parser_load_field): Updated.
  3492. * src/type1/t1tokens.h: `italic_angle', `is_fixed_pitch',
  3493. `underline_position', `underline_thickness', `paint_type',
  3494. `stroke_width' are reverted to be normal values.
  3495. * src/type1/t1objs.c (T1_Face_Done, T1_Face_Init): Updated.
  3496. * src/type1/t1load.c (T1_FIELD_COUNT): New macro.
  3497. (parse_dict): Add parameter for keyword flags.
  3498. Record only first instance of a field.
  3499. (T1_Open_Face): New array `keyword_flags'.
  3500. 2003-07-24 Werner Lemberg <wl@gnu.org>
  3501. * include/freetype/freetype.h (FREETYPE_PATCH): Set to 5.
  3502. * builds/unix/configure.ac (version_info): Set to 10:0:3.
  3503. * builds/unix/configure: Updated.
  3504. * builds/freetype.mk (refdoc): Fix --title.
  3505. * docs/CHANGES, docs/VERSION.DLL, README: Updated.
  3506. * src/tools/docmaker/sources.py (re_crossref): Fix regular
  3507. expression to handle trailing punctuation characters.
  3508. * src/tools/docmaker/tohtml.py (make_html_word): Updated.
  3509. * docs/release: New file.
  3510. 2003-07-23 YAMANO-UCHI Hidetoshi <mer@din.or.jp>
  3511. * include/freetype/internal/psaux.h (PS_Parser_FuncsRec): New
  3512. member function `to_bytes'.
  3513. * src/psaux/psauxmod.c (ps_parser_funcs): New member
  3514. `ps_parser_to_bytes'.
  3515. (psaux_module_class): Increase version to 0x20000L.
  3516. * src/psaux/psobjs.c (IS_T1_LINESPACE): Add \f.
  3517. (IS_T1_NULLSPACE): New macro.
  3518. (IS_T1_SPACE): Add it.
  3519. (skip_spaces, skip_alpha): New functions.
  3520. (ps_parser_skip_spaces, ps_parser_skip_alpha): Use them.
  3521. (ps_tobytes, ps_parser_to_bytes): New functions.
  3522. 2003-07-07 Werner Lemberg <wl@gnu.org>
  3523. * builds/freetype.mk (DOC_DIR): New variable.
  3524. (refdoc): Use *_DIR variables.
  3525. (distclean): Remove documentation files.
  3526. * builds/detect.mk (std_setup, dos_setup): Mention `make refdoc'.
  3527. * configure: Set DOC_DIR variable.
  3528. 2003-07-07 Patrik Hägglund <patrik.hagglund@bredband.net>
  3529. * builds/freetype.mk (refdoc): New target to build the
  3530. documentation.
  3531. (.PHONY): Updated.
  3532. * include/freetype/freetype.h: Improve documentation of FT_CharMap.
  3533. * include/freetype/ftimage,h: Fix documentation of FT_OUTLINE_FLAGS.
  3534. * include/freetype/tttables.h: Document FT_Sfnt_Tag.
  3535. 2003-07-06 Werner Lemberg <wl@gnu.org>
  3536. * src/bdf/bdfdrivr.c (BDF_Face_Init), src/pcf/pcfread.c
  3537. (pcf_load_font): Fix computation of height if PIXEL_SIZE property is
  3538. missing.
  3539. 2003-07-01 Werner Lemberg <wl@gnu.org>
  3540. * src/cache/ftcsbits.c (ftc_sbit_node_compare): Only add `size' if
  3541. there is no error. Reported by Knut St. Osmundsen
  3542. <bird-freetype@anduin.net>.
  3543. 2003-06-30 Werner Lemberg <wl@gnu.org>
  3544. A new try to synchronize bitmap font access.
  3545. * include/freetype/freetype.h (FT_Bitmap_Size): `height' is now
  3546. defined to return the baseline-to-baseline distance. This was
  3547. already the value returned by the BDF and PCF drivers.
  3548. The `width' field now gives the average width. I wasn't able to
  3549. find something better. It should be taken as informative only.
  3550. New fields `size', `x_ppem', and `y_ppem'.
  3551. * src/pcf/pcfread.c (pcf_load_font): Updated to properly fill
  3552. FT_Bitmap_Size.
  3553. Do proper rounding and conversion from 72.27 to 72 points.
  3554. * src/bdf/bdfdrivr.c (BDF_Face_Init): Updated to properly fill
  3555. FT_Bitmap_Size.
  3556. Do proper rounding and conversion from 72.27 to 72 points.
  3557. * src/sfnt/sfobjs.c (sfnt_load_face): Updated to properly fill
  3558. FT_Bitmap_Size.
  3559. * src/winfonts/winfnt.c (FNT_Face_Init): Updated to properly fill
  3560. FT_Bitmap_Size.
  3561. 2003-06-29 Werner Lemberg <wl@gnu.org>
  3562. Redesigning the FNT driver to return multiple faces, not multiple
  3563. strikes. At least one font (app850.fon from WinME) contains
  3564. different FNT charmaps for its subfonts. Consequently, the previous
  3565. design of having multiple bitmap strikes in a single font face fails
  3566. since we have only one charmap per face.
  3567. * include/freetype/internal/fnttypes.h (FNT_Size_Rec): Removed.
  3568. (FNT_FaceRec): Remove `num_fonts' field and replace `fonts' with
  3569. `font'.
  3570. * src/base/ftwinfnt.c (FT_Get_WinFNT_Header): Updated.
  3571. * src/winfonts/winfnt.c (fnt_font_load): Don't set pixel_width equal
  3572. to pixel_height.
  3573. (fnt_face_done_fonts): Removed.
  3574. (fnt_face_get_dll_fonts): Renamed to...
  3575. (fnt_face_get_dll_font): This. Add second function argument to
  3576. select face index.
  3577. Updated to load just one subfont.
  3578. (fnt_font_done, FNT_Face_Done): Updated.
  3579. (FNT_Face_Init): Handle `face_index'.
  3580. Updated.
  3581. (FNT_Size_Set_Pixels): Simplified; similar to BDF and PCF, the
  3582. bitmap width is now ignored.
  3583. (FNT_Load_Glyph): Updated.
  3584. Fix glyph index computation.
  3585. (winfnt_driver_class): Updated.
  3586. 2003-06-25 Owen Taylor <otaylor@redhat.com>
  3587. * src/sfnt/ttload.c (tt_face_load_hdmx): Don't assign
  3588. num_records until we actually decide to load the table,
  3589. otherwise, we'll segfault in tt_face_free_hdmx.
  3590. 2003-06-24 Werner Lemberg <wl@gnu.org>
  3591. * src/cff/cffdrivr.c (cff_get_glyph_name): Protect against zero
  3592. glyph name pointer. Reported by Mikey Anbary <manbary@vizrt.com>.
  3593. 2003-06-23 Werner Lemberg <wl@gnu.org>
  3594. * src/tools/glnames.py: Updated to AGL 2.0.
  3595. * src/psnames/pstables.h: Regenerated.
  3596. 2003-06-22 Werner Lemberg <wl@gnu.org>
  3597. * include/freetype/cache/ftcglyph.h, include/freetype/ttnameid.h,
  3598. src/base/ftcalc.c, src/base/fttrigon.c, src/cff/cffgload.c,
  3599. src/otlayout/otlgsub.c, src/pshinter/pshrec.c,
  3600. src/psnames/psmodule.c, src/sfnt/sfobjs.c, src/truetype/ttdriver.c:
  3601. Decorate constants with `U' and `L' if appropriate.
  3602. * include/freetype/ftmoderr.h: Updated to include recent module
  3603. additions.
  3604. * src/pshinter/pshnterr.h (FT_ERR_BASE): Define as
  3605. `FT_Mod_Err_PShinter'.
  3606. * src/type42/t42error.h (FT_ERR_BASE): Define as
  3607. `FT_Mod_Err_Type42'.
  3608. * src/pshinter/pshrec.h (PS_HINTS_MAGIC): Removed. Not used.
  3609. * include/freetype/config/ftconfig.h [__MWERKS__]: Define FT_LONG64
  3610. and FT_INT64.
  3611. 2003-06-21 Werner Lemberg <wl@gnu.org>
  3612. * src/winfonts/winfnt.c (FNT_Load_Glyph): Use first_char in
  3613. computation of glyph_index.
  3614. (FNT_Size_Set_Pixels): To find a strike, first check pixel_height
  3615. only, then try to find a better hit by comparing pixel_width also.
  3616. Without this fix it isn't possible to access all strikes.
  3617. Also compute metrics.max_advance to be in sync with other bitmap
  3618. drivers.
  3619. * src/base/ftobjs.c (FT_Set_Char_Size): Remove redundant code.
  3620. (FT_Set_Pixel_Sizes): Assign value to `metrics' after validation of
  3621. arguments.
  3622. 2003-06-20 Werner Lemberg <wl@gnu.org>
  3623. Synchronize computation of height and width for bitmap strikes. The
  3624. `width' field in the FT_Bitmap_Size structure is now only useful to
  3625. enumerate different strikes. The `max_advance' field of the
  3626. FT_Size_Metrics structure should be used to get the (maximum) width
  3627. of a strike.
  3628. * src/bdf/bdfdrivr.c (BDF_Face_Init): Don't use AVERAGE_WIDTH for
  3629. computing `available_sizes->width' but make it always equal to
  3630. `available_sizes->height'.
  3631. * src/pcf/pcfread.c (pcf_load_font): Don't use RESOLUTION_X for
  3632. computing `available_sizes->width' but make it always equal to
  3633. `available_sizes->height'.
  3634. * src/truetype/ttdriver.c (Set_Pixel_Sizes): Pass only single
  3635. argument to function.
  3636. * src/psnames/psmodule.c (ps_unicode_value): Handle `.' after
  3637. `uniXXXX' and `uXXXX[X[X]]'.
  3638. 2003-06-19 Werner Lemberg <wl@gnu.org>
  3639. * src/bdf/bdfdrivr.c: s/FT_Err_/BDF_Err/.
  3640. * src/cache/ftccache.c, src/cache/ftcsbits.c, src/cache/ftlru.c:
  3641. s/FT_Err_/FTC_Err_/.
  3642. * src/cff/cffcmap.c: s/FT_Err_/CFF_Err_/.
  3643. * src/pcf/pcfdrivr.c: s/FT_Err_/PCF_Err_/.
  3644. * src/psaux/t1cmap.c: Include psauxerr.h.
  3645. s/FT_Err_/PSaux_Err_/.
  3646. * src/pshinter/pshnterr.h: New file.
  3647. * src/pshinter/rules.mk: Updated.
  3648. * src/pshinter/pshalgo.c, src/pshinter/pshrec.c: Include pshnterr.h.
  3649. s/FT_Err_/PSH_Err_/.
  3650. * src/pfr/pfrdrivr.c, src/pfr/pfrobjs.c, src/pfr/pfrsbit.c:
  3651. s/FT_Err_/PFR_Err_/.
  3652. * src/sfnt/sfdriver.c, src/sfnt/sfobjs.c, src/sfnt/ttcmap0.c,
  3653. src/sfnt/ttload.c: s/FT_Err_/SFNT_Err_/.
  3654. * src/truetype/ttgload.c: s/FT_Err_/TT_Err_/.
  3655. * src/gzip/ftgzip.c: Load FT_MODULE_ERRORS_H and define
  3656. FT_ERR_PREFIX and FT_ERR_BASE.
  3657. s/FT_Err_/Gzip_Err_/.
  3658. 2003-06-19 Dirck Blaskey <listtarget@danbala.com>
  3659. * src/cff/cffload (cff_encoding_load): `nleft' must be FT_UInt,
  3660. otherwise adding 1 might wrap the result.
  3661. 2003-06-18 Werner Lemberg <wl@gnu.org>
  3662. * src/psnames/psmodule.c (ps_unicode_value): Add support to
  3663. recognize `uXXXX[X[X]]' glyph names.
  3664. Don't handle glyph names starting with `uni' which have more than
  3665. four digits.
  3666. 2003-06-16 Werner Lemberg <wl@gnu.org>
  3667. * include/freetype/freetype.h (FT_Open_Flags): Replaced with
  3668. #defines for the constants.
  3669. (FT_Open_Args): Change type of `flags' to FT_UInt.
  3670. (FT_GlyphSlot): Move `flags' to FT_Slot_Internal.
  3671. * include/freetype/ftimage.h (FT_Outline_Flags, FT_Raster_Flag):
  3672. Replaced with #defines for the constants.
  3673. * include/freetype/internal/ftobjs.h (FT_Slot_Internal): New
  3674. field `flags' (from FT_GlyphSlot).
  3675. Updated all affected source files.
  3676. (FT_GLYPH_OWN_BITMAP): New macro (from ftgloadr.h).
  3677. * include/freetype/internal/ftgloadr.h (FT_GLYPH_OWN_BITMAP): Moved
  3678. to ftobjs.h.
  3679. * src/base/ftglyph.c (FT_Glyph_To_Bitmap): Use dummy
  3680. FT_GlyphSlot_Internal object.
  3681. 2003-06-15 Werner Lemberg <wl@gnu.org>
  3682. * builds/compiler/gcc.mk, builds/compiler/gcc-dev.mk (CFLAGS):
  3683. Add -fno-strict-aliasing to get rid of zillion warnings from gcc
  3684. version 3.3.
  3685. 2003-06-14 Werner Lemberg <wl@gnu.org>
  3686. * include/freetype/ftglyph.h (ft_glyph_bbox_unscaled,
  3687. ft_glyph_bbox_subpixels, ft_glyph_bbox_gridfit,
  3688. ft_glyph_bbox_truncate, ft_glyph_bbox_pixels): Replaced with
  3689. FT_GLYPH_BBOX_UNSCALED, FT_GLYPH_BBOX_SUBPIXELS,
  3690. FT_GLYPH_BBOX_GRIDFIT, FT_GLYPH_BBOX_TRUNCATE, FT_GLYPH_BBOX_PIXELS.
  3691. The lowercase variants are now (deprecated aliases) to the uppercase
  3692. versions.
  3693. Updated all other files.
  3694. * include/freetype/ftmodule.h (ft_module_font_driver,
  3695. ft_module_renderer, ft_module_hinter, ft_module_styler,
  3696. ft_module_driver_scalable, ft_module_driver_no_outlines,
  3697. ft_module_driver_has_hinter): Replaced with FT_MODULE_FONT_DRIVER,
  3698. FT_MODULE_RENDERER, FT_MODULE_HINTER, FT_MODULE_STYLER,
  3699. FT_MODULE_DRIVER_SCALABLE, FT_MODULE_DRIVER_NO_OUTLINES,
  3700. FT_MODULE_DRIVER_HAS_HINTER.
  3701. The lowercase variants are now (deprecated aliases) to the uppercase
  3702. versions.
  3703. Updated all other files.
  3704. * src/base/ftglyph.c (FT_Glyph_Get_CBox): Handle bbox_mode better
  3705. as enumeration.
  3706. * src/pcf/pcfdrivr.c (pcf_driver_class), src/winfonts/winfnt.c
  3707. (winfnt_driver_class), src/bdf/bdfdrivr.c (bdf_driver_class): Add
  3708. the FT_MODULE_DRIVER_NO_OUTLINES flag.
  3709. 2003-06-13 Detlef Würkner <TetiSoft@apg.lahn.de>
  3710. * src/pfr/pfrobjs.c (pfr_slot_load): Apply font matrix.
  3711. 2003-06-13 Werner Lemberg <wl@gnu.org>
  3712. * builds/dos/detect.mk: Test not only for `Dos' but for `DOS' also.
  3713. * builds/dos/dos-emx.mk, builds/compiler/emx.mk: New files for
  3714. EMX gcc compiler.
  3715. * builds/dos/detect.mk: Add target `emx'.
  3716. * builds/compiler/watcom.mk (LINK_LIBRARY): GNU Make for DOS doesn't
  3717. like a trailing semicolon; add a dummy command.
  3718. * src/cid/cidload.c: Remove parse_font_bbox code (already enclosed
  3719. with #if 0 ... #endif).
  3720. * src/type1/t1tokens.h: Handle /FontName.
  3721. * src/type1/t1load.c (parse_font_name): Removed.
  3722. Remove parse_font_bbox code (already enclosed with #if 0 ...
  3723. #endif).
  3724. * src/type42/t42parse.c (t42_parse_font_name): Removed.
  3725. Remove t42_parse_font_bbox code (already enclosed with #if 0 ...
  3726. #endif).
  3727. (t42_keywords): Handle /FontName with T1_FIELD_KEY.
  3728. 2003-06-12 Werner Lemberg <wl@gnu.org>
  3729. * include/freetype/internal/psaux.h (T1_FieldType): Add
  3730. T1_FIELD_TYPE_KEY.
  3731. (T1_FIELD_KEY): New macro.
  3732. * src/psaux/psobjs.c (ps_parser_load_field): Handle
  3733. T1_FIELD_TYPE_KEY.
  3734. * src/cid/cidtoken.h: Use T1_FIELD_KEY for /CIDFontName.
  3735. 2003-06-11 Alexander Malmberg <alexander@malmberg.org>
  3736. * src/cache/ftlru.c (FT_LruList_Remove_Selection): Decrease
  3737. number of nodes.
  3738. (FT_LruList_Lookup): Fix assertion for out-of-memory case.
  3739. 2003-06-11 Werner Lemberg <wl@gnu.org>
  3740. * src/cid/cidload.c (cid_decrypt): Removed.
  3741. (cid_read_subrs): Use t1_decrypt from psaux module.
  3742. * src/cid/cidload.h: Updated.
  3743. * src/cid/cidgload.c (cid_load_glyph): Use t1_decrypt from psaux
  3744. module.
  3745. 2003-06-10 Werner Lemberg <wl@gnu.org>
  3746. * src/cid/cidobjs.c: Apply change 2003-05-31 from <Ron.Dev@gmx.de>.
  3747. Compute style flags.
  3748. Fix computation of root->height.
  3749. * src/cid/cidtoken.h: Handle FontBBox.
  3750. * src/cid/cidload.c (cid_load_keyword): Handle
  3751. T1_FIELD_LOCATION_BBOX.
  3752. (parse_font_bbox): Commented out.
  3753. (cid_field_records): Comment out element for parsing FontBBox.
  3754. * src/type42/t42parse.c (t42_parse_font_bbox): Commented out.
  3755. (t42_keywords): Handle FontBBox with T1_FIELD_BBOX, not with
  3756. T1_FIELD_CALLBACK.
  3757. (t42_parse_font_bbox): Commented out.
  3758. (t42_load_keyword): Handle T1_FIELD_LOCATION_BBOX.
  3759. * src/type42/t42objs.c (T42_Face_Init): Apply change 2003-05-31
  3760. from <Ron.Dev@gmx.de>.
  3761. 2003-06-09 George Williams <gww@silcom.com>
  3762. * src/truetype/ttinterp.c (SetSuperRound) <0x30>: Follow Apple's
  3763. TrueType specification.
  3764. (Ins_MDRP, Ins_MIRP): Fix single width cut-in test.
  3765. 2003-06-09 Detlef Würkner <TetiSoft@apg.lahn.de>
  3766. * src/gzip/ftgzip.c: (inflate_mask): Replaced with...
  3767. (NO_INFLATE_MASK): This.
  3768. * src/gzip/infutil.h: Declare `inflate_mask' conditionally by
  3769. NO_INFLATE_MASK.
  3770. 2003-06-09 Alexis S. L. Carvalho <alexis@cecm.usp.br>
  3771. * src/gzip/ftgzip.c (ft_gzip_file_fill_output): Handle Z_STREAM_END
  3772. correctly.
  3773. 2003-06-09 Wolfgang Domröse <porthos.domroese@harz.de>
  3774. * src/pshinter/pshglob.c (psh_globals_new): Change calculation of
  3775. dim->stdw.count to avoid compiler problem.
  3776. * src/truetype/ttgload.c (TT_Load_Simple_Glyph): Move the block
  3777. variables to the beginning of the function to avoid compiler
  3778. problems.
  3779. Add casts necessary for 16bit compilers.
  3780. 2003-06-09 Werner Lemberg <wl@gnu.org>
  3781. * src/pfr/rules.mk (PFR_DRV_SRC): Add pfrsbit.c.
  3782. (PFR_DRV_H): Add pfrtypes.h.
  3783. * include/freetype/config/ftconfig.h: s/__MWKS__/__MWERKS__/.
  3784. 2003-06-08 Karl Schultz <kschultz@rsinc.com>
  3785. * src/pfr/pfrsbit.c (pfr_bitwriter_init): Change type of third
  3786. argument to FT_Bool.
  3787. (pfr_lookup_bitmap_data): Change type of third and fourth argument
  3788. to FT_UInt. Updated caller.
  3789. (pfr_load_bitmap_bits): Change type of fourth argument to FT_Bool.
  3790. 2003-06-08 Werner Lemberg <wl@gnu.org>
  3791. Completely revised FreeType's make management.
  3792. . In all makefiles `/' is used as the path separator. The
  3793. conversion to the real path separators is done as late as
  3794. possible using $(subst ...).
  3795. . $(HOSTSEP) no longer exists. Now, $(SEP) gives the path separator
  3796. for the operating system, and the new $(COMPILER_SEP) the path
  3797. separator for the compiler tools.
  3798. . $(BUILD) has been renamed to $(BUILD_DIR). In general, all
  3799. directory variables end with `_DIR'. The variants ending in `_'
  3800. (like `BASE_' have been removed).
  3801. The following ChangeLog entries only describe changes which are
  3802. not related to the redesign.
  3803. * builds/beos/beos-def.mk (BUILD_DIR): Fix typo.
  3804. * builds/compiler/watcom.mk (LINK_LIBRARY): Fix linker call to avoid
  3805. overlong arguments as suggested by J. Ali Harlow
  3806. <ali@avrc.city.ac.uk>.
  3807. * builds/dos/dos-wat.mk: New file.
  3808. * builds/freetype.mk (FREETYPE_H): Include header files from the
  3809. `devel' subdirectory.
  3810. * builds/os2/os2-dev.mk, builds/unix/unixddef.mk,
  3811. builds/unix/unixddef.mk, builds/win32/w32-bccd.mk,
  3812. builds/win32/w32-dev.mk (BUILD_DIR): Fix path.
  3813. * builds/unix/configure.ac, builds/unix/configure: Updated.
  3814. * builds/unix/unix-def.in (DISTCLEAN): Add `freetype2.pc'.
  3815. 2003-06-07 Werner Lemberg <wl@gnu.org>
  3816. * src/base/ftmac.c (FT_New_Face_From_SFNT): s/rlen/sfnt_size/ to
  3817. make it compile.
  3818. * devel/ftoption.h: Updated.
  3819. 2003-06-07 Detlef Würkner <TetiSoft@apg.lahn.de>
  3820. * include/freetype/internal/psaux.h, src/truetype/ttgload.h:
  3821. s/index/idx/ to fix compiler warnings.
  3822. * src/sfnt/ttcmap0.c (tt_face_build_cmaps): Use more `volatile' to
  3823. fix compiler warning.
  3824. * src/gzip/ftgzip.c (BUILDFIXED): Removed.
  3825. * src/gzip/inftrees.c (inflate_trees_fixed) [!BUILDFIXED]: Use
  3826. FT_UNUSED to remove compiler warning.
  3827. 2003-06-06 Werner Lemberg <wl@gnu.org>
  3828. * include/freetype/ftstroker.h: Renamed to...
  3829. * include/freetype/ftstroke.h: This.
  3830. * src/base/ftstroker.c: Renamed to...
  3831. * src/base/ftstroke.c: This.
  3832. * include/freetype/config/ftheader.h (FT_STROKER_H): Updated.
  3833. * src/base/descrip.mms, src/base/Jamfile, src/base/rules.mk:
  3834. Updated.
  3835. * src/pcf/pcfdriver.c: Renamed to...
  3836. * src/pcf/pcfdrivr.c: This.
  3837. * src/pcf/pcfdriver.h: Renamed to...
  3838. * src/pcf/pcfdrivr.h: This.
  3839. * src/pcf/Jamfile, src/pcf/rules.mk: Updated.
  3840. 2003-06-05 Wenlin Institute (Tom Bishop) <wenlin@wenlin.com>
  3841. * src/base/ftmac.c (file_spec_from_path) [TARGET_API_MAC_CARBON]:
  3842. Add `#if !defined(__MWERKS__)'.
  3843. 2003-06-05 Werner Lemberg <wl@gnu.org>
  3844. * include/freetype/internal/psaux.h (T1_FieldType): Add
  3845. T1_FIELD_TYPE_FIXED_1000 and T1_FIELD_TYPE_FIXED_1000_P.
  3846. (T1_FIELD_FIXED_1000, T1_FIELD_FIXED_1000_P): New macros.
  3847. * src/psaux/psobjs.c (ps_parser_load_field): Handle
  3848. T1_FIELD_TYPE_FIXED_1000 and T1_FIELD_TYPE_FIXED_1000_P.
  3849. * src/cff/cffparse.c (cff_kind_fixed_thousand): New enumeration.
  3850. (CFF_FIELD_FIXED_1000): New macro.
  3851. (cff_parser_run): Handle cff_kind_fixed_thousand.
  3852. * src/cff/cfftoken.h: Use CFF_FIELD_FIXED_1000 for blue_scale.
  3853. * src/cff/cffload (cff_subfont_load): Fix default values of
  3854. expansion_factor and blue_scale.
  3855. * src/cid/cidtoken.h, src/type1/t1tokens.h: Use T1_FIELD_FIXED_1000
  3856. for blue_scale.
  3857. * src/pshinter/pshglob.c (psh_globals_new): Fix default value of
  3858. blue_scale.
  3859. 2003-06-04 Wolfgang Domröse <porthos.domroese@harz.de>
  3860. * include/freetype/internal/ftdriver.h,
  3861. include/freetype/internal/ftobjs.h,
  3862. include/freetype/internal/psaux.h, src/cid/cidgload.c,
  3863. src/psaux/psobjs.c, src/psaux/t1decode.c, src/psaux/psobjs.h,
  3864. src/pshinter/pshrec.c, src/pshinter/pshalgo.c,
  3865. src/psnames/psmodule.c, src/raster/ftraster.c, src/sfnt/sfobjs.c,
  3866. src/smooth/ftgrays.c, src/smooth/ftsmooth.c, src/truetype/ttobjs.c,
  3867. src/truetype/ttdriver.c, src/truetype/ttgload.c, src/type1/t1afm.c,
  3868. src/type1/t1gload.c, src/type1/t1gload.h, src/type1/t1load.c,
  3869. src/type1/t1objs.c, src/type42/t42parse.c, src/type42/t42parse.h:
  3870. Many casts and slight argument type changes to make it work with
  3871. a 16bit compiler.
  3872. 2003-06-04 Werner Lemberg <wl@gnu.org>
  3873. * include/freetype/config/ftoption.h: Defining
  3874. TT_CONFIG_OPTION_FORCE_UNPATENTED_HINTING by default is a bad idea
  3875. since some fonts (e.g. Arial) produce worse results than without
  3876. hinting. Reverted.
  3877. 2003-06-04 Werner Lemberg <wl@gnu.org>
  3878. * src/truetype/ttgload.c (load_truetype_glyph)
  3879. [TT_CONFIG_OPTION_BYTECODE_INTERPRETER]: Call
  3880. FT_GlyphLoader_CheckPoints before adding phantom points. This fixes
  3881. a segfault bug with fonts (e.g. htst3.ttf) which have nested
  3882. subglyphs more than one level deep. Reported by Anthony Fok.
  3883. * include/freetype/config/ftoption.h: Define
  3884. TT_CONFIG_OPTION_BYTECODE_INTERPRETER,
  3885. TT_CONFIG_OPTION_COMPILE_UNPATENTED_HINTING, and
  3886. TT_CONFIG_OPTION_FORCE_UNPATENTED_HINTING to make it the new
  3887. default.
  3888. 2003-06-03 Werner Lemberg <wl@gnu.org>
  3889. * src/autohint/ahhint.c (ah_hinter_hint_edges): Removed. Just a
  3890. wrapper for ah_hint_edges.
  3891. (ah_hint_edges): Renamed to...
  3892. (ah_hinter_hint_edges): This.
  3893. * src/base/ftobjs.c (FT_Set_Hint_Flags): Removed. Unused.
  3894. * include/freetype/internal/ftobjs.h (FT_Face_InternalRec),
  3895. include/freetype/internal/psaux.h (T1_DecoderRec),
  3896. src/cff/cffgload.h (CFF_Builder): Remove `hint_flags' field.
  3897. Unused.
  3898. * src/cff/cffgload.c (cff_builder_init): Updated.
  3899. (cff_decoder_parse_charstrings) <cff_op_endchar>: Call hinter->apply
  3900. with decoder->hint_mode instead of builder->hint_flags.
  3901. * src/psaux/t1decode.c (t1_decoder_init): Updated.
  3902. * src/base/ftstroker.c (ft_stroke_border_export): s/index/idx/.
  3903. * src/sfnt/sfobjs.c (sfnt_load_face): Commented out code which
  3904. increased root->height by 15% if the line gap was zero. There exist
  3905. fonts (containing e.g. form drawing characters) which intentionally
  3906. have a zero line gap value.
  3907. * src/truetype/ttinterp.c (Free_Project, CUR_Func_freeProj):
  3908. Removed. Unused.
  3909. Updated all callers.
  3910. 2003-06-02 Werner Lemberg <wl@gnu.org>
  3911. * src/cff/cffobjs.c (cff_face_init): Use symbolic names for
  3912. Adobe specific encoding IDs (there was a wrong EID value for custom
  3913. encoding).
  3914. * src/cff/cffcmap.h (CFF_CMapStdRec): Remove `count'.
  3915. * src/cff/cffcmap.c (cff_cmap_encoding_init,
  3916. cff_cmap_encoding_done): Updated.
  3917. (cff_cmap_encoding_char_index, cff_cmap_encoding_char_next): Use
  3918. 256 as limit for character code.
  3919. 2003-06-01 Werner Lemberg <wl@gnu.org>
  3920. * src/winfonts/winfnt.c (FNT_Load_Glyph): Revert change from
  3921. 2003-03-20.
  3922. 2003-05-31 Werner Lemberg <wl@gnu.org>
  3923. * include/freetype/fttrigon.h (FT_Vector_Normalize): Removed.
  3924. 2003-05-31 <Ron.Dev@gmx.de>
  3925. * src/type1/t1objs.c (T1_Face_Init): Improve algorithm for guessing
  3926. the font style by ignoring spaces and hyphens.
  3927. * builds/unix/freetype2.in: Fix `Version' field.
  3928. 2003-05-30 Werner Lemberg <wl@gnu.org>
  3929. Avoid overwriting of numeric font dictionary entries for synthetic
  3930. fonts. Additionally, some entries were handled as `integer' instead
  3931. of `number'.
  3932. * include/freetype/internal/psaux.h (T1_FieldType): Add
  3933. T1_FIELD_TYPE_BOOL_P, T1_FIELD_TYPE_INTEGER_P, and
  3934. T1_FIELD_TYPE_FIXED_P.
  3935. (T1_FIELD_BOOL_P, T1_FIELD_NUM_P, T1_FIELD_FIXED_P): New macros.
  3936. * src/psaux/psobjs.c (ps_parser_load_field): Handle new field types.
  3937. * include/freetype/internal/cfftypes.h (CFF_FontRecDict),
  3938. src/cff/cfftoken.h: Change type of underline_position and
  3939. underline_thickness to FT_Fixed.
  3940. * src/cff/cffload.c (cff_subfont_load): Fix default values of
  3941. underline_position and underline_thickness.
  3942. * src/cff/cffobjs.c (cff_face_init): Set underline_position
  3943. and underline_thickness in `root'.
  3944. * include/freetype/internal/t1types.h (T1_Font): Change point_type
  3945. and stroke_width to pointers.
  3946. * include/freetype/t1tables.h (PS_FontInfo): Change italic_angle,
  3947. is_fixed_pitch, underline_position, and underline_thickness to
  3948. pointers.
  3949. * src/type1/t1tokens.h: Change italic_angle, is_fixed_pitch,
  3950. underline_position, and underline_thickness to pointers. Change
  3951. the type of the latter two to `fixed'.
  3952. Change type of stroke_width to `fixed' and make it a pointer.
  3953. Change paint_type to pointer.
  3954. * src/type1/t1objs.c (T1_Face_Done): Updated.
  3955. (T1_Face_Init): Updated.
  3956. Fix assignment of underline_position and underline_thickness.
  3957. * src/cid/cidtoken.h: Change italic_angle, is_fixed_pitch,
  3958. underline_position, and underline_thickness to pointers. Change
  3959. the type of the latter two to `fixed'.
  3960. Change type of stroke_width to `fixed'.
  3961. * src/cid/cidobjs.c (cid_face_done): Updated.
  3962. (cid_face_init): Updated.
  3963. Fix assignment of underline_position and underline_thickness.
  3964. * src/type42/t42parse.c: Change italic_angle, is_fixed_pitch,
  3965. underline_position, and underline_thickness to pointers. Change the
  3966. type of the latter two to `fixed'.
  3967. Change type of stroke_width to `fixed' and make it a pointer.
  3968. Change paint_type to pointer.
  3969. * src/type42/t42objs.c (T42_Face_Init): Updated.
  3970. Fix assignment of underline_position and underline_thickness.
  3971. (T42_Face_Done): Updated.
  3972. * src/base/ftobjs.c (open_face_from_buffer): Fix compiler warning.
  3973. * src/pshinter/pshglob.c, src/pshinter/pshglob.h
  3974. (psh_globals_set_scale): Make it a local function.
  3975. * test/gview.c: Fix renaming ps3->ps typo.
  3976. Formatting.
  3977. 2003-05-29 Werner Lemberg <wl@gnu.org>
  3978. * src/pshinter/pshalgo1.[ch], src/pshinter/pshalgo2.[ch]: Removed.
  3979. * src/pshinter/pshalgo.h: Removed.
  3980. * src/pshinter/pshalgo3.[ch]: Renamed to...
  3981. * src/pshinter/pshalgo.[ch]: New files.
  3982. s/PSH3/PSH/.
  3983. s/psh3/psh/.
  3984. s/ps3/ps/.
  3985. * src/pshinter/pshrec.c, src/pshinter/pshinter.c: Updated.
  3986. * src/pshinter/rules.mk, src/pshinter/Jamfile: Updated.
  3987. * src/pshinter/pshglob.[ch] (psh_dimension_snap_width): Commented
  3988. out.
  3989. * tests/gview.c: Remove code for pshalgo1 and pshalgo2.
  3990. Updated.
  3991. 2003-05-28 Martin Zinser <zinser@decus.de>
  3992. * vms_make.com: Reworked support for shareable images on VMS. The
  3993. first version was kind of a hack; the current implementation of the
  3994. procedure to extract the required symbols is much cleaner.
  3995. Reworked creation of MMS files, avoiding a number of temporary files
  3996. which were created in the previous version.
  3997. Further work on creating descrip.mms files on the fly.
  3998. * builds/vms/descrip.mms, src/autohint/descrip.mms,
  3999. src/type1/descrip.mms: Removed.
  4000. 2003-05-28 Werner Lemberg <wl@gnu.org>
  4001. * src/pshinter/pshalgo3.c (psh3_glyph_compute_extrema): Skip
  4002. contours with only a single point to avoid segfault.
  4003. * src/base/ftglyph.c (FT_Glyph_To_Bitmap): Activate code for
  4004. handling `origin'.
  4005. 2003-05-24 Werner Lemberg <wl@gnu.org>
  4006. * src/autohint/ahtypes.h (AH_OPTION_NO_STRONG_INTERPOLATION):
  4007. Removed since unused.
  4008. 2003-05-21 Werner Lemberg <wl@gnu.org>
  4009. * include/freetype/config/ftstdlib.h (ft_strcat): New wrapper macro
  4010. for strcat.
  4011. * src/base/ftmac.c (create_lwfn_name): s/isupper/ft_isupper/.
  4012. (parse_font): s/memcpy/ft_memcpy/.
  4013. (is_dfont) [TARGET_API_MAC_CARBON]: s/memcmp/ft_memcmp/.
  4014. * src/base/ftobjs.c (load_mac_face) [FT_MACINTOSH]:
  4015. s/strlen/ft_strlen/.
  4016. s/strcat/ft_strcat/.
  4017. s/strcpy/ft_strcpy/.
  4018. * src/gzip/zutil.h: s/memset/ft_memset/.
  4019. s/memcmp/ft_memcmp/.
  4020. * src/bdf/bdfdrivr.c (BDF_Face_Init), src/pcf/pcfdriver.c
  4021. (PCF_Face_Init): Test for charset registry case-insensitively.
  4022. * src/gzip/ftgzip.c (ft_gzip_file_io): Revert change from yesterday;
  4023. it has already been fixed differently.
  4024. * src/truetype/ttinterp.c (DO_SFVTL): Add missing braces around
  4025. if-clause.
  4026. 2003-05-21 Martin Zinser <zinser@decus.de>
  4027. * t1load.c (parse_blend_axis_types): Fix compiler warning.
  4028. * descrip.mms: Removed. Now created by...
  4029. * vms_make.com: New file.
  4030. 2003-05-21 Weiqi Gao <weiqigao@networkusa.net>
  4031. * src/gzip/ftgzip.c (ft_gzip_file_io): Avoid zero value of `delta'
  4032. to prevent infinite loop.
  4033. 2003-05-21 Lars Clausen <lrclause@cs.uiuc.edu>
  4034. * docs/VERSION.DLL: Provide better autoconf snippet to check
  4035. FreeType version.
  4036. 2003-05-21 Werner Lemberg <wl@gnu.org>
  4037. * src/base/ftobjs.c (open_face): Free `internal' not
  4038. `face->internal' in case of error to avoid possible segfault.
  4039. * src/pshinter/pshalgo3.c (ps3_hints_apply): Check whether we
  4040. actually have an outline.
  4041. 2003-05-20 David Chester <davidchester@qmx.net>
  4042. * src/pshinter/pshalgo3.c (ps3_hints_apply): Try to optimize
  4043. y_scale so that the top of non-capital letters is aligned on a pixel
  4044. boundary whenever possible.
  4045. * src/autohint/ahhint.c (ah_hint_edges): Make sure that lowercase
  4046. m's maintain their symmetry.
  4047. 2003-05-20 Werner Lemberg <wl@gnu.org>
  4048. * src/autohint/ahhint.c (ah_hinter_load_glyph): Oops! David's
  4049. patch from yesterday has been resolved already in a different
  4050. way. Reverted.
  4051. 2003-05-19 David Chester <davidchester@qmx.net>
  4052. * src/autohint/ahhint.c (ah_hinter_load_glyph): Don't scale
  4053. y_scale locally but face->size->metrics.y_scale.
  4054. 2003-05-19 David Turner <david@freetype.org>
  4055. * src/sfnt/ttcmap0.c (tt_cmap4_char_next): Select proper start
  4056. value for `hi' to avoid infinite loop.
  4057. 2003-05-18 Yong Sun <sunyong@njstar.com>
  4058. * src/raster/ftraster.c (Insert_Y_Turn): Fix overflow test.
  4059. 2003-05-18 Werner Lemberg <wl@gnu.org>
  4060. * include/freetype/config/ftoption.h [FT_CONFIG_OPTION_MAC_FONTS]:
  4061. New macro.
  4062. * src/base/ftobjs.c: Use it to control mac font support on non-mac
  4063. platforms.
  4064. 2003-05-17 George Williams <gww@silcom.com>
  4065. Implement partial support of Mac fonts on non-Mac platforms.
  4066. * src/base/ftobjs.c (memory_stream_close, new_memory_stream,
  4067. open_face_from_buffer, Mac_Read_POST_Resource,
  4068. Mac_Read_sfnt_Resource, IsMacResource, IsMacBinary, load_mac_face)
  4069. [!FT_MACINTOSH]: New functions.
  4070. (FT_Open_Face) [!FT_MACINTOSH]: Use load_mac_face.
  4071. 2003-05-17 Werner Lemberg <wl@gnu.org>
  4072. * src/base/ftobjs.c (FT_Load_Glyph): Scale linear advance width only
  4073. if FT_FACE_FLAG_SCALABLE is set (otherwise we have a division by
  4074. zero since FNT and friends don't define `face->units_per_EM').
  4075. 2003-05-15 David Turner <david@freetype.org>
  4076. * src/base/fttrigon.c (FT_Vector_Rotate): Avoid rounding errors
  4077. for small values.
  4078. 2003-05-15 Werner Lemberg <wl@gnu.org>
  4079. * src/autohint/ahtypes.h (AH_PointRec): Remove unused `in_angle'
  4080. and `out_angle' fields.
  4081. 2003-05-14 George Williams <gww@silcom.com>
  4082. * src/base/ftmac.c (FT_New_Face_From_SFNT): Handle CFF files also.
  4083. 2003-05-14 Werner Lemberg <wl@gnu.org>
  4084. * include/freetype/freetype.h: Fix typo in comment
  4085. (FT_HAS_FIXED_SIZES).
  4086. 2003-05-10 Dan Williams <dan@bigw.org>
  4087. * builds/unix/aclocal.m4: Comment out definition of
  4088. `allow_undefined_flag' for Darwin 1.3.
  4089. * builds/unix/configure.ac: Add option --with-old-mac-fonts.
  4090. * builds/unix/ltmain.sh: Fix version numbering for Darwin 1.3.
  4091. * builds/unix/configure: Regenerated.
  4092. * include/freetype/config/ftconfig.h: Fix conditions for defining
  4093. `FT_MACINTOSH'.
  4094. * src/base/ftbase.c: Include `ftmac.c' conditionally.
  4095. * src/base/ftmac.c: Handle __GNUC__.
  4096. 2003-05-07 YAMANO-UCHI Hidetoshi <mer@din.or.jp>
  4097. * src/cid/cidload.c (is_alpha): Removed.
  4098. (cid_parse_dict): Use `cid_parser_skip_alpha' instead of `is_alpha'.
  4099. 2003-05-07 Werner Lemberg <wl@gnu.org>
  4100. * src/autohint/ahoptim.c, src/autohint/ahoptim.h: Obsolete, removed.
  4101. 2003-05-07 David Turner <david@freetype.org>
  4102. * src/autohint/ahglyph.c (ah_setup_uv): Exchange `for' loop and
  4103. `switch' statement to make it run faster.
  4104. (ah_outline_compute_segments): Reset `segment->score' and
  4105. `segment->link'.
  4106. (ah_outline_link_segments): Provide alternative code which does
  4107. the same but runs much faster.
  4108. Handle major direction also.
  4109. (ah_outline_compute_edges): Scale `edge_distance_threshold' down
  4110. after rounding instead of scaling comparison value in loop.
  4111. * src/autohint/ahhint.c (ah_hinter_align_strong_points): Provide
  4112. alternative code which runs faster.
  4113. Handle `before->scale == 0'.
  4114. * src/autohint/ahtypes.h (AH_SegmentRec): Move some fields down.
  4115. (AH_EdgeRec): Move some fields in structure.
  4116. New field `scale'.
  4117. * src/sfnt/ttcmap0.c (tt_cmap4_char_next): Use binary search.
  4118. 2003-05-02 Werner Lemberg <wl@gnu.org>
  4119. * src/autohint/ahoptim.c (LOG): Renamed to...
  4120. (AH_OPTIM_LOG): This.
  4121. (AH_Dump_Springs): Fix log message format.
  4122. * src/autohint/ahhint.c (ah_hint_edges_3): Renamed to...
  4123. (ah_hint_edges): This.
  4124. 2002-05-02 Keith Packard <keithp@keithp.com>
  4125. * src/bdf/bdfdrivr.c (BDF_Set_Pixel_Size): Initialize `max_advance'.
  4126. 2003-05-01 Werner Lemberg <wl@gnu.org>
  4127. * src/autohint/ahglyph.c (ah_test_extrema): Renamed to...
  4128. (ah_test_extremum): This.
  4129. 2003-04-28 Werner Lemberg <wl@gnu.org>
  4130. * builds/unix/configure.ac: Generate `freetype.pc' from
  4131. `freetype.in'.
  4132. * builds/unix/configure: Regenerated.
  4133. * builds/unix/install.mk (install, uninstall): Handle `freetype.pc'.
  4134. 2003-04-28 Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
  4135. * builds/unix/freetype2.in: New file. Contains building information
  4136. for the `pkg-config' package.
  4137. 2003-04-28 David Turner <david@freetype.org>
  4138. * src/base/ftobjs.c (FT_Load_Glyph): Fix boundary check for
  4139. `glyph_index'.
  4140. 2003-04-25: Graham Asher <graham.asher@btinternet.com>
  4141. Added the optional unpatented hinting system for TrueType. It
  4142. allows typefaces which need hinting to produce correct glyph forms
  4143. (e.g., Chinese typefaces from Dynalab) to work acceptably without
  4144. infringing Apple patents. This system is compiled only if
  4145. TT_CONFIG_OPTION_COMPILE_UNPATENTED_HINTING is defined in
  4146. ftoption.h.
  4147. * include/freetype/ttunpat.h: New file. Defines
  4148. FT_PARAM_TAG_UNPATENTED_HINTING.
  4149. * include/freetype/config/ftheader.h (FT_TRUETYPE_UNPATENTED_H): New
  4150. macro to use when including ttunpat.h.
  4151. * include/freetype/config/ftoption.h
  4152. (TT_CONFIG_OPTION_COMPILE_UNPATENTED_HINTING,
  4153. TT_CONFIG_OPTION_FORCE_UNPATENTED_HINTING): New configuration macros
  4154. (not defined, but in comments) for the unpatented hinting system.
  4155. * include/freetype/internal/tttypes.h (TT_FaceRec)
  4156. [TT_CONFIG_OPTION_COMPILE_UNPATENTED_HINTING]: New element `FT_Bool
  4157. unpatented_hinting'.
  4158. * src/truetype/ttinterp.c (NO_APPLE_PATENT, APPLE_THRESHOLD):
  4159. Removed.
  4160. (GUESS_VECTOR): New macro.
  4161. (TT_Run_Context) [TT_CONFIG_OPTION_COMPILE_UNPATENTED_HINTING]:
  4162. Set `both_x_axis'.
  4163. (tt_default_graphics_state)
  4164. [TT_CONFIG_OPTION_COMPILE_UNPATENTED_HINTING]: Updated.
  4165. (Current_Ratio) [TT_CONFIG_OPTION_COMPILE_UNPATENTED_HINTING]:
  4166. Handle `unpatented_hinting'.
  4167. (Direct_Move) [NO_APPLE_PATENT]: Removed.
  4168. [TT_CONFIG_OPTION_COMPILE_UNPATENTED_HINTING]: Insert assertion.
  4169. (Project, FreeProject)
  4170. [TT_CONFIG_OPTION_COMPILE_UNPATENTED_HINTING]: Insert assertion.
  4171. (Compute_Funcs) [TT_CONFIG_OPTION_COMPILE_UNPATENTED_HINTING]:
  4172. Implement unpatented hinting.
  4173. (DO_SPVTCA, DO_SFVTCA, DO_SPVTL, DO_SFVTL, DO_SPVFS, DO_SFVFS,
  4174. Ins_SDPVTL): Call `GUESS_VECTOR'.
  4175. (DO_GPV, DO_GFV) [TT_CONFIG_OPTION_COMPILE_UNPATENTED_HINTING]:
  4176. Handle `unpatented_hinting'.
  4177. (Compute_Point_Displacement) [NO_APPLE_PATENT]: Removed.
  4178. [TT_CONFIG_OPTION_COMPILE_UNPATENTED_HINTING]: Implement unpatented
  4179. hinting.
  4180. (Move_Zp2_Point, Ins_SHPIX, Ins_DELTAP, Ins_DELTAC)
  4181. [TT_CONFIG_OPTION_COMPILE_UNPATENTED_HINTING]: Implement unpatented
  4182. hinting.
  4183. (TT_RunIns): Updated.
  4184. * src/truetype/ttobjs.c
  4185. [TT_CONFIG_OPTION_COMPILE_UNPATENTED_HINTING]: Include
  4186. FT_TRUETYPE_UNPATENTED_H.
  4187. (tt_face_init) [TT_CONFIG_OPTION_COMPILE_UNPATENTED_HINTING,
  4188. TT_CONFIG_OPTION_FORCE_UNPATENTED_HINTING]: Check
  4189. FT_PARAM_TAG_UNPATENTED_HINTING.
  4190. * src/truetype/ttobjs.h (TT_GraphicsState)
  4191. [TT_CONFIG_OPTION_COMPILE_UNPATENTED_HINTING]: Add `both_x_axis'.
  4192. 2003-04-25 Werner Lemberg <wl@gnu.org>
  4193. * src/bdf/bdflib.c (hash_bucket, hash_lookup): Use `const' for first
  4194. argument.
  4195. (bdf_get_font_property): Use `const' for third argument.
  4196. Updated all callers.
  4197. * src/bdf/bdfdrivr.c (BDF_Face_Init): Set pixel width and height
  4198. similar to the PCF driver.
  4199. * src/bdf/bdf.h (_hashnode): Use `const' for `key'.
  4200. Updated.
  4201. * src/gzip/ftgzip.c: C++ doesn't like that the array `inflate_mask'
  4202. is declared twice. It is perhaps better to modify the zlib source
  4203. files directly instead of this hack.
  4204. (zcalloc, zfree, ft_gzip_stream_close, ft_gzip_stream_io): Add casts
  4205. to make build with g++ successful.
  4206. 2003-04-24 Manish Singh <yosh@gimp.org>
  4207. * src/cid/cidobjs.c (cid_face_init), src/type1/t1objs.c
  4208. (T1_Face_Init), src/type42/t42objs.c (T42_Face_Init): Split on `-'
  4209. also for searching the style name.
  4210. 2003-04-24 David Turner <david@freetype.org>
  4211. * src/pcf/pcfread.c (pcf_load_font): Fixed the computation of
  4212. face->num_glyphs. We must increase the value by 1 to respect the
  4213. convention that glyph index 0 always corresponds to the `missing
  4214. glyph'.
  4215. 2003-04-24 Werner Lemberg <wl@gnu.org>
  4216. * builds/unix/unix-cc.in (CFLAGS): Add @CPPFLAGS@.
  4217. 2003-04-24 Dieter Baron <dillo@netbsd.org>
  4218. * builds/unix/freetype-config.in (cflags): Emit FreeType 2's include
  4219. files first. Otherwise there are conflicts with FreeType 1
  4220. installed simultaneously.
  4221. 2003-04-23 Werner Lemberg <wl@gnu.org>
  4222. Fixing bugs reported by Nelson Beebe.
  4223. * src/base/ftstroker.c (FT_Stroker_ParseOutline): Remove unused
  4224. variable `in_path'.
  4225. * src/base/ftobjs (ft_glyphslot_set_bitmap): Change type of
  4226. second argument to `FT_Byte*'.
  4227. * include/freetype/internal/ftobjs.h: Updated.
  4228. * src/bdf/bdflib.c (_bdf_readstream): Remove unused variable `res'.
  4229. (_bdf_parse_glyphs): Remove unused variable `next'.
  4230. Mark `call_data' as unused.
  4231. * src/cache/ftlru.c (FT_LruList_Lookup): Remove unused variable
  4232. `plast'.
  4233. * src/pcf/pcfread.c (pcf_seek_to_table_type): Slight recoding to
  4234. actually use `error'.
  4235. (pcf_load_font): Remove unused variable `avgw'.
  4236. * src/pfr/pfrobjs.c (pfr_face_get_kerning): Change return type
  4237. to `void'.
  4238. Mark `error' as unused.
  4239. * src/pfr/pfrobjs.h: Updated.
  4240. * src/pfr/pfrdrivr.c (pfr_get_kerning): Updated.
  4241. * src/sfnt/ttload.c (sfnt_dir_check): Remove unused variable
  4242. `format_tag'.
  4243. * src/sfnt/ttcmap0.c (tt_cmap6_validate, tt_cmap10_validate): Remove
  4244. unused variable `start'.
  4245. (tt_cmap10_char_next): Remove unused variable `result'
  4246. * src/sfnt/sfobjs.c (tt_face_get_name): Mark `error' as unused.
  4247. * src/sfnt/sfdriver.c (get_sfnt_postscript_name): Mark `error' as
  4248. unused.
  4249. * src/type1/t1objs.c (T1_Face_Init): Remove unused variable
  4250. `pshinter'.
  4251. * src/type1/t1gload.c (T1_Load_Glyph): Use `glyph_data_loaded'
  4252. only for FT_CONFIG_OPTION_INCREMENTAL.
  4253. 2003-04-23 Akito Hirai <akito@kde.gr.jp>
  4254. * src/sfnt/ttcmap0.c (tt_cmap4_validate): Provide a weak variant
  4255. of the glyph ID bounding check if FT_VALIDATE_TIGHT is not active.
  4256. Without this change, many CJK fonts from Dynalab are rejected.
  4257. 2003-04-23 Joe Marcus Clarke <marcus@FreeBSD.org>
  4258. * src/base/ftbdf.c (FT_Get_BDF_Property): Check for valid
  4259. `get_interface'.
  4260. 2003-04-23 Paul Miller <paulm@profoundeffects.com>
  4261. * src/base/ftmac.c (parse_fond): Fix handling of style names.
  4262. 2003-04-23 Werner Lemberg <wl@gnu.org>
  4263. * src/pfr/pfrload.c (pfr_extra_item_load_font_id): Use FT_PtrDist
  4264. instead of FT_UInt for `len'.
  4265. 2003-04-22 Werner Lemberg <wl@gnu.org>
  4266. * src/gzip/ftgzip.c (zcalloc) [!FT_CONFIG_OPTION_SYSTEM_ZLIB]:
  4267. Convert K&R format to modern C usage.
  4268. (FT_Stream_OpenGzip): Use long constant.
  4269. 2003-04-21 Werner Lemberg <wl@gnu.org>
  4270. * src/cache/ftccache.c (ftc_cache_lookup): Remove shadow declaration
  4271. of `manager'.
  4272. 2003-04-20 Werner Lemberg <wl@gnu.org>
  4273. * doc/INSTALL.UNX: Cleaned up.
  4274. 2003-04-09 Torrey Lyons <torrey@mrcla.com>
  4275. * src/base/ftmac.c (open_face_from_buffer): Removed a double-free
  4276. bug that had nasty consequences when trying to open an `invalid'
  4277. font on a Mac.
  4278. 2003-04-09 Mike Fabian <mfabian@suse.de>
  4279. * src/bdf/bdfdrivr.h (BDF_encoding_el), src/pcf/pcf.h
  4280. (PCF_EncodingRec): Changed FT_Short to FT_UShort in order to be able
  4281. to access more than 32768 glyphs in fonts.
  4282. 2003-04-08 David Turner <david@freetype.org>
  4283. * Version 2.1.4 released.
  4284. =========================
  4285. 2003-04-03 Martin Muskens <mmuskens@aurelon.com>
  4286. * src/type1/t1load.c (T1_Open_Face): Fixed the code to make it
  4287. handle special cases where a font only contains a `.notdef' glyph
  4288. (happens in PDF-embedded fonts). Otherwise, FT_Panic was called.
  4289. 2003-03-27 David Turner <david@freetype.org>
  4290. * README: Updated.
  4291. * README.UNX: Removed (now replaced by docs/INSTALL.UNX).
  4292. * src/pshinter/pshalgo3.c: The hinter now performs as in 2.1.3 and
  4293. will ignore stem quantization only when FT_LOAD_TARGET_SMOOTH is
  4294. used.
  4295. (psh3_dimension_quantize_len): Enabled.
  4296. (psh3_hint_align): Enable commented code.
  4297. (psh3_hint_align_light): Commented out.
  4298. * src/base/ftobjs.c (FT_Set_Char_Size): Changed the default
  4299. computations to include rounding in all cases; this is required to
  4300. provide accurate kerning data when native TrueType hinting is
  4301. enabled.
  4302. * src/type1/t1load.c (is_name_char): The Type 1 loader now accepts
  4303. more general names according to the PostScript specification (the
  4304. previous one was too restrictive).
  4305. (parse_font_name, parse_encoding, parse_charstrings, parse_dict):
  4306. Use `is_name_char'.
  4307. (parse_subrs): Handle empty arrays.
  4308. 2003-03-20 David Turner <david@freetype.org>
  4309. Serious rewriting of the documentation.
  4310. * docs/BUGS, docs/BUILD: Removed.
  4311. * docs/DEBUG.TXT: Renamed to...
  4312. * docs/DEBUG: This.
  4313. * docs/CUSTOMIZE, docs/TRUETYPE, docs/UPGRADE.UNX: New files.
  4314. * docs/INSTALL.ANY, docs/INSTALL.UNX, docs/INSTALL.GNU New files,
  4315. containing platform specific information previously in INSTALL.
  4316. * docs/readme.vms: Renamed to...
  4317. * docs/INSTALL.VMS: This.
  4318. * docs/*: Updated.
  4319. Introduced three new functions to deal with glyph bitmaps within
  4320. FT_GlyphSlot objects:
  4321. ft_glyphslot_free_bitmap
  4322. ft_glyphslot_alloc_bitmap
  4323. ft_glyphslot_set_bitmap
  4324. These functions are much more convenient to use than managing the
  4325. FT_GLYPH_OWN_BITMAP flag manually.
  4326. * include/freetype/internal/ftobjs.h (ft_glyphslot_free_bitmap,
  4327. ft_glyphslot_alloc_bitmap, ft_glyphslot_set_bitmap): New functions.
  4328. * src/base/ftobjs.c: Implement them.
  4329. (ft_glyphslot_done): Use ft_glyphslot_free_bitmap.
  4330. * src/bdf/bdfdrivr.c (BDF_Glyph_Load), src/pcf/pcfdriver.c
  4331. (PCF_Glyph_Load): Remove unused variable `memory'.
  4332. Use `ft_glyphslot_*' functions.
  4333. Don't set `FT_GLYPH_OWN_BITMAP'.
  4334. * src/pfr/pfrsbit.c (pfr_slot_load_bitmap): Use
  4335. `ft_glyphslot_alloc_bitmap'.
  4336. * src/sfnt/ttsbit.c (Load_SBit_Image): Change 5th argument to type
  4337. `FT_GlyphSlot'.
  4338. Adding argument `depth' to handle recursive calls.
  4339. Use `ft_glyphslot_alloc_bitmap'.
  4340. (tt_face_load_sbit_image): Remove unused variable `memory'.
  4341. Don't handle `FT_GLYPH_OWN_BITMAP'.
  4342. Update call to Load_SBit_Image.
  4343. * src/type42/t42objs.c (ft_glyphslot_clear): Renamed to...
  4344. (t42_glyphslot_clear): This. Updated caller.
  4345. Call `ft_glyphslot_free_bitmap'.
  4346. * src/winfonts/winfnt.c (FNT_Load_Glyph): Use
  4347. `ft_glyphslot_set_bitmap'.
  4348. Don't handle `FT_GLYPH_OWN_BITMAP'.
  4349. * src/cache/ftlru.c (FT_LruList_Lookup): Fixed an invalid assertion
  4350. check.
  4351. * src/autohint/ahglyph.c (ah_outline_load): Add two scaling
  4352. arguments.
  4353. * src/autohint/ahglyph.h: Updated.
  4354. * src/autohint/ahhint.c (ah_hinter_load): Updated.
  4355. * src/autohint/ahglobal.c (ah_hinter_compute_widths): Updated.
  4356. * src/cache/ftccache.c (ftc_family_done): Fixed small bug that could
  4357. crash the cache in rare circumstances (mostly with broken fonts).
  4358. 2003-03-15 David Turner <david@freetype.org>
  4359. * src/truetype/ttdriver.c (Set_Char_Sizes): Fixed a small rounding
  4360. bug. Actually, it seems that previous versions of FreeType didn't
  4361. perform TrueType rounding exactly as appropriate.
  4362. 2003-03-14 David Turner <david@freetype.org>
  4363. * src/truetype/ttdriver.c (Set_Char_Sizes): Fixing the small
  4364. TrueType native rendering glitches; they came from a small rounding
  4365. error.
  4366. 2003-03-13 David Turner <david@freetype.org>
  4367. Added new environment variables to control memory debugging with
  4368. FreeType. See the description of `FT2_DEBUG_MEMORY',
  4369. `FT2_ALLOC_TOTAL_MAX' and `FT2_ALLOC_COUNT_MAX' in DEBUG.TXT.
  4370. * src/base/ftdbgmem.c (FT_MemTableRec): Add `alloc_count',
  4371. `bound_total', `alloc_total_max', `bound_count', `alloc_count_max'.
  4372. (ft_mem_debug_alloc): Handle new variables.
  4373. (ft_mem_debug_init): s/FT_DEBUG_MEMORY/FT2_DEBUG_MEMORY/.
  4374. Handle new environment variables.
  4375. * docs/DEBUG.TXT: Updated.
  4376. Fixed the cache sub-system to correctly deal with out-of-memory
  4377. conditions.
  4378. * src/cache/ftccache.c (ftc_node_destroy): Comment out generic
  4379. check.
  4380. (ftc_cache_lookup): Implement loop.
  4381. * src/cache/ftccmap.c: Define FT_COMPONENT.
  4382. * src/cache/ftcsbits.c (ftc_sbit_node_load): Handle
  4383. FT_Err_Out_Of_Memory.
  4384. * src/cache/ftlru.c: Include FT_INTERNAL_DEBUG_H.
  4385. (FT_LruList_Lookup): Implement loop.
  4386. * src/pfr/pfrobjs.c (pfr_face_done): Fix memory leak.
  4387. (pfr_face_init): Fixing compiler warnings.
  4388. * src/psaux/psobjs.c (reallocate_t1_table): Fixed a bug (memory
  4389. leak) that only happened when a try to resize an array would end in
  4390. an out-of-memory condition.
  4391. * src/smooth/ftgrays.c (gray_convert_glyph): Removed compiler
  4392. warnings / volatile bug.
  4393. * src/truetype/ttobjs.c (tt_glyphzone_done): Removed segmentation
  4394. fault that happened in tight memory environments.
  4395. 2003-02-28 Pixel <pixel@mandrakesoft.com>
  4396. * src/gzip/ftgzip.c (ft_gzip_file_done): Fixed memory leak: The ZLib
  4397. stream was not properly finalized.
  4398. 2003-02-25 Anthony Fok <anthony@thizlinux.com>
  4399. * src/cache/ftccmap.c: Include FT_TRUETYPE_IDS_H.
  4400. (ftc_cmap_family_init): The cmap cache now
  4401. supports UCS-4 charmaps when available in Asian fonts.
  4402. * src/sfnt/ttload.c, src/base/ftobjs.c: Changed `asian' to `Asian'
  4403. in comments.
  4404. 2003-02-25 David Turner <david@freetype.org>
  4405. * src/gzip/ftgzip.c (ft_gzip_file_fill_output): Fixed a bug that
  4406. caused FreeType to loop endlessly when trying to read certain
  4407. compressed gzip files. The following test reveals the bug:
  4408. touch 0123456789 ; gzip 0123456789 ; ftdump 0123456789.gz
  4409. Several fixes to the PFR font driver:
  4410. - The list of available embedded bitmaps was not correctly set in
  4411. the root FT_FaceRec structure describing the face.
  4412. - The glyph loader always tried to load the outlines when
  4413. FT_LOAD_SBITS_ONLY was specified.
  4414. - The table loaded now scans for *undocumented* elements of a
  4415. physical font's auxiliary data record. This is necessary to
  4416. retrieve the `real' family and style names.
  4417. NOTE THAT THESE CHANGES THE FAMILY NAME OF MANY PFR FONTS!
  4418. * src/pfr/pfrload.c (pfr_aux_name_load): New function.
  4419. (pfr_phy_font_done): Free `family_name' and `style_name' also.
  4420. Remove unused variables.
  4421. (pfr_phy_font_load): Extract useful information from the auxiliary
  4422. bytes.
  4423. * src/pfr/pfrobjs.c (pfr_face_done): Set pointers to NULL.
  4424. (pfr_face_init): Provide fallback values for `family_name' and
  4425. `style_name'.
  4426. Handle strikes.
  4427. (pfr_slot_load): Handle FT_LOAD_SBITS_ONLY.
  4428. * src/pfr/pfrtypes.h (PFR_PhyFontRec): Add fields `ascent',
  4429. `descent', `leading', `family_name', and `style_name'.
  4430. * src/truetype/ttdriver.c (Set_Char_Sizes): Fixed a rounding bug
  4431. when computing the scale factors for a given character size in
  4432. points with resolution.
  4433. * devel/ft2build.h, devel/ftoption.h: New files (in a new directory)
  4434. which are special development versions of include/ft2build.h and
  4435. include/freetype/config/ftoption.h, respectively.
  4436. 2003-02-18 David Turner <david@freetype.org>
  4437. Fixing the slight distortion problem that occurred due to the latest
  4438. auto-hinter changes.
  4439. * src/base/ftobjs.c (ft_recompute_scaled_metrics): Fix rounding.
  4440. * src/truetype/ttdriver.c (Set_Char_Sizes): New variable `metrics2'.
  4441. [!TT_CONFIG_OPTION_BYTECODE_INTERPRETER]: Removed.
  4442. * src/truetype/ttobjs.h (TT_SizeRec): New field `metrics'.
  4443. * src/truetype/ttobjs.c (Reset_Outline_Size): Fix initialization of
  4444. `metrics'.
  4445. [FT_CONFIG_CHESTER_ASCENDER]: Code removed.
  4446. (Reset_SBit_Size): Fix initialization of `metrics'.
  4447. * src/truetype/ttinterp.c (TT_Load_Context): Fix initialization of
  4448. `exec->metrics'.
  4449. * src/autohint/ahhint.c (ah_hinter_load): Disabled the advance width
  4450. `correction' which seemed to provide more trouble than benefits.
  4451. 2003-02-13 Graham Asher <graham.asher@btinternet.com>
  4452. Changed the incremental loading interface in a way that makes it
  4453. simpler and allows glyph metrics to be changed (e.g., by adding a
  4454. constant, as required by CFF fonts) rather than just overridden.
  4455. This was required to make the GhostScript-to-FreeType bridge work.
  4456. * src/cff/cffgload.c (cff_slot_load) [FT_CONFIG_OPTION_INCREMENTAL]:
  4457. Allow metrics to be overridden.
  4458. * src/cid/cidgload.c (cid_load_glyph) [FT_CONFIG_OPTION_INCREMENTAL]:
  4459. Ditto.
  4460. * src/truetype/ttgload.c (load_truetype_glyph)
  4461. [FT_CONFIG_OPTION_INCREMENTAL]: Simplify.
  4462. (compute_glyph_metrics) [FT_CONFIG_OPTION_INCREMENTAL]: Code block
  4463. moved down.
  4464. * src/type1/t1gload.c (T1_Parse_Glyph_And_Get_Char_String)
  4465. [FT_CONFIG_OPTION_INCREMENTAL]: Updated.
  4466. * include/freetype/ftincrem.h: Updated.
  4467. 2003-01-31 David Turner <david@freetype.org>
  4468. * docs/CHANGES, docs/VERSION.DLL, docs/TODO: Updating documentation
  4469. for the 2.1.4 release.
  4470. * builds/win32/visualc/freetype.dsp,
  4471. builds/win32/visualc/index.html: Updating the project file for
  4472. 2.1.4.
  4473. * src/gzip/adler32.c, src/gzip/ftgzip.c, src/gzip/infblock.c,
  4474. src/gzip/infcodes.c, src/gzip/inflate.c, src/gzip/inftrees.c,
  4475. src/gzip/infutil.c: Removed old-style (K&R)function definitions.
  4476. This avoids warnings with Visual C++ at its most pedantic mode.
  4477. * src/pfr/pfrsbit.c: Removed compiler warnings.
  4478. * src/cache/ftccmap.c (ftc_cmap_family_init): Changed an FT_ERROR
  4479. into an FT_TRACE1 since it caused `ftview' and others to dump too
  4480. much junk when trying to display a waterfall with a font without a
  4481. Unicode charmap (e.g. SYMBOL.TTF).
  4482. Implemented FT_CONFIG_CHESTER_BLUE_SCALE, corresponding to the last
  4483. patch from David Chester, but with a much simpler (and saner)
  4484. implementation.
  4485. * src/autohint/ahhint.c (ah_hinter_load_glyph)
  4486. [FT_CONFIG_CHESTER_BLUE_SCALE]: Try to optimize the y_scale so that
  4487. the top of non-capital letters is aligned on a pixel boundary
  4488. whenever possible.
  4489. * src/base/ftobjs.c (FT_Set_Char_Size)
  4490. [FT_CONFIG_CHESTER_BLUE_SCALE]: Round differently.
  4491. * src/truetype/ttdriver.c (Set_Char_Sizes)
  4492. [TT_CONFIG_OPTION_BYTECODE_INTERPRETER]: Do some rounding only
  4493. if this macro is defined.
  4494. * src/truetype/ttobjs.c (Reset_Outline_Size)
  4495. [FT_CONFIG_CHESTER_ASCENDER]: Round differently.
  4496. * src/pshinter/pshalgo3.c: Improved the Postscript hinter. Getting
  4497. rid of stem snapping seems to work well here (though the stems are
  4498. still slightly moved to increase contrast).
  4499. (psh3_dimension_quantize_len): Commented out.
  4500. (psh3_hint_align_light): New function.
  4501. (psh3_hint_align): Comment out some code.
  4502. THIS IMPROVES ANTI-ALIASED RENDERING, BUT MONOCHROME AND LCD MODES
  4503. STILL SUCK.
  4504. 2003-01-22 David Chester <davidchester@qmx.net>
  4505. * src/autohint/ahhint.c (ah_compute_stem_width): Small fix to the
  4506. stem width optimization.
  4507. 2003-01-22 David Turner <david@freetype.org>
  4508. Adding a new API `FT_Get_BDF_Property' to retrieve the BDF
  4509. properties of a given PCF or BDF font.
  4510. * include/freetype/ftbdf.h (BDF_PropertyType): New enumeration.
  4511. (BDF_Property, BDF_PropertyRec): New structure.
  4512. FT_Get_BDF_Property): New function.
  4513. * include/freetype/internal/bdftypes.h: Include FT_BDF_H.
  4514. (BDF_GetPropertyFunc): New function pointer.
  4515. * src/base/ftbdf.c (test_font_type): New helper function.
  4516. (FT_Get_BDF_Charset_ID): Use `test_font_type'.
  4517. (FT_Get_BDF_Property): New function.
  4518. * src/bdf/bdfdrivr.c: Include FT_BDF_H.
  4519. (bdf_get_bdf_property, bdf_driver_requester): New functions.
  4520. (bdf_driver_class): Use `bdf_driver_requester'.
  4521. * src/pcf/pcfdrivr.c: Include FT_BDF_H.
  4522. (pcf_get_bdf_property, pcf_driver_requester): New functions
  4523. (pcf_driver_class): Use `pcf_driver_requester'.
  4524. * src/pcf/pcfread.c: Include `pcfread.h'.
  4525. (pcf_find_property): Decorate it with FT_LOCAL_DEF.
  4526. * src/pcf/pcfread.h: New file, providing `pcf_find_property'.
  4527. * src/sfnt/ttload.c (sfnt_dir_check): Relaxed the `head' table size
  4528. verification to accept a few broken fonts who pad the size
  4529. incorrectly (the table should be padded, but its `size' field
  4530. shouldn't according to the specification).
  4531. 2003-01-18 Werner Lemberg <wl@gnu.org>
  4532. * builds/unix/ltmain.sh: Regenerated with `libtoolize --force
  4533. --copy' from libtool 1.4.3.
  4534. * builds/unix/aclocal.m4: Regenerated with `aclocal -I .' from
  4535. automake 1.7.1.
  4536. * builds/unix/configure: Regenerated with autoconf 2.54.
  4537. * builds/unix/config.guess, builds/unix/config.sub: Updated from
  4538. `config' CVS module at subversions.gnu.org.
  4539. * builds/unix/install-sh, builds/unix/mkinstalldirs: Updated from
  4540. `automake' CVS module at subversions.gnu.org.
  4541. 2003-01-15 David Turner <david@freetype.org>
  4542. * include/freetype/freetype.h: Fixed documentation for
  4543. FT_Size_Metrics.
  4544. 2003-01-15 James Su <suzhe@turbolinux.com.cn>
  4545. * src/gzip/ftgzip.c (ft_gzip_check_header): Bugfix: couldn't read
  4546. certain gzip-ed font files (typo: `&&' -> `&').
  4547. 2003-01-15 Huw D M Davies <h.davies1@physics.ox.ac.uk>
  4548. Added a Windows .FNT specific API (mostly for Wine). Also fixed a
  4549. nasty bug in the header loader which would cause invalid memory
  4550. overwrites.
  4551. * include/freetype/config/ftheader.h (FT_WINFONTS_H): New macro
  4552. for ftwinfnt.h.
  4553. * include/freetype/internal/fnttypes.h: Include FT_WINFONTS_H.
  4554. (FNT_FontRec): Updated.
  4555. Move Windows FNT definition to...
  4556. * include/freetype/ftwinfnt.h: This new file.
  4557. (FT_WinFNT_HeaderRec): Rename `reserved2' to `reserved1'.
  4558. * src/base/ftwinfnt.c: New file, providing `FT_Get_WinFNT_Header'.
  4559. * src/winfonts/winfnt.c (winfnt_header_fields): Updated.
  4560. Rename `reserved2' to `reserved1'.
  4561. (fnt_font_load): Updated.
  4562. * src/base/Jamfile, src/base/descrip.mms, src/base/rules.mk:
  4563. Updated.
  4564. 2003-01-14 Graham Asher <graham.asher@btinternet.com>
  4565. * include/freetype/ftglyph.h, src/base/ftglyph.c: Added `const' to
  4566. the type of the first argument to FT_Matrix_Multiply, which isn't
  4567. changed -- this adds documentation and convenience.
  4568. 2003-01-13 Graham Asher <graham.asher@btinternet.com>
  4569. * src/sfnt/ttload.c (tt_face_load_metrics)
  4570. [FT_CONFIG_OPTION_INCREMENTAL]: TrueType typefaces without
  4571. horizontal metrics (without the `hmtx' table) are now tolerated if
  4572. an incremental interface has been specified that has a
  4573. get_glyph_metrics function, implying that metrics will be supplied
  4574. from outside. This happens for certain Type 42 fonts passed from
  4575. GhostScript.
  4576. 2003-01-11 David Chester <davidchester@qmx.net>
  4577. Patches to the auto-hinter in order to slightly improve the output.
  4578. Note that everything is controlled through the new
  4579. FT_CONFIG_OPTION_CHESTER_HINTS defined in `ftoption.h'. There are
  4580. also individual FT_CONFIG_CHESTER_XXX macros to control individual
  4581. `features'.
  4582. Note that all improvements are enabled by default, but can be
  4583. tweaked for optimization and testing purposes. The configuration
  4584. macros will most likely disappear in the short future.
  4585. * include/freetype/config/ftoption.h
  4586. (FT_CONFIG_OPTION_CHESTER_HINTS): New macro.
  4587. (FT_CONFIG_CHESTER_{SMALL_F,ASCENDER,SERIF,STEM,BLUE_SCALE})
  4588. [FT_CONFIG_OPTION_CHESTER_HINTS]: New macros to control individual
  4589. features.
  4590. * src/autohint/ahglobal.c (blue_chars) [FT_CONFIG_CHESTER_SMALL_F]:
  4591. Add blue zone for `fijkdbh'.
  4592. * src/autohint/ahglobal.h (AH_IS_TOP_BLUE)
  4593. [FT_CONFIG_CHESTER_SMALL_F]: Use `AH_BLUE_SMALL_F_TOP'.
  4594. * src/autohint/ahglyph.c (ah_outline_compute_edges)
  4595. [FT_CONFIG_CHESTER_SERIF]: Use `AH_EDGE_SERIF'.
  4596. (ah_outline_compute_blue_edges) [FT_CONFIG_CHESTER_SMALL_F]:
  4597. Increase threshold for `best_dist'.
  4598. * src/autohint/ahhint.c (ah_compute_stem_width)
  4599. [FT_CONFIG_CHESTER_SERIF]: Provide new version for improved serif
  4600. handling.
  4601. (ah_align_linked_edge) [FT_CONFIG_CHESTER_SERIF]: Use special
  4602. version of `ah_compute_stem_width'.
  4603. (ah_hint_edges_3) [FT_CONFIG_CHESTER_STEM]: A new algorithm for stem
  4604. alignment when stem widths are less than 1.5 pixels wide centers the
  4605. stem slightly off-center of the center of a pixel (this increases
  4606. sharpness and consistency).
  4607. [FT_CONFIG_CHESTER_SERIF]: Use special version of
  4608. `ah_compute_stem_width'.
  4609. * src/autohint/ahtypes.h [FT_CONFIG_CHESTER_SMALL_F]: Add
  4610. `AH_BLUE_SMALL_F_TOP'.
  4611. 2003-01-11 David Turner <david@freetype.org>
  4612. * include/freetype/internal/fnttypes.h (WinFNT_HeaderRec): Increase
  4613. size of `reserved2' to avoid memory overwrites.
  4614. 2003-01-08 Huw Davies <huw@codeweavers.com>
  4615. * src/winfonts/winfnt.c (winfnt_header_fields): Read 16 bytes into
  4616. `reserved2', not `reserved'.
  4617. * src/base/ftobjs.c (find_unicode_charmap): Fixed the error code
  4618. returned when the font doesn't contain a Unicode charmap. This
  4619. allows FT2 to load `symbol.ttf' and a few others correctly since the
  4620. last release.
  4621. (open_face): Fix return value.
  4622. 2003-01-08 Owen Taylor <owen@redhat.com>
  4623. Implemented the FT_RENDER_MODE_LIGHT hinting mode in the auto and
  4624. postscript hinters.
  4625. * src/autohint/ahtypes.h (AH_HinterRec): Add `do_stem_adjust'.
  4626. * src/autohint/ahhint.c (ah_compute_stem_width): Handle
  4627. hinter->do_stem_adjust.
  4628. (ah_hinter_load_glyph): Set hinter->do_stem_adjust.
  4629. * src/pshinter/pshalgo3.h (PSH3_GlyphRec): Add `do_stem_adjust'.
  4630. * src/pshinter/pshalgo3.c (psh3_hint_align): Use `do_stem_adjust'.
  4631. (ps3_hints_apply): Handle FT_RENDER_MODE_LIGHT.
  4632. * include/freetype/freetype.h (FT_Render_Mode): Add
  4633. FT_RENDER_MODE_LIGHT.
  4634. * src/truetype/ttgload.c: Fixing the TrueType loader to handle
  4635. invalid composites correctly by limiting the recursion depth.
  4636. (TT_MAX_COMPOSITE_RECURSE): New macro.
  4637. (load_truetype_glyph): Add argument `recurse_count'.
  4638. Load a composite only if the numbers of contours is -1, emit error
  4639. otherwise.
  4640. (TT_Load_Glyph): Updated.
  4641. 2003-01-08 David Turner <david@freetype.org>
  4642. * Jamrules, Jamfile, Jamfile.in, src/*/Jamfile: Small changes to
  4643. support the compilation of FreeType 2 as part of larger projects
  4644. with their own configuration options (only with Jam).
  4645. 2003-01-07 David Turner <david@freetype.org>
  4646. * src/base/ftstroker.c: Probably the last bug-fixes to the stroker;
  4647. the API is likely to change, however.
  4648. (ft_stroke_border_close): Don't record empty paths.
  4649. (ft_stroke_border_get_counts): Increase `num_points' also in for loop.
  4650. (ft_stroke_border_export): Don't increase `write' twice in for loops.
  4651. (ft_stroker_outside): Handle `phi' together with `theta'.
  4652. (FT_Stroker_ParseOutline): New function.
  4653. * src/base/fttrigon.c (FT_Angle_Diff): Fixing function: It returned
  4654. invalid values for large negative angle differences (resulting in
  4655. incorrect stroker computations, among other things).
  4656. * src/cache/ftccache.c (ftc_node_hash_unlink): Removing incorrect
  4657. assertion, and changing code to avoid hash table size contraction.
  4658. * src/base/Jamfile, src/base/rules.mk, src/base/descrip.mms: Adding
  4659. `ftstroker' to default build, as optional component.
  4660. 2002-12-26 David Turner <david@freetype.org>
  4661. * src/gzip/adler32.c, src/gzip/infblock.c, src/gzip/inflate.c,
  4662. src/gzip/inftrees.c, src/gzip/zconf.h, src/gzip/zlib.h,
  4663. src/gzip/zutil.h: Updates to allow compilation without compiler
  4664. warnings with LCC-Win32.
  4665. * include/freetype/freetype.h (FREETYPE_PATCH): Set to 4.
  4666. * builds/unix/configure.ac (version_info): Increased to 9:3:3.
  4667. * builds/unix/configure: Regenerated.
  4668. * docs/VERSION.DLL: Updated.
  4669. 2002-12-23 Anthony Fok <anthony@thizlinux.com>
  4670. * builds/unix/configure.ac, builds/unix/unix-cc.in (LINK_LIBRARY),
  4671. builds/unix/unix-def.in (SYSTEM_ZLIB): Small fix to configure
  4672. sub-system on Unix to allow other programs to correctly link with
  4673. zlib when needed.
  4674. 2002-12-19 David Turner <david@freetype.org>
  4675. * include/freetype/internal/sfnt.h (SFNT_Load_Table_Func): New
  4676. function pointer.
  4677. * include/freetype/tttables.h (FT_Load_Sfnt_Table): New function.
  4678. * src/base/ftobjs.c: Implement it.
  4679. * src/sfnt/sfdriver.c (sfnt_get_interface): Handle `load_sfnt'
  4680. module request.
  4681. 2002-12-17 David Turner <david@freetype.org>
  4682. * src/base/ftobjs.c (find_unicode_charmap): Added some comments to
  4683. better explain what's happening there.
  4684. (open_face): Included Graham Asher's fix to prevent faces without
  4685. Unicode charmaps from loading.
  4686. * src/winfonts/winfnt.c: Included George Williams's fix to support
  4687. version 2 fonts correctly.
  4688. (winfnt_header_fields): Updated.
  4689. (fnt_font_load): Handle version 2 fonts.
  4690. (FNT_Load_Glyph): Updated.
  4691. 2002-12-16 David Turner <david@freetype.org>
  4692. * docs/VERSION.DLL: Updating document to better explain the
  4693. differences between the three version numbers being used on Unix, as
  4694. well as providing an autoconf fragment provided by Lars Clausen.
  4695. * src/smooth/ftgrays.c (gray_render_conic): Fixed small bug that
  4696. prevented Bézier arcs with negative vertical coordinates to be
  4697. rendered appropriately.
  4698. 2002-12-02 Antoine Leca <Antoine-Freetype@Leca-Marti.org>
  4699. * src/base/ftobjs.c: Modified the logic to get Unicode charmaps.
  4700. Now it loads UCS-4 charmaps when there is one.
  4701. (find_unicode_charmap): New function.
  4702. (open_face): Refer to the above one.
  4703. (FT_Select_Charmap): Idem.
  4704. 2002-11-29 Antoine Leca <Antoine-Freetype@Leca-Marti.org>
  4705. * include/freetype/ftgzip.h: Correct the name of the controlling
  4706. macro (was __FTXF86_H__ ...).
  4707. 2002-11-27 Vincent Caron <v.caron@zerodeux.net>
  4708. * builds/unix/unix-def.in, builds/unix/freetype-config.in,
  4709. builds/unix/configure.ac, src/gzip/rules.mk, src/gzip/ftgzip.c
  4710. [FT_CONFIG_OPTION_SYSTEM_ZLIB]: Adding support for system zlib
  4711. installations if available on the target platform (Unix only).
  4712. 2002-11-23 David Turner <david@freetype.org>
  4713. * src/cff/cffload.c (cff_charset_load, cff_encoding_load): Modified
  4714. charset loader to accept pre-defined charsets, even when the font
  4715. contains fewer glyphs. Also enforced more checks to ensure that we
  4716. never overflow the character codes array in the encoding.
  4717. 2002-11-22 Antoine Leca <Antoine-Freetype@Leca-Marti.org>
  4718. * include/freetype/ttnameid.h: Updated to latest OpenType
  4719. specification.
  4720. 2002-11-18 David Turner <david@freetype.org>
  4721. * Version 2.1.3 released.
  4722. =========================
  4723. 2002-11-07 David Turner <david@freetype.org>
  4724. * src/cache/ftcsbits.c (ftc_sbit_node_load): Fixed a small bug that
  4725. caused problems with embedded bitmaps.
  4726. * src/otlayout/otlayout.h, src/otlayout/otlconf.h,
  4727. src/otlayout/otlgsub.c, src/otlayout/otlgsub.h,
  4728. src/otlayout/otlparse.c, src/otlayout/otlparse.h,
  4729. src/otlayout/otlutils.h: Updating the OpenType Layout code, adding
  4730. support for the first GSUB lookups. Nothing that really compiles
  4731. for now though.
  4732. * src/autohint/ahhint.c (ah_align_serif_edge): Disabled serif stem
  4733. width quantization. It produces slightly better shapes though this
  4734. is not distinguishable with many fonts.
  4735. Remove other dead code.
  4736. * src/Jamfile, src/*/Jamfile: Simplified.
  4737. Use $(FT2_SRC_DIR).
  4738. 2002-11-06 David Turner <david@freetype.org>
  4739. * include/freetype/freetype.h (FT_LOAD_TARGET_LIGHT): New macro.
  4740. (FT_LOAD_TARGET, FT_LOAD_TARGET_MODE): Use `& 15' instead of `& 7'.
  4741. 2002-11-05 David Turner <david@freetype.org>
  4742. * include/freetype/config/ftoption.h, src/gzip/ftgzip.c: Added
  4743. support for the FT_CONFIG_OPTION_SYSTEM_ZLIB option, used to specify
  4744. the use of system-wide zlib.
  4745. Note that this macro, as well as
  4746. TT_CONFIG_OPTION_BYTECODE_INTERPRETER, is not #undef-ed anymore.
  4747. This allows the build system to define them depending on the
  4748. configuration (typically by adding -D flags at compile time).
  4749. * src/sfnt/ttcmap0.c (tt_face_build_cmaps): Removed compiler
  4750. warnings in optimized mode relative to the `volatile' local
  4751. variables. This was not a compiler bug after all, but the fact that
  4752. a pointer to a volatile variable is not the same as a volatile
  4753. pointer to a variable :-)
  4754. The fix was to change
  4755. `volatile FT_Byte* p'
  4756. into
  4757. `FT_Byte* volatile p'.
  4758. * src/pfr/pfrload.c (pfr_phy_font_load), src/pfr/pfrdrivr.c
  4759. (pfr_get_metrics), src/gzip/inftrees.c: Removed compiler warnings in
  4760. optimized modes.
  4761. * src/gzip/*.[hc]: Modified our zlib copy in order to prevent
  4762. exporting any zlib function names outside of the component. This
  4763. prevents linking problems on some platforms, when applications want
  4764. to link FreeType _and_ zlib together.
  4765. 2002-11-05 Juliusz <jch@pps.jussieu.fr>
  4766. * src/psaux/psobjs.c (ps_table_add): Modified increment loop in
  4767. order to implement exponential behaviour.
  4768. 2002-11-01 David Turner <david@freetype.org>
  4769. Added PFR-specific public API. Fixed the kerning retrieval routine
  4770. (it returned invalid values when the outline and metrics resolution
  4771. differ).
  4772. * include/freetype/ftpfr.h, include/freetype/internal/pfr.h: New
  4773. files.
  4774. * include/freetype/internal/internal.h (FT_INTERNAL_PFR_H): New
  4775. macro for pfr.h.
  4776. * src/base/ftpfr.c: New file.
  4777. * src/base/Jamfile, src/base/descrip.mms: Updated.
  4778. * src/pfr/pfrdrivr.c: Include FT_INTERNAL_PFR_H.
  4779. (pfr_get_kerning, pfr_get_advance, pfr_get_metrics): New functions.
  4780. (pfr_service_rec): New format interface.
  4781. (pfr_driver_class): Use `pfr_service_rec'.
  4782. Replace `pfr_face_get_kerning' with `pfr_get_kerning'.
  4783. * src/pfr/pfrobjs.c: Remove dead code.
  4784. * src/base/ftobjs.c (ft_glyphslot_clear): Small internal fix to
  4785. better support bitmap-based font formats.
  4786. * src/base/ftsynth.c (FT_GlyphSlot_Embolden): Fix handling of
  4787. `scale'.
  4788. Fix arguments to `FT_Vector_From_Polar'.
  4789. 2002-10-31 David Turner <david@freetype.org>
  4790. Add support for automatic handling of gzip-compressed PCF files.
  4791. * src/gzip/*: New files, taken from the zlib package (except
  4792. ftgzip.c).
  4793. * include/freetype/ftgzip.h, src/gzip/ftgzip.c: New files.
  4794. * include/freetype/config/ftheader.h (FT_GZIP_H): New macro for
  4795. `ftgzip.h'.
  4796. * src/pcf/pcfdriver.c: Include FT_GZIP_H and FT_ERRORS_H.
  4797. (PCF_Face_Init): If normal open fails, try to open gzip stream.
  4798. (PCF_Face_Done): Close gzip stream.
  4799. * include/freetype/internal/pcftypes.h (PCF_Public_FaceRec),
  4800. src/pcf/pcf.h (PCF_FaceRec): Add `gzip_stream' and `gzip_source'.
  4801. * include/freetype/config/ftoption.h (FT_CONFIG_OPTION_USE_ZLIB):
  4802. New macro.
  4803. (T1_CONFIG_OPTION_DISABLE_HINTER, FT_CONFIG_OPTION_USE_CMAPS
  4804. FT_CONFIG_OPTION_NO_CONVENIENCE_FUNCS,
  4805. FT_CONFIG_OPTION_ALTERNATE_GLYPH_FORMATS): Removed.
  4806. (FT_EXPORT, FT_EXPORT_DEF, FT_DEBUG_LEVEL_ERROR,
  4807. FT_DEBUG_LEVEL_TRACE, FT_DEBUG_MEMORY): Comment out definitions so
  4808. that platform specific configuration file can override.
  4809. * include/freetype/internal/ftstream.h: Include FT_SYSTEM_H.
  4810. 2002-10-30 David Turner <david@freetype.org>
  4811. * FreeType 2.1.3rc3 released.
  4812. 2002-10-25 David Turner <david@freetype.org>
  4813. * include/freetype/ftcache.h (FT_POINTER_TO_ULONG): New macro.
  4814. (FTC_FACE_ID_HASH): Rewritten, using FT_POINTER_TO_ULONG.
  4815. 2002-10-22 Giuseppe Ghibò <ghibo@mandrakesoft.com>
  4816. * include/freetype/freetype.h (FT_Encoding): Fix entry for latin-2.
  4817. 2002-10-07 Werner Lemberg <wl@gnu.org>
  4818. * include/freetype/freetype.h (FT_Open_Face): Use `const' for `args'
  4819. (suggested by Graham).
  4820. * src/base/ftobjs.c (FT_Open_Face): Updated.
  4821. (ft_input_stream_new): Ditto.
  4822. 2002-10-05 David Turner <david@freetype.org>
  4823. Adding support for embedded bitmaps to the PFR driver, and rewriting
  4824. its kerning loader/handler to use all kerning pairs in a physical
  4825. font (and not just the first item).
  4826. * src/pfr/pfr.c: Include `pfrsbit.c'.
  4827. * src/pfr/pfrgload.c: Include `pfrsbit.h'.
  4828. * src/pfr/pfrload.c (pfr_extra_item_load_kerning_pairs): Rewritten.
  4829. (pfr_phy_font_done, pfr_phy_font_load): Updated.
  4830. * src/pfr/pfrobjs.c: Include `pfrsbit.h'.
  4831. (pfr_face_init): Handle kerning and embedded bitmaps.
  4832. (pfr_slot_load): Load embedded bitmaps.
  4833. (PFR_KERN_INDEX): Removed.
  4834. (pfr_face_get_kerning): Rewritten.
  4835. * src/pfr/pfrsbit.c, src/pfr/pfrsbit.h: New files.
  4836. * src/pfr/pfrtypes.h (PFR_KernItemRec): New structure.
  4837. (PFR_KERN_INDEX): New macro.
  4838. (PFR_PhyFontRec): Add items for kerning and embedded bitmaps.
  4839. * src/pfr/Jamfile (_sources) [FT2_MULTI]: Add `pfrsbit'.
  4840. * src/base/ftobjs.c (FT_Load_Glyph): Don't load bitmap fonts if
  4841. FT_LOAD_NO_RECURSE is set.
  4842. Load embedded bitmaps only if FT_LOAD_NO_BITMAP isn't set.
  4843. * src/tools/docmaker/content.py, src/tools/docmaker/sources.py,
  4844. src/tools/docmaker/tohtml.py: Fixing a few nasty bugs.
  4845. * src/sfnt/ttcmap0.c (tt_cmap4_validate): The validator for format 4
  4846. sub-tables is now capable of dealing with invalid `length' fields at
  4847. the start of the sub-table. This allows fonts like `mg______.ttf'
  4848. (i.e. Marriage) to return accurate charmaps.
  4849. * docs/CHANGES: Updated.
  4850. 2002-10-05 Werner Lemberg <wl@gnu.org>
  4851. * src/smooth/ftgrays.c (SUBPIXELS): Add cast to `TPos'.
  4852. Update all callers.
  4853. (TRUNC): Add cast to `TCoord'.
  4854. Update all callers.
  4855. (TRaster): Use `TPos' for min_ex, max_ex, min_ey, max_ey, and
  4856. last_ey.
  4857. Update all casts.
  4858. (gray_render_line): Fix casts for `p' and `first'.
  4859. 2002-10-02 Detlef Würkner <TetiSoft@apg.lahn.de>
  4860. * src/bdf/bdflib.c (bdf_load_font): Allocate the _bdf_parse_t
  4861. structure with FT_ALLOC instead of using the stack.
  4862. 2002-09-27 Werner Lemberg <wl@gnu.org>
  4863. * src/include/freetype/internal/tttypes.h (num_sbit_strikes,
  4864. num_sbit_scales): Use `FT_ULong'.
  4865. * src/sfnt/sfobjs.c (sfnt_load_face): Updated accordingly.
  4866. * src/sfnt/ttsbit.c (tt_face_set_sbit_strike): Ditto.
  4867. (find_sbit_image): Remove cast.
  4868. * src/raster/ftrend1.c (ft_raster1_render): Fix cast.
  4869. 2002-09-27 Wolfgang Domröse <porthos.domroese@harz.de>
  4870. * src/sfnt/ttload.c (tt_face_load_names): Use cast.
  4871. * src/sfnt/ttcmap.c (code_to_next2): Use long constant.
  4872. (code_to_index4): Use cast.
  4873. (code_to_index8_12): Fix cast.
  4874. * src/sfnt/ttcmap0.c (tt_cmap4_char_next, tt_cmap8_char_index,
  4875. tt_cmap12_char_index): Use cast for `result'.
  4876. (tt_face_build_cmaps): Use cast.
  4877. * src/sfnt/sfobjs.c (tt_name_entry_ascii_from_ucs4): Use cast for
  4878. `code'.
  4879. (sfnt_load_face): Use FT_Int32 for `flags'.
  4880. * src/smooth/ftgrays.c (gray_render_scanline, gray_render_line,
  4881. gray_compute_cbox, gray_convert_glyph, gray_raster_reset): Add casts
  4882. to `TCoord' and `int'.
  4883. More 16bit fixes.
  4884. s/FT_Pos/TPos/.
  4885. * src/smooth/ftsmooth.c (ft_smooth_render_generic): Add casts.
  4886. 2002-09-26 Werner Lemberg <wl@gnu.org>
  4887. * src/sfnt/ttpost.c (load_post_names, tt_face_free_ps_names,
  4888. tt_face_get_ps_name): Replace switch statement with if clauses to
  4889. make it more portable.
  4890. * src/cff/cffobjs.c (cff_face_init): Ditto.
  4891. * include/freetype/ftmodule.h (FT_Module_Class): Use `FT_Long' for
  4892. `module_size'.
  4893. * include/freetype/ftrender.h (FT_Glyph_Class_): Use `FT_Long' for
  4894. `glyph_size'.
  4895. * src/base/ftobjs.c (FT_Render_Glyph): Change second parameter to
  4896. `FT_Render_Mode'.
  4897. (FT_Render_Glyph_Internal): Change third parameter to
  4898. `FT_Render_Mode'.
  4899. * src/base/ftglyph.c (FT_Glyph_To_Bitmap): Change second parameter
  4900. to `FT_Render_Mode'.
  4901. * src/raster/ftrend1.c (ft_raster1_render): Change third parameter
  4902. to `FT_Render_Mode'.
  4903. * src/smooth/ftsmooth.c (ft_smooth_render, ft_smooth_render_lcd,
  4904. ft_smooth_render_lcd_v): Ditto.
  4905. (ft_smooth_render_generic): Change third and fifth parameter to
  4906. `FT_Render_Mode'.
  4907. * include/freetype/freetype.h, include/freetype/internal/ftobjs.h,
  4908. include/freetype/ftglyph.h: Updated.
  4909. * src/cff/cffdrivr.c (Load_Glyph), src/pcf/pcfdriver.c
  4910. (PCF_Glyph_Load), src/pfr/pfrobjs.c (pfr_slot_load),
  4911. src/winfonts/winfnt.c (FNT_Load_Glyph), src/t42/t42objs.c
  4912. (T42_GlyphSlot_Load), src/bdf/bdfdrivr.c (BDF_Glyph_Load): Change
  4913. fourth parameter to `FT_Int32'.
  4914. * src/pfr/pfrobjs.c (pfr_face_init): Add two missing parameters
  4915. and declare them as unused.
  4916. * src/cid/cidparse.h (CID_Parser): Use FT_Long for `postscript_len'.
  4917. * src/psnames/psnames.h (PS_Unicode_Value_Func): Change return
  4918. value to FT_UInt32.
  4919. * src/psnames/psmodule.c (ps_unicode_value, ps_build_unicode_table):
  4920. Updated accordingly.
  4921. 2002-09-26 Wolfgang Domröse <porthos.domroese@harz.de>
  4922. * src/cff/cffdrivr.c (Get_Kerning): Use FT_Long for `middle'.
  4923. (cff_get_glyph_name): Use cast for result of ft_strlen.
  4924. * src/cff/cffparse.c (cff_parse_real): User cast for assigning
  4925. `exp'.
  4926. * src/cff/cffload.c (cff_index_get_pointers): Use FT_ULong for
  4927. some local variables.
  4928. (cff_charset_load, cff_encoding_load): Use casts to FT_UInt for some
  4929. switch statements.
  4930. (cff_font_load): Use cast in call to CFF_Load_FD_Select.
  4931. * src/cff/cffobjs.c (cff_size_init): Use more casts.
  4932. (cff_face_init): Use FT_Int32 for `flags'.
  4933. * src/cff/cffgload.c (cff_operator_seac): Use cast for assigning
  4934. `adx' and `ady'.
  4935. (cff_decoder_parse_charstrings): Use FT_ULong for third parameter.
  4936. Use more casts.
  4937. * src/cff/cffcmap.c (cff_cmap_unicode_init): Use cast for `count'.
  4938. * src/cid/cidload.c (cid_read_subrs): Use FT_ULong for `len'.
  4939. * src/cid/cidgload.c (cid_load_glyph): Add missing cast for
  4940. `cid_get_offset'.
  4941. * src/psaux/t1decode.c (t1_decoder_parse_charstrings) <18>: Use
  4942. cast for `num_points'.
  4943. (t1_decoder_init): Use cast for assigning `decoder->num_glyphs'.
  4944. * src/base/ftdebug.c (ft_debug_init): Use FT_Int.
  4945. * include/freetype/internal/ftdriver.h (FT_Slot_LoadFunc): Use
  4946. `FT_Int32' for fourth parameter.
  4947. * src/base/ftobjs.c (open_face): Use cast for calling
  4948. clazz->init_face.
  4949. * src/raster/ftraster.c (Set_High_Precision): Use `1' instead of
  4950. `1L'.
  4951. (Finalize_Profile_Table, Line_Up, ft_black_init): Use casts.
  4952. * src/raster/ftrend1.c (ft_raster1_render): Ditto.
  4953. * src/sfnt/sfnt_dir_check: Compare `magic' with unsigned long
  4954. constant.
  4955. 2002-09-26 Detlef Würkner <TetiSoft@apg.lahn.de>
  4956. * builds/amiga/include/freetype/config/ftmodule.h: Updated.
  4957. 2002-09-25 David Turner <david@freetype.org>
  4958. * src/autohint/ahtypes.h (AH_HINT_METRICS): Disabling metrics
  4959. hinting in the auto-hinter. This produces much better anti-aliased
  4960. text.
  4961. * docs/CHANGES: Updating the changes documentation.
  4962. 2002-09-25 Anthony Fok <anthony@thizlinux.com>
  4963. * src/sfnt/ttcmap0.c (tt_cmap4_validate, tt_cmap4_char_index,
  4964. tt_cmap4_char_next): Added support for opens___.ttf (it contains a
  4965. charmap that uses offset=0xFFFFU instead of 0x0000 to indicate a
  4966. missing glyph).
  4967. 2002-09-21 Wolfgang Domröse <porthos.domroese@harz.de>
  4968. * src/truetype/ttdriver.c (Load_Glyph): Fourth parameter must be
  4969. FT_Int32.
  4970. * src/truetype/ttgload.c, src/truetype/ttgload.h (TT_Load_Glyph):
  4971. Ditto.
  4972. 2002-09-19 Wolfgang Domröse <porthos.domroese@harz.de>
  4973. More 16bit fixes.
  4974. * src/autohint/ahglobal.c (sort_values): Use FT_Pos for `swap'.
  4975. (ah_hinter_compute_widths): Use FT_Pos for `dist'.
  4976. Use AH_MAX_WIDTHS.
  4977. * src/autohint/ahglyph.c (ah_outline_scale_blue_edges): Use FT_Pos
  4978. for `delta'.
  4979. (ah_outline_compute_edges): Replace some ints with FT_Int and
  4980. FT_Pos.
  4981. (ah_test_extrema): Clean up code.
  4982. (ah_get_orientation): Use 4 FT_Int variables instead of FT_BBox to
  4983. hold indices.
  4984. * src/autohint/ahtypes.h (AH_SegmentRec): Change type of `score'
  4985. to FT_Pos.
  4986. 2002-09-19 Werner Lemberg <wl@gnu.org>
  4987. * builds/unix/config.guess, builds/unix/config.sub: Updated to
  4988. recent versions.
  4989. 2002-09-18 David Turner <david@freetype.org>
  4990. * src/base/ftobjs.c (FT_Library_Version): Bugfix.
  4991. * FreeType 2.1.3rc2 (release candidate 2) is released!
  4992. 2002-09-17 David Turner <david@freetype.org>
  4993. * include/freetype/freetype.h, include/freetype/ftimage.h,
  4994. include/freetype/ftstroker.h, include/freetype/ftsysio.h,
  4995. include/freetype/ftsysmem.h, include/freetype/ttnameid.h: Updating
  4996. the in-source documentation.
  4997. * src/tools/docmaker/tohtml.py: Updating the HTML formatter in the
  4998. DocMaker tool.
  4999. * src/tools/docmaker.py: Removed.
  5000. 2002-09-17 Werner Lemberg <wl@gnu.org>
  5001. More 16bit fixes.
  5002. * src/psaux/psobjs.c (reallocate_t1_table): Use FT_Long for
  5003. second parameter.
  5004. 2002-09-16 Werner Lemberg <wl@gnu.org>
  5005. 16bit fixes from Wolfgang Domröse.
  5006. * src/type1/t1parse.h (T1_ParserRec): Change type of `base_len'
  5007. and `private_len' to FT_Long.
  5008. * src/type1/t1parse.c (T1_Get_Private_Dict): Remove cast for
  5009. `private_len'.
  5010. * src/type1/t1load.c: Use FT_Int cast for most calls of T1_ToInt.
  5011. Use FT_PtrDist where appropriate.
  5012. (parse_encoding): Use FT_Long for `count' and `n'.
  5013. (read_binary_data): Use FT_Long* for second parameter.
  5014. * src/type1/t1afm.c (afm_atoindex): Use FT_PtrDist.
  5015. * src/cache/ftcsbits.c (ftc_sbit_node_load): Remove unused label.
  5016. * src/pshinter/pshalgo3.c (psh3_hint_align): Remove unused variable.
  5017. 2002-09-14 Werner Lemberg <wl@gnu.org>
  5018. Making ftgrays.c compile stand-alone again.
  5019. * include/freetype/ftimage.h: Include ft2build.h only if _STANDALONE_
  5020. isn't defined.
  5021. * src/smooth/ftgrays.c [_STANDALONE_]: Define ft_memset,
  5022. FT_BEGIN_HEADER, FT_END_HEADER.
  5023. (FT_MEM_ZERO): Define.
  5024. (TRaster) [GRAYS_USE_GAMMA]: Use `unsigned char' instead of FT_Byte.
  5025. (gray_render_span, gray_init_gamma): Don't use `FT_UInt'.
  5026. Don't cast with `FT_Byte'.
  5027. (grays_init_gamma): Don't use `FT_UInt'.
  5028. 2002-09-14 Werner Lemberg <wl@gnu.org>
  5029. * src/base/ftinit.c (FT_Add_Default_Modules): Improve error message.
  5030. * src/pcf/pcfdriver.c (PCF_Face_Done): Improve tracing message.
  5031. * include/freetype/config/ftoption.h (FT_MAX_MODULES): Increased
  5032. to 32.
  5033. 2002-09-10 Werner Lemberg <wl@gnu.org>
  5034. * builds/unix/configure.ac (version_info): Set to 9:2:3.
  5035. * builds/unix/configure: Regenerated.
  5036. * docs/VERSION.DLL: Updated.
  5037. 2002-09-09 David Turner <david@freetype.org>
  5038. * src/pshinter/pshalgo2.c (psh2_glyph_find_strong_points),
  5039. src/pshinter/pshalgo3.c (psh3_glyph_find_strong_points): Adding fix
  5040. to prevent segfault when hints are provided in an empty glyph.
  5041. * src/cache/ftccache.i (GEN_CACHE_LOOKUP) [FT_DEBUG_LEVEL_ERROR]:
  5042. Removed conditional code. This fixes a bug that prevented
  5043. compilation in debug mode of template instantiation.
  5044. * include/freetype/ftimage.h: Removed incorrect `zft_' definitions
  5045. and updated constants documentation comments.
  5046. * src/cff/cffparse.c (cff_parser_run): Fixed the CFF table loader.
  5047. It didn't accept empty arrays, and this prevented the loading of
  5048. certain fonts.
  5049. * include/freetype/freetype.h (FT_FaceRec): Updating documentation
  5050. comment. The `descender' value is always *negative*, not positive.
  5051. 2002-09-09 Owen Taylor <owen@redhat.com>
  5052. * src/pcf/pcfdriver.c (PCF_Glyph_Load): Fixing incorrect computation
  5053. of bitmap metrics.
  5054. 2002-09-08 David Turner <david@freetype.org>
  5055. Various updates to correctly support subpixel rendering.
  5056. * include/freetype/config/ftmodule.h: Add two renderers for LCD.
  5057. * src/base/ftobjs.c (FT_Load_Glyph): Updated.
  5058. * src/smooth/ftsmooth.c (ft_smooth_render_lcd,
  5059. ft_smooth_render_lcd_v): Set FT_PIXEL_MODE_LCD and
  5060. FT_PIXEL_MODE_LCD_V, respectively.
  5061. * include/freetype/cache/ftcimage.h (FTC_ImageTypeRec): New
  5062. structure.
  5063. Updated all users.
  5064. (FTC_ImageDesc): Removed.
  5065. (FTC_ImageCache_Lookup): Second parameter is now of type
  5066. `FTC_ImageType'.
  5067. Updated all users.
  5068. (FTC_IMAGE_DESC_COMPARE): Updated and renamed to...
  5069. (FTC_IMAGE_TYPE_COMPARE): This.
  5070. (FTC_IMAGE_DESC_HASH): Updated and renamed to...
  5071. (FTC_IMAGE_TYPE_HASH): This.
  5072. * include/freetype/cache/ftcsbits.h (FTC_SBitRec): Field `num_grays'
  5073. replaced with `max_grays'.
  5074. `pitch' is now FT_Short.
  5075. (FTC_SBitCache_Lookup): Second parameter is now of type
  5076. `FTC_ImageType'.
  5077. Updated all users.
  5078. * src/cache/ftcimage.c (FTC_ImageQueryRec, FTC_ImageFamilyRec):
  5079. Updated.
  5080. (ftc_image_node_init): Updated.
  5081. Moved code to convert type flags to load flags to...
  5082. (FTC_Image_Cache_Lookup): This function.
  5083. (ftc_image_family_init): Updated.
  5084. * src/cache/ftcsbits.c (FTC_SBitQueryRec, FTC_SBitFamilyRec):
  5085. Updated.
  5086. (ftc_sbit_node_load): Updated.
  5087. Moved code to convert type flags to load flags to...
  5088. (FTC_SBitCache_Lookup): This function.
  5089. * src/autohint/ahtypes.h (AH_HinterRec): Replace `no_*_hints' with
  5090. `do_*_snapping'.
  5091. Update all users (with negation).
  5092. * src/autohint/ahhint.c (ah_compute_stem_width): Fix threshold for
  5093. `dist' for `delta' < 40.
  5094. * src/pshinter/pshalgo3.h (PSH3_GlyphRec): Replace `no_*_hints' with
  5095. `do_*_snapping'.
  5096. Update all users (with negation).
  5097. * src/pshinter/pshalgo3.c (psh3_dimension_quantize_len): New
  5098. function.
  5099. (psh3_hint_align): Use it.
  5100. Improve hinting code.
  5101. [STRONGER]: Removed.
  5102. (STRONGER): Removed.
  5103. * include/freetype/freetype.h (FT_Set_Hint_Flags, FT_HINT_*):
  5104. Removed.
  5105. 2002-09-05 Werner Lemberg <wl@gnu.org>
  5106. * src/cid/cidobjs.c (CID_Size_Init): Renamed to...
  5107. (cid_size_init): This.
  5108. * src/psaux/psobjs.c (T1_Builder_Add_Point1): Renamed to...
  5109. (t1_builder_add_point1): This.
  5110. Updated all affected code.
  5111. * src/pshinter/pshalgo3.c (psh3_hint_align): Fix compiler warnings.
  5112. * src/type1/t1gload.c (T1_Compute_Max_Advance): Ditto.
  5113. 2002-09-04 David Turner <david@freetype.org>
  5114. * include/freetype/freetype.h: Corrected the definition of
  5115. ft_encoding_symbol to be FT_ENCODING_MS_SYMBOL (instead of
  5116. the erroneous FT_ENCODING_SYMBOL).
  5117. * builds/unix/unix-def.in (datadir): Initialize it (thanks to
  5118. Anthony Fok).
  5119. 2002-08-29 David Turner <david@freetype.org>
  5120. Slight modification to the Postscript hinter to slightly increase
  5121. the contrast of smooth hinting. This is very similar to what the
  5122. auto-hinter does when it comes to stem width computations. However,
  5123. it produces better results with well-hinted fonts.
  5124. * include/freetype/internal/psaux.h (T1_Decoder_FuncsRec): Add hint
  5125. mode to `init' member function.
  5126. (T1_DecoderRec): Add hint mode.
  5127. * include/freetype/internal/pshints (T1_Hints_ApplyFunc,
  5128. T2_Hints_ApplyFunc): Pass `hint_mode', not `hint_flags'.
  5129. * src/psaux/t1decode.c (t1_decoder_init): Add hint mode argument.
  5130. * src/pshinter/pshalgo1.c (ps1_hints_apply): Pass hint mode, not
  5131. hint flags.
  5132. * src/pshinter/pshalgo2.c (ps2_hints_apply): Ditto.
  5133. * src/pshinter/pshalgo3.c (ps3_hints_apply): Ditto.
  5134. (STRONGER): New macro.
  5135. (psh3_hint_align, psh3_hint_table_align_hints): Pass `glyph' instead
  5136. of `hint_flags'.
  5137. Implement announced changes.
  5138. * src/pshinter/pshalgo3.h (PSH3_GlyphRec): Add flags to control
  5139. vertical and horizontal hints and snapping.
  5140. * README, docs/CHANGES: Updating for the 2.1.3 release.
  5141. 2002-08-27 David Turner <david@freetype.org>
  5142. * Massive re-formatting changes to many, many source files. I don't
  5143. want to list them all here. The operations performed were all
  5144. logical transformations of the sources:
  5145. - trying to convert all enums and constants to CAPITALIZED_STYLE,
  5146. #with define definitions like
  5147. #define my_old_constants MY_NEW_CONSTANT
  5148. - big, big update of the documentation comments
  5149. * include/freetype/freetype.h, src/base/ftobjs.c,
  5150. src/smooth/ftsmooth.c, include/freetype/ftimage.h: Adding support
  5151. for LCD-optimized rendering though the new constants/enums:
  5152. FT_RENDER_MODE_LCD, FT_RENDER_MODE_LCD_V
  5153. FT_PIXEL_MODE_LCD, FT_PIXEL_MODE_LCD_V
  5154. This is still work in progress, don't expect everything to work
  5155. correctly though most of the features have been implemented.
  5156. * Adding new FT_LOAD_XXX flags, used to specify both hinting and
  5157. rendering targets:
  5158. FT_LOAD_TARGET_NORMAL :: anti-aliased hinting & rendering
  5159. FT_LOAD_TARGET_MONO :: monochrome bitmaps
  5160. FT_LOAD_TARGET_LCD :: horizontal RGB/BGR decimated
  5161. hinting & rendering
  5162. FT_LOAD_TARGET_LCD_V :: vertical RGB/BGR decimated
  5163. hinting & rendering
  5164. Note that FT_LOAD_TARGET_NORMAL is 0, which means that the default
  5165. behaviour of the font engine is _unchanged_.
  5166. * include/freetype/ftimage.h
  5167. (FT_Outline_{Move,Line,Conic,Cubic}To_Func): Renamed to...
  5168. (FT_Outline_{Move,Line,Conic,Cubic}ToFunc): This.
  5169. (FT_Raster_Span_Func): Renamed to ...
  5170. (FT_SpanFunc): This.
  5171. (FT_Raster_{New,Done,Reset,Set_Mode,Render}_Func): Renamed to ...
  5172. (FT_Raster_{New,Done,Reset,SetMode,Render}Func}: This.
  5173. Updated all affected code.
  5174. * include/freetype/ftrender.h
  5175. (FT_Glyph_{Init,Done,Transform,BBox,Copy,Prepare}_Func): Renamed
  5176. to ...
  5177. (FT_Glyph_{Init,Done,Transform,GetBBox,Copy,Prepare}Func): This.
  5178. (FTRenderer_{render,transform,getCBox,setMode}): Renamed to ...
  5179. (FT_Renderer_{RenderFunc,TransformFunc,GetCBoxFunc,SetModeFunc}):
  5180. This.
  5181. Updated all affected code.
  5182. * src/autohint/ahtypes.h (AH_Point, AH_Segment, AH_Edge, AH_Globals,
  5183. AH_Face_Globals, AH_Outline, AH_Hinter): These typedefs are now
  5184. pointers to the corresponding `*Rec' structures. All source files
  5185. have been updated accordingly.
  5186. * src/cff/cffgload.c (cff_decoder_init): Add hint mode as parameter.
  5187. * src/cff/cffgload.h (CFF_Decoder): Add `hint_mode' element.
  5188. * src/cid/cidgload.c (CID_Compute_Max_Advance): Renamed to...
  5189. (cid_face_compute_max_advance): This.
  5190. (CID_Load_Glyph): Renamed to...
  5191. (cid_slot_load_glyph): This.
  5192. * src/cid/cidload.c (CID_Open_Face): Renamed to...
  5193. (cid_face_open): This.
  5194. * src/cid/cidobjs.c (CID_GlyphSlot_{Done,Init}): Renamed to...
  5195. (cid_slot_{done,init}): This.
  5196. (CID_Size_{Get_Globals_Funcs,Done,Reset): Renamed to...
  5197. (cid_size_{get_globals_funcs,done,reset): This.
  5198. (CID_Face_{Done,Init}): Renamed to...
  5199. (cid_face_{done,init}): This.
  5200. (CID_Driver_{Done,Init}: Renamed to...
  5201. (cid_driver_{done,init}: This.
  5202. * src/cid/cidparse.c (CID_{New,Done}_Parser): Renamed to...
  5203. (cid_parser_{new,done}): This.
  5204. * src/cid/cidparse.h (CID_Skip_{Spaces,Alpha}): Renamed to...
  5205. (cid_parser_skip_{spaces,alpha}): This.
  5206. (CID_To{Int,Fixed,CoordArray,FixedArray,Token,TokenArray}): Renamed
  5207. to...
  5208. (cid_parser_to_{int,fixed,coord_array,fixed_array,token,token_array}):
  5209. This.
  5210. (CID_Load_{Field,Field_Table): Renamed to...
  5211. (cid_parser_load_{field,field_table}): This.
  5212. * src/cid/cidriver.c (CID_Get_Interface): Renamed to...
  5213. (cid_get_interface): This.
  5214. Updated all affected code.
  5215. * src/psaux/psobjs.c (PS_Table_*): Renamed to...
  5216. (ps_table_*): This.
  5217. (T1_Builder_*): Renamed to...
  5218. (t1_builder_*): This.
  5219. * src/psaux/t1decode.c (T1_Decoder_*): Renamed to...
  5220. (t1_decoder_*): This.
  5221. * src/psnames/psmodule.c (PS_*): Renamed to...
  5222. (ps_*): This.
  5223. Updated all affected code.
  5224. * src/sfnt/sfdriver (SFNT_Get_Interface): Renamed to...
  5225. (sfnt_get_interface): This.
  5226. * src/sfnt/sfobjs.c (SFNT_*): Renamed to...
  5227. (sfnt_*): This.
  5228. * src/sfnt/ttcmap.c (TT_CharMap_{Load,Free}): Renamed to...
  5229. (tt_face_{load,free}_charmap): This.
  5230. * src/sfnt/ttcmap0.c (TT_Build_CMaps): Renamed to...
  5231. (tt_face_build_cmaps): This.
  5232. * src/sfnt/ttload.c (TT_*): Renamed to...
  5233. (tt_face_*): This.
  5234. * src/sfnt/ttpost.c (TT_Post_Default_Names): Renamed to...
  5235. (tt_post_default_names): This.
  5236. (Load_*): Renamed to...
  5237. (load_*): This.
  5238. (TT_*): Renamed to...
  5239. (tt_face_*): This.
  5240. * src/sfnt/ttsbit.c (TT_*): Renamed to...
  5241. (tt_face_*): This.
  5242. ({Find,Load,Crop}_*): Renamed to...
  5243. ({find,load,crop}_*): This.
  5244. Updated all affected code.
  5245. * src/smooth/ftsmooth.c (ft_smooth_render): Renamed to...
  5246. (ft_smooth_render_generic): This.
  5247. Make function more generic by adding vertical and horizontal scaling
  5248. factors.
  5249. (ft_smooth_render, ft_smooth_render_lcd, ft_smooth_render_lcd_v):
  5250. New functions.
  5251. (ft_smooth_lcd_renderer_class, ft_smooth_lcdv_renderer_class): New
  5252. classes.
  5253. * src/truetype/ttobjs.c (TT_{Done,New}_GlyphZone): Renamed to...
  5254. (tt_glyphzone_{done,new}): This.
  5255. (TT_{Face,Size,Driver}_*): Renamed to...
  5256. (tt_{face,size,driver}_*): This.
  5257. * src/truetype/ttpload.c (TT_Load_Locations): Renamed to...
  5258. (tt_face_load_loca): This.
  5259. (TT_Load_Programs): Renamed to...
  5260. (tt_face_load_fpgm): This.
  5261. (TT_*): Renamed to...
  5262. (tt_face_*): This.
  5263. 2002-08-27 Werner Lemberg <wl@gnu.org>
  5264. * docs/VERSION.DLL: New file.
  5265. 2002-08-23 Graham Asher <graham.asher@btinternet.com>
  5266. * src/cff/cffgload.c (cff_operator_seac)
  5267. [FT_CONFIG_OPTION_INCREMENTAL]: Incremental fonts (actually not
  5268. incremental in the case of CFF but just using callbacks to get glyph
  5269. recipes) pass the character code, not the glyph index, to the
  5270. get_glyph_data function; they have no valid charset table.
  5271. * src/cff/cffload.c (cff_font_load): Removed special cases for
  5272. FT_CONFIG_OPTION_INCREMENTAL, which are no longer necessary; CFF
  5273. fonts provided via the incremental interface now have to conform
  5274. more closely to the CFF font format.
  5275. * src/cff/cffload.h (cff_font_load): Removed argument now unneeded.
  5276. * src/cff/cffobjs.c (cff_face_init): Changed call to cff_font_load
  5277. to conform with new signature.
  5278. 2002-08-22 David Turner <david@freetype.org>
  5279. * src/base/ftobject.c, src/base/ftsynth.c, src/base/ftstroker.c,
  5280. src/bdf/bdfdrivr.c: Removed compiler warnings.
  5281. 2002-08-21 Werner Lemberg <wl@gnu.org>
  5282. * src/pshinter/pshalgo3.c (psh3_glyph_compute_inflections,
  5283. psh3_glyph_compute_extrema, psh3_hint_table_find_strong_point): Fix
  5284. compiler warnings and resolve shadowing of local variables.
  5285. 2002-08-21 David Turner <david@freetype.org>
  5286. The automatic and Postscript hinter now automatically detect
  5287. inflection points in glyph outlines and treats them specially. This
  5288. is very useful to prevent nasty effect like the disappearing
  5289. diagonals of `S' and `s' in many, many fonts.
  5290. * src/autohint/ahtypes.h (ah_flag_inflection): New macro.
  5291. * src/autohint/ahangles.c (ah_angle_diff): New function.
  5292. * src/autohint/ahangles.h: Updated.
  5293. * src/autohint/ahglyph.c (ah_outline_compute_inflections): New
  5294. function.
  5295. (ah_outline_detect_features): Use it.
  5296. * src/autohint/ahhint.c (ah_hinter_align_strong_points)
  5297. [!AH_OPTION_NO_WEAK_INTERPOLATION]: Handle inflection.
  5298. * src/tools/docmaker/docmaker.py, src/tools/docmaker/utils.py,
  5299. src/tools/docmaker/tohtml.py: Updating the DocMaker tool.
  5300. * include/freetype/freetype.h: Changing the type of the `load_flags'
  5301. parameter from `FT_Int' to `FT_Int32', this in order to support more
  5302. options. This should only break binary and/or source compatibility
  5303. on 16-bit platforms (Atari?).
  5304. (FT_LOAD_NO_AUTOHINT): New macro.
  5305. * src/base/ftobjs.c (FT_Load_Glyph): Updated.
  5306. Handle FT_LOAD_NO_AUTOHINT.
  5307. (FT_Load_Char): Updated.
  5308. * src/pshinter/pshalgo3.c, src/base/ftobjs.c, src/base/ftobject.c,
  5309. src/autohint/ahglyph.c, include/freetype/freetype.h: Fixing typos
  5310. and removing compiler warnings.
  5311. 2002-08-20 Werner Lemberg <wl@gnu.org>
  5312. * src/truetype/ttgload.c (TT_Get_Metrics): Add guard for k = 0.
  5313. 2002-08-20 David Turner <david@freetype.org>
  5314. * src/pshinter/pshalgo1.c, src/pshinter/pshalgo2.c,
  5315. src/pshinter/pshglob.c, src/pshinter/pshrec.c,
  5316. src/autohint/ahmodule.c [DEBUG_HINTER]: Removing compiler warnings
  5317. (only used in development builds anyway).
  5318. Improve support of local extrema and stem edge points.
  5319. * src/pshinter/pshalgo3.h (PSH3_Hint_TableRec): Use PSH3_ZoneRec
  5320. for `zones'.
  5321. (PSH3_DIR_UP, PSH3_DIR_DOWN): Exchange values.
  5322. (PSH3_DIR_HORIZONTAL, PSH3_DIR_VERTICAL): New macros.
  5323. (PSH3_DIR_COMPARE, PSH3_DIR_IS_HORIZONTAL, PSH3_IS_VERTICAL): New
  5324. macros.
  5325. (PSH3_POINT_INFLEX): New enum.
  5326. (psh3_point_{is,set}_{off,inflex}): New macros.
  5327. (PSH3_POINT_{EXTREMUM,POSITIVE,NEGATIVE,EDGE_MIN,EDGE_MAX): New
  5328. enum values.
  5329. (psh3_point_{is,set}_{extremum,positive,negative,edge_min,edge_max}):
  5330. New macros.
  5331. (PSH3_PointRec): New members `flags2' and `org_v'.
  5332. (PSH3_POINT_EQUAL_ARG, PSH3_POINT_ANGLE): New macros.
  5333. * src/pshinter/pshalgo3.c [DEBUG_HINTER]: Removing compiler
  5334. warnings.
  5335. (COMPUTE_INFLEXS): New macro.
  5336. (psh3_hint_align): Simplify some basic arithmetic computations.
  5337. (psh3_point_is_extremum): Removed.
  5338. (psh3_glyph_compute_inflections) [COMPUTE_INFLEXS]: New function.
  5339. (psh3_glyph_init) [COMPUTE_INFLEXS]: Use it.
  5340. (psh3_glyph_compute_extrema): New function.
  5341. (PSH3_STRONG_THRESHOLD): Increased to 30.
  5342. (psh3_hint_table_find_strong_point): Improved.
  5343. (psh3_glyph_find_strong_points,
  5344. psh3_glyph_interpolate_strong_points): Updated.
  5345. (psh3_hints_apply): Use psh3_glyph_compute_extrema.
  5346. * test/gview.c (draw_ps3_hint, ps3_draw_control_points): New
  5347. functions.
  5348. Other small updates.
  5349. * Jamfile: Small updates.
  5350. 2002-08-18 Arkadiusz Miskiewicz <misiek@pld.ORG.PL>
  5351. * builds/unix/install.mk (install, uninstall): Add $(DESTDIR) to
  5352. make life easier for package maintainers.
  5353. 2002-08-18 Werner Lemberg <wl@gnu.org>
  5354. * src/pcf/pcfdriver.c (PCF_Glyph_Load): Fix computation of
  5355. horiBearingX.
  5356. * src/bdf/bdfdrivr.c (BDF_Glyph_Load): Fix computation of
  5357. horiBearingY.
  5358. 2002-08-16 George Williams <gww@silcom.com>
  5359. Add support for Apple composite glyphs.
  5360. * include/freetype/config/ftoption.h
  5361. (TT_CONFIG_OPTION_COMPONENT_OFFSET_SCALED): New macro.
  5362. * src/truetype/ttgload.c (OVERLAP_COMPOUND, SCALED_COMPONENT_OFFSET,
  5363. UNSCALED_COMPONENT_OFFSET): New macros for additional OpenType
  5364. glyph loading flags.
  5365. (load_truetype_glyph): Implement it.
  5366. 2002-08-16 Werner Lemberg <wl@gnu.org>
  5367. * src/cff/cffgload.c (cff_free_glyph_data),
  5368. src/cff/cffload.c (cff_font_load): Use FT_UNUSED.
  5369. 2002-08-15 Werner Lemberg <wl@gnu.org>
  5370. * src/base/ftglyph.c (FT_Glyph_To_Bitmap): Initialize `error'.
  5371. * src/sfnt/sfobjs.c (SFNT_Load_Face): Fix compiler warning.
  5372. 2002-08-15 Graham Asher <graham.asher@btinternet.com>
  5373. Implemented the incremental font loading system for the CFF driver.
  5374. Tested using the GhostScript-to-FreeType bridge (under development).
  5375. * src/cff/cffgload.c (cff_get_glyph_data, cff_free_glyph_data): New
  5376. functions.
  5377. (cff_operator_seac, cff_compute_max_advance, cff_slot_load): Use
  5378. them.
  5379. * src/cff/cffload.c (cff_font_load): Add `face' parameter.
  5380. Load charset and encoding only if there are glyphs.
  5381. [FT_CONFIG_OPTION_INCREMENTAL]: Incremental fonts don't need
  5382. character recipes.
  5383. * src/cff/cffload.h, src/cff/cffobjs.c: Updated.
  5384. * src/cid/cidgload.c (cid_load_glyph)
  5385. [FT_CONFIG_OPTION_INCREMENTAL]: Corrected the incremental font
  5386. loading implementation to use the new system introduced on
  5387. 2002-08-01.
  5388. 2002-08-06 Werner Lemberg <wl@gnu.org>
  5389. * src/cff/cffcmap.c: Remove compiler warnings.
  5390. * src/cache/ftccache.c, src/cache/ftccache.i,
  5391. src/pfr/pfrload.c, src/pfr/pfrgload.c: s/index/idx/.
  5392. * src/cff/cffload.c: s/select/fdselect/.
  5393. * src/raster/ftraster.c: s/wait/waiting/.
  5394. 2002-08-01 Graham Asher <graham.asher@btinternet.com>
  5395. * src/type1/t1load.c (T1_Open_Face): Tolerate a face with no
  5396. charstrings if there is an incremental loading interface. Type 1
  5397. faces supplied by PostScript interpreters like GhostScript will
  5398. typically not provide any charstrings at load time, so this is
  5399. essential if they are to work.
  5400. 2002-08-01 Graham Asher <graham.asher@btinternet.com>
  5401. Modified incremental loading interface to be closer to David's
  5402. preferences. The header freetype.h is not now affected, the
  5403. interface is specified via an FT_Parameter, the pointer to the
  5404. interface is hidden in an internal part of the face record, and all
  5405. the definitions are in ftincrem.h.
  5406. * include/freetype/freetype.h [FT_CONFIG_OPTION_INCREMENTAL]:
  5407. Removed.
  5408. * include/freetype/internal/ftobjs.h [FT_CONFIG_OPTION_INCREMENTAL]:
  5409. Include FT_INCREMENTAL_H.
  5410. (FT_Face_InternalRec) [FT_CONFIG_OPTION_INCREMENTAL]: Add
  5411. `incremental_interface'.
  5412. * src/base/ftobjs.c (open_face, FT_Open_Face)
  5413. [FT_CONFIG_OPTION_INCREMENTAL]: Updated.
  5414. * src/sfnt/sfobjs.c (SFNT_Load_Face) [FT_CONFIG_OPTION_INCREMENTAL]:
  5415. Updated.
  5416. * src/truetype/ttgload.c (load_truetype_glyph)
  5417. [FT_CONFIG_OPTION_INCREMENTAL]: Updated.
  5418. Free loaded glyph data properly.
  5419. (compute_glyph_metrics, TT_Load_Glyph)
  5420. [FT_CONFIG_OPTION_INCREMENTAL]: Updated.
  5421. * src/truetype/ttobjs.c (TT_Face_Init)
  5422. [FT_CONFIG_OPTION_INCREMENTAL]: Updated.
  5423. * src/type1/t1gload.c (T1_Parse_Glyph_And_Get_Char_String)
  5424. [FT_CONFIG_OPTION_INCREMENTAL]: Updated.
  5425. (T1_Parse_Glyph) [FT_CONFIG_OPTION_INCREMENTAL]: Updated.
  5426. Free loaded glyph data properly.
  5427. (T1_Load_Glyph): Updated.
  5428. [FT_CONFIG_OPTION_INCREMENTAL]: Free loaded glyph data properly.
  5429. 2002-07-30 David Turner <david@freetype.org>
  5430. * include/freetype/ftincrem.h: Adding new experimental header file
  5431. to demonstrate a `cleaner' API to support incremental font loading.
  5432. * include/freetype/config/ftheader.h (FT_INCREMENTAL_H): New macro.
  5433. * src/tools/docmaker/*: Adding new (more advanced) version of
  5434. the DocMaker tool, using Python's sophisticated regexps.
  5435. 2002-07-28 Werner Lemberg <wl@gnu.org>
  5436. s/ft_memset/FT_MEM_SET/.
  5437. s/FT_MEM_SET/FT_MEM_ZERO/ where appropriate.
  5438. 2002-07-27 Werner Lemberg <wl@gnu.org>
  5439. * src/sfnt/ttload.c (sfnt_dir_check): Make it work with TTCs.
  5440. 2002-07-26 Werner Lemberg <wl@gnu.org>
  5441. * src/truetype/ttgload.c (load_truetype_glyph)
  5442. [FT_CONFIG_OPTION_INCREMENTAL]: s/memset/ft_memset/.
  5443. * src/autohint/ahhint.c (ah_hint_edges_3): Fix compiler warning.
  5444. * src/cff/cffload.c (cff_encoding_load): Remove `memory' variable.
  5445. * src/cff/cffcmap.c (cff_cmap_encoding_init): Remove `psnames'
  5446. variable.
  5447. * src/truetype/ttgload.c (load_truetype_glyph): Remove statement
  5448. without effect.
  5449. * src/truetype/ttdriver (Get_Char_Index, Get_Next_Char): Removed.
  5450. * src/pshinter/pshalgo3.c (psh3_hint_table_record,
  5451. psh3_hint_table_init, psh3_hint_table_activate_mask): Fix error
  5452. message.
  5453. 2002-07-24 Graham Asher <graham.asher@btinternet.com>
  5454. * src/truetype/ttobjs.c: Fix for bug reported by Sven Neumann
  5455. [sven@gimp.org] on the FreeType development forum: `If
  5456. FT_CONFIG_OPTION_INCREMENTAL is undefined (this is the default), the
  5457. TrueType loader crashes in line 852 of src/truetype/ttgload.c when
  5458. it tries to access face->glyph_locations.'
  5459. 2002-07-18 Graham Asher <graham.asher@btinternet.com>
  5460. Added types and structures to support incremental typeface loading.
  5461. The FT_Incremental_Interface structure, defined in freetype.h, is
  5462. designed to be passed to FT_Open_Face to provide callback functions
  5463. to obtain glyph recipes and metrics, for fonts like those passed
  5464. from PostScript that do not necessarily provide all, or any, glyph
  5465. information, when first opened.
  5466. * include/freetype/config/ftoption.h (FT_CONFIG_OPTION_INCREMENTAL):
  5467. New configuration macro to enable incremental face loading. By
  5468. default it is not defined.
  5469. * include/freetype/freetype.h (FT_Basic_Glyph_Metrics,
  5470. FT_Get_Glyph_Data_Func, FT_Get_Glyph_Metrics_Func,
  5471. FT_Incremental_Interface_Funcs, FT_Incremental_Interface)
  5472. [FT_CONFIG_OPTION_INCREMENTAL]: New.
  5473. (FT_Open_Args, FT_FaceRec) [FT_CONFIG_OPTION_INCREMENTAL]: New field
  5474. `incremental_interface'.
  5475. (FT_Open_Flags) [FT_CONFIG_OPTION_INCREMENTAL]: New enum
  5476. `ft_open_incremental'.
  5477. * include/freetype/fttypes.h: Include FT_CONFIG_CONFIG_H.
  5478. (FT_Data): New structure to represent binary data.
  5479. * src/base/ftobjs.c (open_face) [FT_CONFIG_OPTION_INCREMENTAL]:
  5480. Add parameter for incremental loading.
  5481. (FT_Open_Face) [FT_CONFIG_OPTION_INCREMENTAL]: Use incremental
  5482. interface.
  5483. * src/truetype/ttgload.c (load_truetype_glyph)
  5484. [FT_CONFIG_OPTION_INCREMENTAL]: Added the incremental loading system
  5485. for the TrueType driver.
  5486. (compute_glyph_metrics): Return FT_Error.
  5487. [FT_CONFIG_OPTION_INCREMENTAL]: Check for overriding metrics.
  5488. (TT_Load_Glyph) [FT_CONFIG_OPTION_INCREMENTAL]: Don't look for
  5489. the glyph table while handling an incremental font.
  5490. Get glyph offset.
  5491. * src/truetype/ttobjs.c (TT_Face_Init)
  5492. [FT_CONFIG_OPTION_INCREMENTAL]: Added the incremental loading
  5493. system for the TrueType driver.
  5494. * src/cid/cidgload.c (cid_load_glyph)
  5495. [FT_CONFIG_OPTION_INCREMENTAL]: Added the incremental loading system
  5496. for the CID driver.
  5497. * src/sfnt/sfobjs.c (SFNT_Load_Face) [FT_CONFIG_OPTION_INCREMENTAL]:
  5498. Changes to support incremental Type 42 fonts: Assume a font has
  5499. glyphs if it has an incremental interface object.
  5500. * src/type1/t1gload.c (T1_Parse_Glyph): Renamed to...
  5501. (T1_Parse_Glyph_And_Get_Char_String): This.
  5502. [FT_CONFIG_OPTION_INCREMENTAL]: Added support for incrementally
  5503. loaded Type 1 faces.
  5504. (T1_Parse_Glyph): New function.
  5505. (T1_Load_Glyph): Updated.
  5506. 2002-07-17 David Turner <david@freetype.org>
  5507. Cleaning up the cache sub-system code; linear hashing is now the
  5508. default.
  5509. * include/freetype/cache/ftccache.h, src/cache/ftccache.i,
  5510. src/cache/ftccache.c [!FTC_CACHE_USE_LINEAR_HASHING]: Removed.
  5511. (FTC_CACHE_USE_LINEAR_HASHING): Removed also.
  5512. FT_CONFIG_OPTION_USE_CMAPS is now the default.
  5513. * include/freetype/internal/ftdriver.h (FT_Driver_ClassRec): Remove
  5514. `get_char_index' and `get_next_char'.
  5515. * include/freetype/config/ftoption.h,
  5516. include/freetype/internal/tttypes.h, src/base/ftobjs.c,
  5517. src/bdf/bdfdrivr.c, src/cff/cffobjs.c, src/pcf/pcfdrivr.c,
  5518. src/pfr/pfrdrivr.c, src/sfnt/sfobjs.c, src/sfnt/ttcmap0.c,
  5519. src/sfnt/ttcmap0.h, src/sfnt/ttload.c, src/type1/t1objs.c,
  5520. src/type42/t42objs.c, src/winfonts/winfnt.c
  5521. [!FT_CONFIG_OPTION_USE_CMAPS]: Removed. The new cmap code is now
  5522. the default.
  5523. * src/type42/t42objs.c (T42_CMap_CharIndex, T42_CMap_CharNext):
  5524. Removed.
  5525. * src/type42/t42objs.h: Updated.
  5526. * src/cid/cidriver.c (Cid_Get_Char_Index, Cid_Get_Next_Char):
  5527. Removed.
  5528. (t1cid_driver_class): Updated.
  5529. * src/truetype/ttdriver.c (tt_driver_class): Updated.
  5530. * src/type1/t1driver.c (Get_Char_Index, Get_Next_Char): Removed
  5531. (t1_driver_class): Updated.
  5532. * src/type42/t42drivr.c (t42_driver_class): Updated.
  5533. * src/base/ftobjs.c (open_face): Select Unicode cmap by default.
  5534. * src/sfnt/ttload.c (TT_Load_SFNT_Header): Fixed a recent bug that
  5535. prevented OpenType fonts to be recognized by FreeType.
  5536. 2002-07-11 David Turner <david@freetype.org>
  5537. Changing the SFNT loader to check for SFNT-based font files
  5538. differently. We now ignore the range `helper' fields and check the
  5539. `head' table's magic number instead.
  5540. * include/freetype/internal/tttypes.h (SFNT_HeaderRec): Add `offset'
  5541. field.
  5542. * src/sfnt/ttload.c (sfnt_dir_check): New function.
  5543. (TT_Load_SFNT_HeaderRec): Renamed to...
  5544. (TT_Load_SFNT_Header): This.
  5545. Implement new functionality.
  5546. * src/sfnt/ttload.h: Updated.
  5547. * src/sfnt/sfdriver.c (sfnt_interface): Updated.
  5548. * src/base/ftobject.c, src/base/fthash.c: Updated object sub-system
  5549. and dynamic hash table implementation (still experimental, don't
  5550. use).
  5551. * include/freetype/internal/fthash.h: Updated.
  5552. * include/freetype/internal/ftobjs.h (FT_LibraryRec): New member
  5553. `meta_class'.
  5554. Fixing a bug in the Type 1 loader that prevented valid font bounding
  5555. boxes to be loaded from multiple master fonts.
  5556. * include/freetype/t1tables.h (PS_BlendRec): Add `bboxes' field.
  5557. * include/freetype/internal/psaux.h (T1_FieldType): Add
  5558. `T1_FIELD_TYPE_BBOX'.
  5559. (T1_FieldLocation): Add `T1_FIELD_LOCATION_BBOX'.
  5560. (T1_FIELD_BBOX): New macro.
  5561. * src/psaux/psobjs.c (PS_Parser_LoadField): Handle T1_FIELD_TYPE_BBOX.
  5562. * src/type1/t1load.c (t1_allocate_blend): Create blend->bboxes.
  5563. (T1_Done_Blend): Free blend->bboxes.
  5564. (t1_load_keyword): Handle T1_FIELD_LOCATION_BBOX.
  5565. (parse_font_bbox): Commented out.
  5566. (t1_keywords): Comment out `parse_font_bbox'.
  5567. * src/type1/t1tokens.h: Define `FontBBox' field.
  5568. 2002-07-10 David Turner <david@freetype.org>
  5569. * src/cff/cffobjs.c: Small fix to select the Unicode charmap by
  5570. default when needed.
  5571. Small fix to allow OpenType fonts to support Adobe charmaps when
  5572. needed.
  5573. * src/cff/cffcmap.c, src/cff/cffcmap.h: New files to support
  5574. charmaps for CFF fonts.
  5575. * src/cff/cff.c, src/cff/Jamfile, src/cff/rules.mk: Updated.
  5576. * include/freetype/internal/cfftypes.h (CFF_EncodingRec): Use
  5577. fixed-length arrays for `sids' and `codes'. Add `count' member.
  5578. (CFF_FontRec): Add `psnames' member.
  5579. * src/cff/cffdrivr.c, src/cff/cffload.c, src/cff/cffload.h,
  5580. src/cff/cffobjs.c, src/cff/cffobjs.h, src/cff/cffparse.c,
  5581. src/cffparse.h, src/cff/cffgload.c, src/cff/cffgload.h: Adding
  5582. support for CFF charmaps, reformatting the sources, and removing
  5583. some bugs in the Encoding and Charset loaders.
  5584. Many fonts renamed to use lowercase only:
  5585. CFF_Builder_Init -> cff_builder_init
  5586. CFF_Builder_Done -> cff_builder_done
  5587. CFF_Init_Decoder -> cff_decoder_init
  5588. CFF_Parse_CharStrings -> cff_decoder_parse_charstrings
  5589. CFF_Load_Glyph -> cff_slot_load
  5590. CFF_Init_Decoder -> cff_decoder_init
  5591. CFF_Prepare_Decoder -> cff_decoder_prepare
  5592. CFF_Get_Standard_Encoding -> cff_get_standard_encoding
  5593. CFF_Access_Element -> cff_index_access_element
  5594. CFF_Forget_Element -> cff_index_forget_element
  5595. CFF_Get_Name -> cff_index_get_name
  5596. CFF_Get_String -> cff_index_get_sid_string
  5597. CFF_Get_FD -> cff_fd_select_get
  5598. CFF_Done_Charset -> cff_charset_done
  5599. CFF_Load_Charset -> cff_charset_load
  5600. CFF_Done_Encoding -> cff_encoding_done
  5601. CFF_Load_Encoding -> cff_encoding_load
  5602. CFF_Done_SubFont -> cff_subfont_done
  5603. CFF_Load_Font -> cff_font_load
  5604. CFF_Done_Font -> cff_font_done
  5605. CFF_Size_Get_Globals_Funcs -> cff_size_get_globals_funcs
  5606. CFF_Size_Done -> cff_size_done
  5607. CFF_Size_Init -> cff_size_init
  5608. CFF_Size_Reset -> cff_size_reset
  5609. CFF_GlyphSlot_Done -> cff_slot_done
  5610. CFF_GlyphSlot_Init -> cff_slot_init
  5611. CFF_StrCopy -> cff_strcpy
  5612. CFF_Face_Init -> cff_face_init
  5613. CFF_Face_Done -> cff_face_done
  5614. CFF_Driver_Init -> cff_driver_init
  5615. CFF_Driver_Done -> cff_driver_done
  5616. CFF_Parser_Init -> cff_parser_init
  5617. CFF_Parser_Run -> cff_parser_run
  5618. add_point -> cff_builder_add_point
  5619. add_point1 -> cff_builder_add_point1
  5620. add_contour -> cff_builder_add_contour
  5621. close_contour -> cff_builder_close_contour
  5622. cff_explicit_index -> cff_index_get_pointers
  5623. 2002-07-09 Owen Taylor <owen@redhat.com>
  5624. * src/pshinter/pshglob.c (psh_globals_new): Fixed a bug that
  5625. prevented the hinter from using correct standard width and height
  5626. values, resulting in hinting bugs with certain fonts (e.g. Utopia).
  5627. 2002-07-07 David Turner <david@freetype.org>
  5628. * src/base/ftglyph.c (FT_Glyph_To_Bitmap): Added code to return
  5629. successfully when the function is called with a bitmap glyph (the
  5630. previous code simply returned with an error).
  5631. * docs/DEBUG.TXT: Adding debugging support documentation.
  5632. * src/base/ftdebug.c (ft_debug_init), builds/win32/ftdebug.c
  5633. (ft_debug_init), builds/amiga/src/ftdebug.c (ft_debug_init): Changed
  5634. the syntax of the FT2_DEBUG environment variable used to control
  5635. debugging output (i.e. logging and error messages). It must now
  5636. look like:
  5637. any:6 memory:4 io:3 or
  5638. any:6,memory:4,io:3 or
  5639. any:6;memory:4;io:3
  5640. 2002-07-07 Owen Taylor <owen@redhat.com>
  5641. * src/pshinter/pshglob.c (psh_blues_snap_stem): Adding support for
  5642. blue fuzz.
  5643. * src/pshinter/pshglob.h (PSH_BluesRec): Add `blue_fuzz' field.
  5644. * src/type1/t1load.c (T1_Open_Face): Initialize `blue_fuzz'.
  5645. Adding support for hinter-specific bit flags, and the new
  5646. FT_Set_Hint_Flags high-level API.
  5647. * include/freetype/freetype.h (FT_Set_Hint_Flags): New function.
  5648. (FT_HINT_NO_INTEGER_STEM, FT_HINT_NO_HSTEM_ALIGN,
  5649. FT_HINT_NO_VSTEM_ALIGN): New macros.
  5650. * include/freetype/internal/ftobjs.h (FT_Face_InternalRec): Add
  5651. `hint_flags' member.
  5652. * src/base/ftobjs.c (FT_Set_Hint_Flags): New function.
  5653. * include/freetype/internal/psaux.h (T1_DecoderRec): Add `hint_flags'
  5654. member.
  5655. * include/freetype/internal/pshints.h (T1_Hints_ApplyFunc,
  5656. T2_Hints_ApplyFunc): Add parameter to pass hint flags.
  5657. * src/psaux/t1decode.c (T1_Decoder_Parse_Charstrings,
  5658. T1_Decoder_Init): Use decoder->hint_flags.
  5659. * src/cff/cffgload.h (CFF_Builder): Add `hint_flags' field.
  5660. * src/cff/cffgload.c (CFF_Builder_Init): Set builder->hint_flags.
  5661. (CFF_Parse_CharStrings): Updated.
  5662. * src/pshinter/pshalgo1.c (ps1_hints_apply): Add parameter to handle
  5663. hint flags (unused).
  5664. * src/pshinter/pshalgo1.h: Updated.
  5665. * src/pshinter/pshalgo2.c (ps2_hints_apply): Add parameter to handle
  5666. hint flags (unused).
  5667. * src/pshinter/pshalgo2.h: Updated.
  5668. * src/pshinter/pshalgo3.c (ps3_hints_apply): Add parameter to handle
  5669. hint flags.
  5670. * src/pshinter/pshalgo3.h: Updated.
  5671. 2002-07-04 David Turner <david@freetype.org>
  5672. * src/pfr/pfrobjs.c (pfr_slot_load): Fixed a small bug that returned
  5673. incorrect advances when the outline resolution was different from
  5674. the metrics resolution.
  5675. * src/autohint/ahhint.c: Removing compiler warnings.
  5676. * src/autohint/ahglyph.c: s/FT_MEM_SET/FT_ZERO/ where appropriate.
  5677. (ah_outline_link_segments): Slight improvements to the serif
  5678. detection code. More work is needed though.
  5679. 2002-07-03 David Turner <david@freetype.org>
  5680. Small improvements to the automatic hinter. Uneven stem-widths have
  5681. now disappeared and everything looks much better, even if there are
  5682. still issues with serifed fonts.
  5683. * src/autohint/ahtypes.h (AH_Globals): Added `stds' array.
  5684. * src/autohint/ahhint.c (OPTIM_STEM_SNAP): New #define.
  5685. (ah_snap_width): Commented out.
  5686. (ah_align_linked_edge): Renamed to...
  5687. (ah_compute_stem_width): This.
  5688. Don't allow uneven stem-widths.
  5689. (ah_align_linked_edge): New function.
  5690. (ah_align_serifed_edge): Don't strengthen serifs.
  5691. (ah_hint_edges_3, ah_hinter_scale_globals): Updated.
  5692. 2002-07-03 Owen Taylor <owen@redhat.com>
  5693. Adding new algorithm based on Owen Taylor's recent work.
  5694. * src/pshinter/pshalgo3.c, src/pshinter/pshalgo3.h: New files.
  5695. * src/pshinter/pshalgo.h: Updated.
  5696. Use pshalgo3 by default.
  5697. * src/pshinter/pshinter.c: Include pshalgo3.c.
  5698. * src/pshinter/Jamfile, src/pshinter/rules.mk: Updated.
  5699. 2002-07-01 Owen Taylor <owen@redhat.com>
  5700. * src/pshinter/pshalgo2.c (psh2_glyph_find_strong_points): Fix a bug
  5701. where, if a glyph has more than hint mask, the second mask gets
  5702. applied to points that should have been covered by the first mask.
  5703. 2002-07-01 Keith Packard <keithp@keithp.com>
  5704. * src/sfnt/ttcmap0.c (tt_cmap8_char_next, tt_cmap12_char_next):
  5705. Fixing the cmap 8 and 12 parsing routines.
  5706. 2002-07-01 David Turner <david@freetype.org>
  5707. * src/base/ftsynth.c: Include FT_TRIGONOMETRY_H.
  5708. (FT_Outline_Embolden): Renamed to...
  5709. (FT_GlyphSlot_Embolden): This.
  5710. Updated to new trigonometric functions.
  5711. (FT_Outline_Oblique): Renamed to...
  5712. (FT_GlyphSlot_Oblique): This.
  5713. (ft_norm): Removed.
  5714. * include/freetype/ftsynth.h: Updated.
  5715. 2002-06-26 David Turner <david@freetype.org>
  5716. * include/freetype/internal/ftobject.h: Updating the object
  5717. sub-system definitions (still experimental).
  5718. * src/base/fthash.c (ft_hash_remove): Fixing a small reallocation
  5719. bug.
  5720. * src/base/fttrigon.c (FT_Vector_From_Polar, FT_Angle_Diff): New
  5721. functions.
  5722. * include/freetype/fttrigon.h: Updated.
  5723. Adding path stroker component (work in progress).
  5724. * include/freetype/ftstroker.h, src/base/ftstroker.c: New files.
  5725. * src/base/Jamfile: Updated.
  5726. * include/freetype/config/ftheader.h (FT_STROKER_H): New macro.
  5727. * src/truetype/ttgload.c (TT_Load_Composite_Glyph),
  5728. src/base/ftoutln.c (FT_Vector_Transform): Fixed Werner's latest fix.
  5729. FT_Vector_Transform wasn't buggy, the TrueType composite loader was.
  5730. 2002-06-24 Werner Lemberg <wl@gnu.org>
  5731. * include/freetype/freetype.h (FREETYPE_PATCH): Set to 3.
  5732. 2002-06-21 David Turner <david@freetype.org>
  5733. * Version 2.1.2 released.
  5734. =========================
  5735. 2002-06-21 Roberto Alameda <ojancano@geekmail.de>.
  5736. * include/freetype/internal/t42types.h (T42_Font): Removed since
  5737. it is already in t42objs.h.
  5738. (T42_Face): Use T1_FontRec.
  5739. * src/base/fttype1.c (FT_Get_PS_Font_Info): Updated.
  5740. (FT_Has_PS_Glyph_Names): Check for type42 driver name also.
  5741. * src/type42/t42objs.h: Include FT_INTERNAL_TYPE42_TYPES_H.
  5742. (T42_Face): Removed since it is already in t42types.h.
  5743. 2002-06-21 Detlef Würkner <TetiSoft@apg.lahn.de>
  5744. * src/pfrgload.c (pfr_glyph_load_compound): Fix loading of composite
  5745. glyphs.
  5746. 2002-06-21 Sven Neumann <sven@convergence.de>
  5747. * src/pfr/pfrtypes.h (PFR_KernPair): New structure.
  5748. (PFR_PhyFont): Use it.
  5749. (PFR_KernFlags): New enumeration.
  5750. * src/pfr/pfrload.c (pfr_extra_item_load_kerning_pairs): New
  5751. function.
  5752. (pfr_phy_font_extra_items): Use it.
  5753. (pfr_phy_font_done): Updated.
  5754. * src/pfr/pfrobjs.c (pfr_face_init): Set kerning flag conditionally.
  5755. (pfr_face_get_kerning): New function.
  5756. * src/pfr/pfrobjs.h: Updated.
  5757. * src/pfr/pfrdrivr.c (pfr_driver_class): Updated.
  5758. 2002-06-21 David Turner <david@freetype.org>
  5759. * README, docs/CHANGES: Preparing the 2.1.2 release.
  5760. 2002-06-19 Detlef Würkner <TetiSoft@apg.lahn.de>
  5761. * src/base/fttype1.c: Include FT_INTERNAL_TYPE42_TYPES_H.
  5762. (t1_face_check_cast): Removed.
  5763. (FT_Get_PS_Font_Info): Make it work with CID and Type 42 drivers
  5764. also.
  5765. 2002-06-19 Sebastien BARRE <http://barre.nom.fr/contact.html#email>
  5766. * src/type42/t42parse.c (t42_parse_sfnts): Fix compiler warning.
  5767. 2002-06-19 Werner Lemberg <wl@gnu.org>
  5768. * src/base/ftoutln.c (FT_Vector_Transform): Fix serious typo
  5769. (xy <-> yx).
  5770. * src/truetype/ttgload.c (load_truetype_glyph): Replace `|' with
  5771. `||' to make code easier to read.
  5772. 2002-06-18 Roberto Alameda <ojancano@geekmail.de>.
  5773. * src/type42/t42objs.c (t42_check_size_change): Removed.
  5774. (T42_Size_SetChars, T42_Size_SetPixels): Use FT_Activate_Size
  5775. instead.
  5776. (T42_GlyphSlot_Load): Remove call to t42_check_size_change.
  5777. 2002-06-18 Detlef Würkner <TetiSoft@apg.lahn.de>
  5778. * src/psaux/t1cmap.c (t1_cmap_custom_char_index,
  5779. t1_cmap_custom_char_next): Fix index computation -- indices start
  5780. with 0 and not with cmap->first.
  5781. Provide default charmaps.
  5782. * src/bdf/bdfdrivr.c (BDF_Face_Init), src/pcf/pcfdriver.c
  5783. (PCF_Face_Init), src/pfr/pfrobjs.c (pfr_face_init),
  5784. src/type1/t1objs (T1_Face_Init), src/winfonts/winfnt.c
  5785. (FNT_Face_Init): Implement it.
  5786. 2002-06-17 Sven Neumann <sven@gimp.org>
  5787. * src/pfr/pfrobjs.c (pfr_face_init): Fix typo.
  5788. 2002-06-16 Leonard Rosenthol <leonardr@lazerware.com>
  5789. Updated Win32/VC++ projects to include the new PFR driver.
  5790. * builds/win32/visualc/freetype.dsp: Updated.
  5791. 2002-06-16 Anthony Fok <fok@debian.org>
  5792. Install freetype2.m4.
  5793. * builds/unix/install.mk (install, uninstall): Handle it.
  5794. 2002-06-16 Detlef Würkner <TetiSoft@apg.lahn.de>
  5795. Same fix for PFR driver.
  5796. * src/pfr/pfrcmap.c (pfr_cmap_char_index, pfr_cmap_char_next):
  5797. Increase return value by 1.
  5798. * src/pfr/pfrobjs.c (pfr_slot_load): Decrease index by 1.
  5799. 2002-06-15 Detlef Würkner <TetiSoft@apg.lahn.de>
  5800. Fix glyph indices to make index zero always the undefined glyph.
  5801. * src/bdf/bdfdrivr.c (bdf_cmap_init): Don't decrease
  5802. cmap->num_encodings.
  5803. (bdf_cmap_char_index, bdf_cmap_char_next, BDF_Get_Char_Index):
  5804. Increase result by 1 for normal cases.
  5805. (BDF_Glyph_Load): Decrease index by 1.
  5806. * src/pcf/pcfdriver.c (pcf_cmap_char_index, pcf_cmap_char_next,
  5807. PCF_Char_Get_Index): Increase result by 1 for normal cases.
  5808. (PCF_Glyph_Load): Decrease index by 1.
  5809. * src/pcf/pcfread.c (pcf_get_encodings): Don't decrease j for
  5810. allocating `encoding'.
  5811. * src/base/ftobjs.c (FT_Load_Glyph, FT_Get_Glyph_Name): Fix
  5812. bounding tests.
  5813. 2002-06-14 Detlef Würkner <TetiSoft@apg.lahn.de>
  5814. Add new cmap support to BDF driver.
  5815. * src/bdf/bdfdrivr.c (BDF_CMapRec) [FT_CONFIG_OPTION_USE_CMAPS]:
  5816. New structure.
  5817. (bdf_cmap_init, bdf_cmap_done, bdf_cmap_char_index,
  5818. bdf_cmap_char_next) [FT_CONFIG_OPTION_USE_CMAPS]: New functions.
  5819. (BDF_Get_Char_Index) [!FT_CONFIG_OPTION_USE_CMAPS]: Use only
  5820. conditionally.
  5821. (BDF_Face_Init): Handle `AVERAGE_WIDTH' and `POINT_SIZE' keywords.
  5822. Implement new cmap handling.
  5823. (bdf_driver_class): Updated.
  5824. 2002-06-14 Werner Lemberg <wl@gnu.org>
  5825. * Makefile, configure, */*.mk, builds/unix/unix-def.in,
  5826. docs/CHANGES, docs/INSTALL: s/TOP/TOP_DIR/.
  5827. 2002-06-12 Werner Lemberg <wl@gnu.org>
  5828. * src/bdf/bdflib.c: s/FT_Short/short/ for consistency.
  5829. 2002-06-11 David Turner <david@freetype.org>
  5830. * builds/win32/ftdebug.c: Added a missing #endif.
  5831. * src/sfnt/ttload.c, src/bdf/bdflib.c: Removing compiler warnings.
  5832. Removed the bug in Type 42 driver that prevented un-hinted outlines
  5833. to be loaded.
  5834. * src/type42/t42objs.c (T42_Face_Init): Call FT_Done_Size.
  5835. (T42_Size_Init): Call FT_Activate_Size.
  5836. (t42_check_size_change): New function.
  5837. (T42_Size_SetChars, T42_Size_SetPixels): Use it.
  5838. (ft_glyphslot_clear): Replace FT_MEM_SET with FT_ZERO.
  5839. (T42_GlyphSlot_Load): Use t42_check_size_change.
  5840. Initialize more fields of `glyph'.
  5841. * builds/win32/visualc/freetype.dsp: Updated.
  5842. 2002-06-09 David Turner <david@freetype.org>
  5843. * Version 2.1.1 released.
  5844. =========================
  5845. 2002-06-08 Juliusz Chroboczek <jch@pps.jussieu.fr>
  5846. * include/freetype/internal/ftobjs.h, src/autohint/ahglyph.c,
  5847. src/base/ftobjs.c, src/sfnt/ttcmap0.c, src/smooth/ftgrays.c: Don't
  5848. use `setjmp', `longjmp', and `jmp_buf' but `ft_setjmp', `ft_longjmp',
  5849. and `ft_jmp_buf'.
  5850. Removed direct references to <stdio.h> and <setjmp.h> when
  5851. appropriate, to eventually replace them with a
  5852. FT_CONFIG_STANDARD_LIBRARY_H. Useful for the XFree86 Font Server
  5853. backend based on FT2.
  5854. * src/base/fttype1.c (FT_Has_PS_Glyph_Names): Fix return value.
  5855. 2002-06-08 David Turner <david@freetype.org>
  5856. * src/pcf/pcfdriver.c (pcf_cmap_char_next): Fixed a bug that caused
  5857. the function to return invalid values.
  5858. * src/cache/ftccache.i: Removing a typo that prevented
  5859. the source's compilation.
  5860. * src/cache/ftccache.c (ftc_node_hash_unlink): Fixed a
  5861. bug that caused nasty memory overwrites. The hash table's
  5862. buckets array wasn't correctly resized when shrunk.
  5863. 2002-06-08 Detlef Würkner <TetiSoft@apg.lahn.de>
  5864. * builds/amiga/smakefile, builds/amiga/makefile: Updated.
  5865. 2002-06-08 Werner Lemberg <wl@gnu.org>
  5866. * src/cache/ftccache.c (ftc_node_hash_unlink, ftc_node_hash_link)
  5867. [FTC_CACHE_USE_LINEAR_HASHING]: Fix returned error code.
  5868. Fix debugging messages.
  5869. * src/cache/ftccache.i (GEN_CACHE_LOOKUP): Move declaration of
  5870. `family' and `hash' up to make it compilable with g++.
  5871. * src/type42/t42error.h: New file.
  5872. * src/type42/t42drivr.c, src/type42/t42objs.c,
  5873. src/type42/t42parse.c: Use t42 error codes.
  5874. * src/type42/rules.mk: Updated.
  5875. * src/base/ftnames.c: Include FT_INTERNAL_STREAM_H.
  5876. 2002-06-08 David Turner <david@freetype.org>
  5877. * src/cache/ftccmap.c: GEN_CACHE_FAMILY_COMPARE,
  5878. GEN_CACHE_NODE_COMPARE, GEN_CACHE_LOOKUP) [FTC_CACHE_USE_INLINE]:
  5879. New macros.
  5880. (ftc_cmap_cache_lookup) [!FTC_CACHE_USE_INLINE]: Typedef to
  5881. ftc_cache_lookup.
  5882. (FTC_CMapCache_Lookup): Updated.
  5883. Adding various experimental optimizations to the cache manager.
  5884. * include/freetype/cache/ftccache.h (FTC_CACHE_USE_INLINE,
  5885. FTC_CACHE_USE_LINEAR_HASHING): New options.
  5886. (FTC_CacheRec) [FTC_CACHE_USE_LINEAR_HASHING]: New elements `p',
  5887. `mask', and `slack'.
  5888. * src/cache/ftccache.c (FTC_HASH_MAX_LOAD, FTC_HASH_MIN_LOAD,
  5889. FTC_HASH_SUB_LOAD) [FTC_CACHE_USE_LINEAR_HASHING,
  5890. FTC_HASH_INITIAL_SIZE]: New macros.
  5891. (ftc_node_mru_link, ftc_node_mru_up): Optimized.
  5892. (ftc_node_hash_unlink, ftc_node_hash_link)
  5893. [FTC_CACHE_USE_LINEAR_HASHING]: New variants.
  5894. (FTC_PRIMES_MIN, FTC_PRIMES_MAX, ftc_primes, ftc_prime_closest,
  5895. FTC_CACHE_RESIZE_TEST, ftc_cache_resize)
  5896. [!FTC_CACHE_USE_LINEAR_HASHING]: Define it conditionally.
  5897. (ftc_cache_init, ftc_cache_clear) [FTC_CACHE_USE_LINEAR_HASHING]:
  5898. Updated.
  5899. (ftc_cache_lookup) [FTC_CACHE_USE_LINEAR_HASHING]: Implement it.
  5900. * src/cache/ftccache.i: New file.
  5901. * src/cache/ftcsbits.c (GEN_CACHE_FAMILY_COMPARE,
  5902. GEN_CACHE_NODE_COMPARE, GEN_CACHE_LOOKUP) [FTC_CACHE_USE_INLINE]:
  5903. New macros.
  5904. (ftc_sbit_cache_lookup) [!FTC_CACHE_USE_INLINE]: Typedef to
  5905. ftc_cache_lookup.
  5906. (FTC_SBitCache_Lookup): Updated.
  5907. * src/type42/t42parse.c: Removing duplicate function.
  5908. 2002-06-07 Graham Asher <graham.asher@btinternet.com>
  5909. * src/base/ftobjs.c (FT_Render_Glyph_Internal): Changed definition
  5910. from FT_EXPORT_DEF to FT_BASE_DEF.
  5911. 2002-06-07 David Turner <david@freetype.org>
  5912. Fixed the bug that prevented the correct display of fonts with
  5913. `ftview'.
  5914. * src/type42/t42drivr.c: Split into...
  5915. * src/type42/t42drivr.h, src/type42/t42parse.c,
  5916. src/type42/t42parse.h, src/type42/t42objs.h, src/type42/t42objs.c,
  5917. src/type42/type42.c: New files.
  5918. (t42_get_glyph_name, t42_get_ps_name, t42_get_name_index): Use
  5919. `face->type1'.
  5920. (Get_Interface): Renamed to...
  5921. (T42_Get_Interface): This.
  5922. Updated.
  5923. (T42_Open_Face, T42_Face_Done): Updated.
  5924. (T42_Face_Init): Add new cmap support.
  5925. Updated.
  5926. (T42_Driver_Init, T42_Driver_Done, T42_Size_Init, T42_Size_Done,
  5927. T42_GlyphSlot_Init, T42_GlyphSlot_Done): Updated.
  5928. (Get_Char_Index, Get_Next_Char): Renamed to...
  5929. (T42_CMap_CharIndex, T42_CMap_CharNext): This.
  5930. Updated.
  5931. (T42_Char_Size, T42_Pixel_Size): Renamed to...
  5932. (T42_Size_SetChars, T42_Size_SetPixels): This.
  5933. (T42_Load_Glyph): Renamed to...
  5934. (T42_GlyphSlot_Load): This.
  5935. (t42_init_loader, t42_done_loader): Renamed to...
  5936. (t42_loader_init, t42_loader_done): This.
  5937. (T42_New_Parser, T42_Finalize_Parser): Renamed to...
  5938. (t42_parser_init, t42_parser_done): This.
  5939. (parse_dict): Renamed to...
  5940. (t42_parse_dict): This.
  5941. (is_alpha, is_space, hexval): Renamed to...
  5942. (t42_is_alpha, t42_is_space, t42_hexval): This.
  5943. (parse_font_name, parse_font_bbox, parse_font_matrix,
  5944. parse_encoding, parse_sfnts, parse_charstrings, parse_dict):
  5945. Renamed to...
  5946. (t42_parse_font_name, t42_parse_font_bbox, t42_parse_font_matrix,
  5947. t42_parse_encoding, t42_parse_sfnts, t42_parse_charstrings,
  5948. t42_parse_dict): This.
  5949. Updated.
  5950. (t42_keywords): Updated.
  5951. * src/type42/Jamfile, src/type42/descrip.mms: Updated.
  5952. 2002-06-03 Werner Lemberg <wl@gnu.org>
  5953. Add 8bpp support to BDF driver.
  5954. * src/bdf/bdflib.c (_bdf_parse_start): Handle 8bpp.
  5955. * src/bdf/bdfdrivr.c (BDF_Glyph_Load): Ditto.
  5956. * src/bdf/README: Updated.
  5957. 2002-06-02 Detlef Würkner <TetiSoft@apg.lahn.de>
  5958. * src/pfr/pfrload.c (pfr_phy_font_done): Free `blue_values' array.
  5959. 2002-05-29 Detlef Würkner <TetiSoft@apg.lahn.de>
  5960. * src/bdf/bdflib.c (_bdf_readstream): Allocate `buf' dynamically.
  5961. (_bdf_parse_glyphs): Use correct size for allocating
  5962. `font->unencoded'.
  5963. (bdf_load_font): Free array conditionally.
  5964. Return proper error code in case of failure.
  5965. * src/bdf/bdfdrivr.c (BDF_Face_Init): Make it more robust against
  5966. unusual fonts.
  5967. 2002-05-29 Werner Lemberg <wl@gnu.org>
  5968. * src/bdf/descrip.mms, src/type42/descrip.mms: New files.
  5969. * descrip.mms (all): Updated.
  5970. * src/bdf/bdflib.c (_bdf_parse_glyphs): Fix typo which prevented
  5971. compilation.
  5972. * src/pshglob.c (psh_blues_scale_zones): Fix compiler warning.
  5973. 2002-05-28 Detlef Würkner <TetiSoft@apg.lahn.de>
  5974. * builds/amiga/makefile, builds/amiga/smakefile,
  5975. amiga/include/freetype/config/ftmodule.h: Updated to include
  5976. support for BDF and Type42 drivers.
  5977. * docs/modules.txt: Updated.
  5978. 2005-05-28 David Turner <david@freetype.org>
  5979. * docs/CHANGES: Updating file for next release (2.1.1).
  5980. * src/bdf/bdflib.c: Removing compiler warnings.
  5981. * include/freetype/ftxf86.h, src/base/ftxf86.c: New files.
  5982. They provide a new API (FT_Get_X11_Font_Format) to retrieve an
  5983. X11-compatible string describing the font format of a given face.
  5984. This was put in a new optional base source file, corresponding to a
  5985. new public header (named FT_XFREE86_H since this function should
  5986. only be used within the XFree86 font server IMO).
  5987. * include/freetype/config/ftheader.h (FT_XFREE86_H): New macro (not
  5988. documented yet).
  5989. * src/base/fttype1.c: New file, providing two new API functions
  5990. (FT_Get_PS_Font_Info and FT_Has_PS_Glyph_Names).
  5991. * include/freetype/t1tables.h: Updated.
  5992. * src/base/Jamfile, src/base/rules.mk, src/base/descrip.mms:
  5993. Updating build control files for the new files `ftxf86.c' and
  5994. `fttype1.c' in src/base.
  5995. * src/pshinter/pshglob.c (psh_blues_scale_zones): Fixed a bug that
  5996. prevented family blue zones substitution from happening correctly.
  5997. * include/freetype/ftbdf.h FT_Get_BDF_Charset_ID): Adding
  5998. documentation comment.
  5999. 2002-05-28 Werner Lemberg <wl@gnu.org>
  6000. * src/base/ftnames.c (FT_Get_Sfnt_Name): Don't use FT_STREAM_READ_AT
  6001. but FT_STREAM_READ.
  6002. Declare `stream' variable.
  6003. * src/bdf/bdflib.c (_bdf_parse_glyphs): Replace floating point math
  6004. with calls to `FT_MulDiv'.
  6005. 2002-05-28 David Turner <david@freetype.org>
  6006. Fixing the SFNT name table loader to support various buggy fonts.
  6007. It now ignores empty name entries, entries with invalid pointer
  6008. Offsets and certain fonts containing tables with broken
  6009. `storageOffset' fields.
  6010. Name strings are now loaded on demand, which reduces the memory
  6011. requirements for a given FT_Face tremendously (for example, the name
  6012. table of Arial.ttf is about 10Kb and contains 70 names).
  6013. This is a temporary fix. The whole name table loader and interface
  6014. will be rewritten in a much more cleanly way shortly, once CSEH have
  6015. been introduced in the sources.
  6016. * include/freetype/internal/tttypes.h (TT_NameEntryRec): Change
  6017. type of `stringOffset' to FT_ULong.
  6018. (TT_NameTableRec): Change type of `numNameRecords' and
  6019. `storageOffset' to FT_UInt.
  6020. Replace `storage' with `stream'.
  6021. * src/base/ftnames.c (FT_Get_Sfnt_Name): Load name on demand.
  6022. * src/sfnt/sfdriver.c (get_sfnt_postscript_name): Ditto.
  6023. Make code more robust.
  6024. * src/sfnt/sfobjs.c (TT_NameEntry_ConvertFunc): New typedef.
  6025. (tt_face_get_name): Use it.
  6026. Make code more robust.
  6027. * src/sfnt/ttload.c (TT_Load_Names): Use `static' for arrays.
  6028. Handle invalid `storageOffset' data better.
  6029. Set length fields to zero for invalid or ignored data.
  6030. Remove code within FT_DEBUG_LEVEL_TRACE.
  6031. (TT_Free_Names): Updated.
  6032. 2002-05-24 Tim Mooney <enchanter@users.sourceforge.net>
  6033. * builds/unix/ft-munmap.m4: New file, extracted FT_MUNMAP_DECL and
  6034. FT_MUNMAP_PARAM from aclocal.m4 into here, so aclocal.m4 can be
  6035. rebuilt from sources. Set macro serial to 1, and use third argument
  6036. to AC_DEFINE for our two custom symbols, so ftconfig.in could one day
  6037. be rebuilt with autoheader (not recommended now, ftconfig.in is a
  6038. custom source file)
  6039. 2002-05-22 Werner Lemberg <wl@gnu.org>
  6040. * include/freetype/config/ftheader.h (FT_BEZIER_H): Removed.
  6041. (FT_BDF_H): New macro for accessing `ftbdf.h'.
  6042. * src/type42/t42drivr.c (hexval): Fix typo.
  6043. 2002-05-21 Martin Muskens <mmuskens@aurelon.com>
  6044. * src/psaux/psobjs.c (T1Radix): New function.
  6045. (t1_toint): Use it to handle numbers in radix format.
  6046. * src/psaux/t1decode.c (T1_Decoder_Parse_Charstrings): Add dummy
  6047. for undocumented, obsolete opcode 15.
  6048. 2002-05-21 David Turner <david@freetype.org>
  6049. * src/bdf/bdflib.c: Removed compiler warning, and changed all tables
  6050. to the `static const' storage specifier (instead of simply
  6051. `static').
  6052. * src/type42/t42drivr.c (hexval): Use more efficient code.
  6053. Removing compiler warnings.
  6054. * src/bdf/bdfdrivr.c: Removing compiler warnings.
  6055. * include/freetype/internal/ftbdf.h, src/base/ftbdf.c,
  6056. src/base/descrip.mms, src/base/Jamfile, src/base/rules.mk
  6057. (FT_Get_BDF_Charset_ID): New API to retrieve BDF-specific strings
  6058. from a face. This is much cleaner than accessing the internal types
  6059. `BDF_Public_Face' defined in FT_INTERNAL_BDF_TYPES_H.
  6060. 2002-05-21 Werner Lemberg <wl@gnu.org>
  6061. * src/bdf/README: Mention Microsoft's SBIT tool.
  6062. * src/cff/cffdrivr.c, src/cid/cidriver.c, src/pcf/pcfdriver.c,
  6063. src/truetype/ttdriver.c, src/type1/t1driver.c,
  6064. src/winfonts/winfnt.c, src/type42/t42drivr.c, src/bdf/bdfdrivr.c
  6065. [FT_CONFIG_OPTION_DYNAMIC_DRIVERS]: Completely removed. It has
  6066. been never used.
  6067. 2002-05-21 Roberto Alameda <ojancano@geekmail.de>.
  6068. * src/type42/t42drivr.c: s/T42_ENCODING_TYPE_/T1_ENCODING_TYPE_/.
  6069. (parse_font_matrix): Remove unnecessary code.
  6070. (parse_sfnts): Initialize some variables.
  6071. (t42_driver_class) [TT_CONFIG_OPTION_BYTECODE_INTERPRETER]: Use
  6072. ft_module_driver_has_hinter conditionally.
  6073. Moved some type 42 specific structure definitions to...
  6074. * include/freetype/internal/t42types.h: New file.
  6075. * include/freetype/internal/internal.h (FT_INTERNAL_T42_TYPES_H):
  6076. New macro.
  6077. 2002-05-20 Werner Lemberg <wl@gnu.org>
  6078. * include/freetype/cache/ftcsbits.h (FTC_SBit): Added a new field
  6079. `num_grays' for specifying the number of used gray levels.
  6080. * src/cache/ftcsbits.c (ftc_sbit_node_load): Initialize it.
  6081. 2002-05-19 Werner Lemberg <wl@gnu.org>
  6082. Adding a driver for BDF fonts written by Francesco Zappa Nardelli
  6083. <Francesco.Zappa.Nardelli@ens.fr>. Heavily modified by me to
  6084. better adapt it to FreeType, removing unneeded stuff. Additionally,
  6085. it now supports Mark Leisher's BDF extension for anti-aliased
  6086. bitmap glyphs with 2 and 4 bpp.
  6087. * src/bdf/*: New driver.
  6088. * include/freetype/internal/bdftypes.h: New file.
  6089. * include/freetype/internal/fttrace.h: Added BDF driver components.
  6090. * include/freetype/fterrdef.h: Added error codes for BDF driver.
  6091. * include/freetype/config/ftmodule.h, src/Jamfile: Updated.
  6092. * include/freetype/internal/internal.h (FT_INTERNAL_BDF_TYPES_H):
  6093. New macro.
  6094. * include/freetype/config/ftstdlib.h (ft_sprintf): New alias for
  6095. sprintf.
  6096. 2002-05-18 Werner Lemberg <wl@gnu.org>
  6097. * include/freetype/internal/fttrace.h: Added Type 42 driver
  6098. component.
  6099. * src/type42/t42drivr.c: Use it.
  6100. * include/freetype/internal/internal.h (FT_INTERNAL_PCF_TYPES_H):
  6101. New macro.
  6102. 2002-05-17 Werner Lemberg <wl@gnu.org>
  6103. * src/type42/Jamfile: New file.
  6104. 2002-05-14 Werner Lemberg <wl@gnu.org>
  6105. Adding a driver for Type42 fonts written by Roberto Alameda
  6106. <ojancano@geekmail.de>.
  6107. * src/type42/*: New driver.
  6108. * include/freetype/config/ftmodule.h, src/Jamfile: Updated.
  6109. * include/freetype/config/ftstdlib.h (ft_xdigit, ft_memcmp,
  6110. ft_atoi): New aliases for xdigit, memcmp, and atoi, respectively.
  6111. 2002-05-12 Owen Taylor <otaylor@redhat.com>
  6112. * src/sfnt/ttload.c (TT_LookUp_Table): Protect against tables
  6113. with a zero length value.
  6114. 2002-05-12 Michael Pfeiffer <michael.pfeiffer@utanet.at>
  6115. * builds/beos/beos.mk: Include `link-std.mk'.
  6116. 2002-05-12 Werner Lemberg <wl@gnu.org>
  6117. * src/type1/t1load.h (T1_Loader): Renamed to...
  6118. (T1_LoaderRec): This.
  6119. (T1_Loader): Now pointer to T1_LoaderRec.
  6120. * src/type1/t1load.c: Updated.
  6121. * include/freetype/internal/t1types.h, src/type1/t1load.c,
  6122. src/type1/t1objs.c:
  6123. s/T1_ENCODING_TYPE_EXPORT/T1_ENCODING_TYPE_EXPERT/.
  6124. 2002-05-06 Werner Lemberg <wl@gnu.org>
  6125. * README: Add a note regarding libttf vs. libfreetype.
  6126. 2002-05-05 Werner Lemberg <wl@gnu.org>
  6127. FreeType 2 can now be built in an external directory with the
  6128. configure script also.
  6129. * builds/freetype.mk (INCLUDES): Add `OBJ_DIR'.
  6130. * builds/unix/detect.mk (have_mk): New variable to test for
  6131. external build.
  6132. (unix-def.mk): Defined according to value of `have_mk'.
  6133. * builds/unix/unix.mk (have_mk): New variable to test for
  6134. external build.
  6135. Select include paths for unix-def.mk and unix-cc.mk according
  6136. to value of `have_mk'.
  6137. * builds/unix/unix-def.in (OBJ_BUILD): New variable.
  6138. (DISTCLEAN): Use it.
  6139. * builds/unix/unix-cc.in (LIBTOOL): Define default value only
  6140. if not yet defined.
  6141. * builds/unix/install.mk (install): Use `OBJ_BUILD' for installing
  6142. freetype-config.
  6143. * configure: Don't depend on bash features.
  6144. (ft2_dir, abs_curr_dir, abs_ft2_dir): New variables (code
  6145. partially taken from Autoconf).
  6146. Build a dummy Makefile if not building in source tree.
  6147. * docs/INSTALL: Document it.
  6148. 2002-05-04 David Turner <david@freetype.org>
  6149. * src/truetype/ttgload.c (TT_Load_Glyph): Finally fixing the last
  6150. bug that prevented FreeType 2.x and FreeType 1.x to produce
  6151. bit-by-bit identical monochrome glyph bitmaps with native TrueType
  6152. hinting. The culprit was a single-bit flag that wasn't set
  6153. correctly by the TrueType glyph loader.
  6154. * src/otlayout/otlayout.h, src/otlayout/otlbase.c,
  6155. src/otlayout/otlbase.h, src/otlayout/otlconf.h,
  6156. src/otlayout/otlgdef.c, src/otlayout/otlgdef.h,
  6157. src/otlayout/otlgpos.c, src/otlayout/otlgpos.h,
  6158. src/otlayout/otlgsub.c, src/otlayout/otlgsub.h,
  6159. src/otlayout/otljstf.c, src/otlayout/otljstf.h,
  6160. src/otlayout/otltable.c, src/otlayout/otltable.h,
  6161. src/otlayout/otltags.h: New OpenType Layout source files. The
  6162. module is still incomplete.
  6163. 2002-05-02 Werner Lemberg <wl@gnu.org>
  6164. * src/sfnt/ttcmap0.c (tt_cmap4_char_index): Fix serious typo
  6165. (0xFFFU -> 0xFFFFU).
  6166. 2002-05-01 Werner Lemberg <wl@gnu.org>
  6167. * docs/INSTALL: Fix URL of makepp.
  6168. 2002-05-01 David Turner <david@freetype.org>
  6169. * src/sfnt/sfobjs.c (tt_face_get_name): Fixing a bug that caused
  6170. FreeType to crash when certain broken fonts (e.g. `hya6gb.ttf')
  6171. were opened.
  6172. * src/sfnt/ttload.c (TT_Load_Names): Applied a small work-around to
  6173. manage fonts containing a broken name table (e.g. `hya6gb.ttf').
  6174. * src/sfnt/ttcmap0.c (tt_cmap4_validate): Fixed over-restrictive
  6175. validation test. The charmap validator now accepts overlapping
  6176. ranges in format 4 charmaps.
  6177. * src/sfnt/ttcmap0.c (tt_cmap4_char_index): Switched to a binary
  6178. search algorithm. Certain fonts contain more than 170 distinct
  6179. segments!
  6180. * include/freetype/config/ftstdlib.h: Adding an alias for the `exit'
  6181. function. This will be used in the near future to panic in case of
  6182. unexpected exception (which shouldn't happen in theory).
  6183. * include/freetype/internal/fthash.h, src/base/fthash.c: New files.
  6184. This is generic implementation of dynamic hash tables using a linear
  6185. algorithm (to get rid of `stalls' during resizes). In the future
  6186. this will be used in at least three parts of the library: the cache
  6187. sub-system, the object sub-system, and the memory debugger.
  6188. * src/base/Jamfile: Updated.
  6189. * include/freetype/internal/internal.h (FT_INTERNAL_HASH_H,
  6190. FT_INTERNAL_OBJECT_H): New macros.
  6191. * include/freetype/internal/ftcore.h: New file to group all new
  6192. definitions related to exception handling and memory management. It
  6193. is very likely that this file will disappear or be renamed in the
  6194. future.
  6195. * include/freetype/internal/ftobject.h, include/freetype/ftsysmem.h:
  6196. Adding comments to better explain the object sub-system as well as
  6197. the new memory manager interface.
  6198. 2002-04-30 Wenlin Institute (Tom Bishop) <wenlin@wenlin.com>
  6199. * src/base/ftmac.c (p2c_str): Removed.
  6200. (file_spec_from_path) [TARGET_API_MAC_CARBON]: Added support for
  6201. OS X.
  6202. (is_dfont) [TARGET_API_MAC_CARBON]: Define only for OS X.
  6203. Handle `nameLen' <= 6 also.
  6204. (parse_fond): Remove unused variable `name_table'.
  6205. Use functionality of old p2c_str directly.
  6206. Add safety checks.
  6207. (read_lwfn): Initialize `size_p'.
  6208. Check for size_p == NULL.
  6209. (new_memory_stream, open_face_from_buffer): Updated to FreeType 2.1.
  6210. (FT_New_Face_From_LWFN): Remove unused variable `memory'.
  6211. Remove some dead code.
  6212. (FT_New_Face_From_SFNT): Remove unused variable `stream'.
  6213. (FT_New_Face_From_dfont) [TARGET_API_MAC_CARBON]: Define only for
  6214. OS X.
  6215. (FT_New_Face_From_FOND): Remove unused variable `error'.
  6216. (ResourceForkSize): New function.
  6217. (FT_New_Face): Use it.
  6218. Handle empty resource forks.
  6219. Conditionalize some code for OS X.
  6220. Add code to call normal loader as a fallback.
  6221. 2002-04-30 Werner Lemberg <wl@gnu.org>
  6222. `interface' is reserved on the Mac.
  6223. * include/freetype/ftoutln.h, include/freetype/internal/sfnt.h,
  6224. src/base/ftoutln.c: s/interface/func_interface/.
  6225. * src/base/ftbbox.c (FT_Outline_Get_BBox):
  6226. s/interface/bbox_interface/.
  6227. * src/cff/cffdrivr.c: s/interface/module_interface/.
  6228. * src/cff/cffload.c, src/cff/cffload.h:
  6229. s/interface/psnames_interface/.
  6230. * src/cid/cidriver.c: s/interface/cid_interface/.
  6231. * src/sfnt/sfdriver.c: s/interface/module_interface/.
  6232. * src/smooth/ftgrays.c: s/interface/func_interface/.
  6233. * src/truetype/ttdriver.c: s/interface/tt_interface/.
  6234. * src/type1/t1driver.c: s/interface/t1_interface/.
  6235. Some more variable renames to avoid troubles on the Mac.
  6236. * src/raster/ftraster.c:
  6237. s/Unknown|Ascending|Descending|Flat/\1_State/.
  6238. * src/smooth/ftgrays.c: s/TScan/TCoord/.
  6239. Other changes for the Mac.
  6240. * include/freetype/config/ftconfig.h: Define FT_MACINTOSH for
  6241. Mac platforms.
  6242. * src/base/ftobjs.c: s/macintosh/FT_MACINTOSH/.
  6243. * src/raster/ftrend1.c (ft_raster1_render): Make `pitch' always
  6244. an even number.
  6245. 2002-04-29 Jouk Jansen <joukj@hrem.stm.tudelft.nl>
  6246. * descrip.mms (all): Add pfr driver.
  6247. 2002-04-28 Werner Lemberg <wl@gnu.org>
  6248. * src/pfr/pfrerror.h: New file.
  6249. * include/freetype/ftmoderr.h: Add PFR error codes.
  6250. * src/pfr/pfrgload.c: Include pfrerror.h.
  6251. Use PCF error codes.
  6252. (pfr_extra_item_load_stem_snaps): Fix debug message.
  6253. * src/pfr/pfrgload.c: Include pfrerror.h.
  6254. Use PCF error codes.
  6255. (pfr_extra_item_load_bitmap_info, pfr_glyph_load_simple,
  6256. pfr_glyph_load_compound): Fix debug message.
  6257. * src/pfr/pfrobjs.c: Include pfrerror.h.
  6258. Use PCF error codes.
  6259. (pfr_face_init): Return PFR_Err_Unknown_File_Format.
  6260. * src/pfr/rules.mk (PFR_DRV_H): Include pfrerror.h.
  6261. * src/pcf/pcfdriver.c (PCF_Face_Init) [!FT_CONFIG_OPTION_USE_CMAPS]:
  6262. `root' -> `face->root'.
  6263. * src/sfnt/ttcmap0.c (TT_Build_CMaps) [!FT_CONFIG_OPTION_USE_CMAPS]:
  6264. Removed.
  6265. * src/sfnt/ttcmap0.c: Declare TT_Build_CMaps only for
  6266. FT_CONFIG_OPTION_USE_CMAPS.
  6267. 2002-04-27 Werner Lemberg <wl@gnu.org>
  6268. * src/cache/ftccache.c (ftc_cache_lookup),
  6269. src/cache/ftccmap.c (ftc_cmap_family_init),
  6270. src/cache/ftcmanag.c (ftc_family_table_alloc),
  6271. src/cache/ftcsbits.c (FTC_SBit_Cache_Lookup): Use FTC_Err_*.
  6272. src/cache/ftcimage.c (FTC_Image_Cache_Lookup): Use FTC_Err_*.
  6273. (FTC_ImageCache_Lookup): Fix handling of invalid arguments.
  6274. 2002-04-22 Werner Lemberg <wl@gnu.org>
  6275. * builds/unix/configure.ac: Set `version_info' to 9:1:3 (FT2
  6276. version 2.0.9 has 9:0:3).
  6277. * builds/unix/configure: Regenerated (using autoconf 2.53).
  6278. 2002-04-19 Werner Lemberg <wl@gnu.org>
  6279. * src/pfr/pfrload.c (pfr_extra_items_parse): Fix debug message.
  6280. (pfr_phy_font_load): s/size/Size/ for local variable to avoid
  6281. compiler warning.
  6282. * src/pfr/pfrobjs.c (pfr_face_init): Fix debug message.
  6283. (pfr_slot_load): Remove redundant local variable.
  6284. 2002-04-19 David Turner <david@freetype.org>
  6285. Adding a PFR font driver to the FreeType sources. Note that it
  6286. doesn't support embedded bitmaps or kerning tables yet.
  6287. src/pfr/*: New files.
  6288. * include/freetype/config/ftmodule.h,
  6289. include/freetype/internal/fttrace.h, src/Jamfile: Updated.
  6290. * src/type1/t1gload.h (T1_Load_Glyph), src/type1/t1gload.c
  6291. (T1_Load_Glyph): Fixed incorrect parameter sign-ness in callback
  6292. function.
  6293. * include/freetype/internal/ftmemory.h (FT_MEM_ZERO, FT_ZERO): New
  6294. macros.
  6295. * include/freetype/internal/ftstream.h (FT_NEXT_OFF3, FT_NEXT_UOFF3,
  6296. FT_NEXT_OFF3_LE, FT_NEXT_UOFF3_LE): New macros to parse in-memory
  6297. 24-bit integers.
  6298. 2002-04-18 David Turner <david@freetype.org>
  6299. * src/base/ftobjs.c, builds/win32/ftdebug.c,
  6300. builds/amiga/src/base/ftdebug.c: Version 2.1.0 couldn't be linked
  6301. against applications in Win32 and Amiga builds due to changes to
  6302. `src/base/ftdebug.c' that were not properly propagated to
  6303. `builds/win32' and `builds/amiga'. This has been fixed.
  6304. * include/freetype/internal/ftobject.h,
  6305. include/freetype/internal/ftexcept.h, include/freetype/ftsysmem.h,
  6306. include/freetype/ftsysio.h, src/base/ftsysmem.c, src/base/ftsysio.c:
  6307. New experimental files.
  6308. 2002-04-17 David Turner <david@freetype.org>
  6309. * Version 2.1.0 released.
  6310. =========================
  6311. 2002-04-17 Michael Jansson <mjan@em2-solutions.com>
  6312. * src/type1/t1gload.c (T1_Compute_Max_Advance): Fixed a small bug
  6313. that prevented the function to return the correct value.
  6314. 2002-04-16 Francesco Zappa Nardelli <Francesco.Zappa.Nardelli@ens.fr>
  6315. * src/pcf/pcfread.c (pcf_get_accel): Fix parsing of accelerator
  6316. tables.
  6317. 2002-04-15 David Turner <david@freetype.org>
  6318. * docs/FTL.txt: Formatting.
  6319. * include/freetype/config/ftoption.h: Reduce the size of the
  6320. render pool from 32kByte to 16kByte.
  6321. * src/pcf/pcfread.c (pcf_seek_to_table_type): Remove compiler
  6322. warning.
  6323. * include/freetype/config/ftoption.h (FT_MAX_EXTENSIONS): Removed.
  6324. * docs/CHANGES: Preparing 2.1.0 release.
  6325. 2002-04-13 Werner LEMBERG <wl@gnu.org>
  6326. * src/cff/cffgload.c (CFF_Parse_CharStrings): s/rand/Rand/ to avoid
  6327. compiler warning.
  6328. 2002-04-12 David Turner <david@freetype.org>
  6329. * README.UNX: Updated the Unix-specific quick-compilation guide to
  6330. warn about the GNU Make requirement at compile time.
  6331. * include/freetype/config/ftstdlib.h,
  6332. include/freetype/config/ftconfig.h,
  6333. include/freetype/config/ftheader.h,
  6334. include/freetype/internal/ftmemory.h,
  6335. include/freetype/internal/ftobjs.h,
  6336. src/autohint/ahoptim.c,
  6337. src/base/ftdbgmem.c, src/base/ftdebug.c, src/base/ftmac.c,
  6338. src/base/ftobjs.c, src/base/ftsystem.c,
  6339. src/cache/ftcimage.c, src/cache/ftcsbits.c,
  6340. src/cff/cffdrivr.c, src/cff/cffload.c, src/cff/cffobjs.c,
  6341. src/cid/cidload.c, src/cid/cidparse.c, src/cid/cidriver.c,
  6342. src/pcf/pcfdriver.c, src/pcf/pcfread.c,
  6343. src/psaux/t1cmap.c, src/psaux/t1decode.c,
  6344. src/pshinter/pshalgo1.c, src/pshinter/pshalgo2.c,
  6345. src/pshinter/pshrec.c,
  6346. src/psnames/psmodule.c,
  6347. src/raster/ftraster.c,
  6348. src/sfnt/sfdriver.c, src/sfnt/ttload.c,
  6349. src/smooth/ftgrays.c,
  6350. src/type1/t1afm.c, src/type1/t1driver.c, src/type1/t1gload.c,
  6351. src/type1/t1load.c, src/type1/t1objs.c, src/type1/t1parse.c,
  6352. builds/unix/ftconfig.in, builds/vms/ftconfig.h,
  6353. builds/amiga/src/base/ftdebug.c:
  6354. Added the new configuration file `ftstdlib.h' used to define
  6355. aliases for all ISO C library functions used by the engine
  6356. (e.g. strlen, qsort, setjmp, etc.).
  6357. This eases the porting of FreeType 2 to environments like
  6358. XFree86 modules/extensions.
  6359. Also removed many #include <string.h>, #include <stdlib.h>, etc.
  6360. from the engine's sources where they are not needed.
  6361. * src/sfnt/ttpost.c: Use macro name for psnames.h.
  6362. 2002-04-12 Vincent Caron <v.caron@zerodeux.net>
  6363. * configure, builds/detect.mk: Updated the build system to print
  6364. a warning message in case GNU Make isn't used to build the library.
  6365. 2002-04-11 David Turner <david@freetype.org>
  6366. * README, docs/CHANGES, Jamfile.in: Updates for the 2.1.0 release.
  6367. * docs/FTL.txt: Updated license text to provide a preferred
  6368. disclaimer and adjust copyright dates/extents.
  6369. * include/freetype/cache/ftcglyph.h: Removing obsolete (and
  6370. confusing) comment.
  6371. * Jamfile.in: New file.
  6372. 2002-04-11 Maxim Shemanarev <mcseemagg@yahoo.com>
  6373. * src/smooth/ftgrays.c (gray_hline): Minor optimization.
  6374. 2002-04-02 Werner Lemberg <wl@gnu.org>
  6375. Fixes from the stable branch:
  6376. * include/freetype/config/ftoption.h (FT_CONFIG_OPTION_OLD_CALCS):
  6377. Removed.
  6378. [FT_CONFIG_OPTION_OLD_CALCS]: Removed.
  6379. * include/freetype/internal/ftcalc.h, src/base/ftcalc.c
  6380. [FT_CONFIG_OPTION_OLD_CALCS]: Removed.
  6381. * src/base/fttrigon.c (FT_Vector_Length): Change algorithm to match
  6382. output of FreeType 1.
  6383. * src/pshinter/pshglob.c (psh_globals_scale_widths): Fixed a small
  6384. bug that created un-even stem widths when hinting Postscript fonts.
  6385. * src/type1/t1driver.c, src/type1/t1parse.c: 16bit fixes.
  6386. 2002-04-01 Werner Lemberg <wl@gnu.org>
  6387. * src/truetype/ttgload.c: 16bit fixes.
  6388. (TT_Load_Simple_Glyph): Improve debug messages.
  6389. (load_truetype_glyph): Remove dead code.
  6390. * src/truetype/ttinterp.c: 16bit fixes.
  6391. * src/truetype/ttobjs.c: Ditto.
  6392. * include/freetype/ftsnames.h, include/freetype/internal/sfnt.h,
  6393. src/cff/cffload.h, src/psaux/psobjs.h, src/truetype/ttinterp.[ch],
  6394. src/sfnt/ttpost.h: s/index/idx/.
  6395. 2002-03-31 Yao Zhang <yaoz@vidar.niaaa.nih.gov>
  6396. * src/truetype/ttobjs.c (TT_Size_Init): Fix typo.
  6397. 2002-03-31 Werner Lemberg <wl@gnu.org>
  6398. * src/otlayout/otlcommn.c, src/otlayout/otlcommn.h: s/index/idx/.
  6399. * src/psaux/t1cmap.c: Ditto.
  6400. * src/sfnt/ttcmap0.c: Ditto.
  6401. * include/freetype/internal/tttypes.h,
  6402. include/freetype/internal/sfnt.h (TT_Goto_Table_Func): Renamed to ...
  6403. (TT_Loader_GotoTableFunc): This.
  6404. * src/psaux/t1decode.c (T1_Decoder_Parse_Charstrings): Fix debug
  6405. messages.
  6406. * src/psnames/psmodule.c (psnames_interface)
  6407. [!FT_CONFIG_OPTION_ADOBE_GLYPH_LIST]: Fix typo.
  6408. * src/sfnt/sfdriver.c (get_sfnt_table): 16bit fix.
  6409. * src/sfnt/ttcmap.c: 16bit fixes (0xFFFF -> 0xFFFFU).
  6410. * src/sfnt/ttcmap0.c: 16bit fixes.
  6411. (TT_Build_CMaps): Simplify debug messages.
  6412. (tt_cmap12_char_next): Fix offset.
  6413. * src/sfnt/ttload.c (TT_Load_Names, TT_Load_CMap): Fix debug
  6414. messages.
  6415. (TT_Load_OS2): 16bit fix.
  6416. 2002-03-30 David Turner <david@freetype.org>
  6417. * include/freetype/internal/tttypes.h: Adding comments to some of
  6418. the TT_FaceRec fields.
  6419. * src/sfnt/ttcmap0.c (TT_Build_CMaps): Removed compiler warnings.
  6420. * src/sfnt/sfobjs.c (tt_name_entry_ascii_from_{utf16,ucs4,other}:
  6421. New functions.
  6422. (tt_face_get_name): Use them to properly extract an ascii font name.
  6423. 2002-03-30 Werner Lemberg <wl@gnu.org>
  6424. * include/freetype/t1tables.h (t1_blend_max): Fix typo.
  6425. * src/base/ftstream.c: Simplify FT_ERROR calls.
  6426. * src/cff/cffdrivr.c (cff_get_glyph_name): Fix debug message.
  6427. * src/cff/cffobjs.c (CFF_Driver_Init, CFF_Driver_Done)
  6428. [TT_CONFIG_OPTION_EXTEND_ENGINE]: Removed.
  6429. * src/cff/sfobjs.c (SFNT_Load_Face)
  6430. [TT_CONFIG_OPTION_EXTEND_ENGINE]: Ditto.
  6431. * src/truetype/ttobjs.c (TT_Init_Driver, TT_Done_Driver)
  6432. [TT_CONFIG_OPTION_EXTEND_ENGINE]: Ditto.
  6433. * src/truetype/ttdriver.c, src/truetype/ttobjs.c,
  6434. src/truetype/ttobjs.h: Renaming driver functions to the
  6435. FT_<Subject>_<Action> scheme:
  6436. TT_Init_Driver => TT_Driver_Init
  6437. TT_Done_Driver => TT_Driver_Done
  6438. TT_Init_Face => TT_Face_Init
  6439. TT_Done_Face => TT_Face_Done
  6440. TT_Init_Size => TT_Size_Init
  6441. TT_Done_Size => TT_Size_Done
  6442. TT_Reset_Size => TT_Size_Reset
  6443. 2002-03-29 Werner Lemberg <wl@gnu.org>
  6444. * builds/vms/ftconfig.h: Rename LOCAL_DEF and LOCAL_FUNC to
  6445. FT_LOCAL and FT_LOCAL_DEF, respectively, as with other ftconfig.h
  6446. files.
  6447. * builds/unix/ftconfig.in: Add argument to FT_LOCAL and
  6448. FT_LOCAL_DEF.
  6449. * src/truetype/ttinterp.c: s/FT_Assert/FT_ASSERT/.
  6450. * builds/unix/configure.ac: Temporarily deactivate creation of
  6451. ../../Jamfile.
  6452. * builds/unix/configure: Updated.
  6453. 2002-03-28 KUSANO Takayuki <AE5T-KSN@asahi-net.or.jp>
  6454. * src/sfnt/sfdriver.c (get_sfnt_postscript_name): Fix serious typos.
  6455. 2002-03-28 Werner Lemberg <wl@gnu.org>
  6456. * include/freetype/internal/psaux.h (PSAux_ServiceRec): Fix
  6457. compiler warnings.
  6458. * include/freetype/internal/t1types.h (T1_FaceRec): Use `const' for
  6459. some members.
  6460. * src/base/ftapi.c (FT_New_Memory_Stream): Fix typos.
  6461. * src/psaux/t1cmap.c (t1_cmap_std_init, t1_cmap_unicode_init): Add
  6462. cast.
  6463. (t1_cmap_{standard,expert,custom,unicode}_class_rec): Use
  6464. `FT_CALLBACK_TABLE_DEF'.
  6465. * src/psaux/t1cmap.h: Updated.
  6466. * src/sfnt/ttcmap0.c (TT_Build_CMaps): Use `ft_encoding_none'
  6467. instead of zero.
  6468. * src/type1/t1objs.c (T1_Face_Init): Use casts.
  6469. 2002-03-26 David Turner <david@freetype.org>
  6470. * src/sfnt/sfdriver.c, src/sfnt/sfobjs.c, src/sfnt/ttcmap0.c:
  6471. Fixed a small bug in the FT_CMaps support code.
  6472. 2002-03-25 David Turner <david@freetype.org>
  6473. * src/truetype/ttinterp.c (Norm): Replaced with...
  6474. (TT_VecLen): This.
  6475. (TT_MulFix14, TT_DotFix14): New functions.
  6476. (Project, Dual_Project, Free_Project, Compute_Point_Displacement,
  6477. Ins_SHPIX, Ins_MIAP, Ins_MIRP): Use them.
  6478. [FT_CONFIG_OPTION_OLD_CALCS]: Removed all code.
  6479. 2002-03-22 David Turner <david@freetype.org>
  6480. * src/base/ftobjs.c, src/sfnt/ttcmap0.c, src/type1/t1objs.c:
  6481. Various fixes to make the FT_CMaps support work correctly (more
  6482. tests are still needed).
  6483. * include/freetype/internal/ftobjs.h, src/sfnt/Jamfile,
  6484. src/sfnt/rules.mk, src/sfnt/sfnt.c, src/sfnt/sfobjs.c,
  6485. src/sfnt/ttload.c, src/sfnt/ttcmap0.c, src/sfnt/ttcmap0.h: Updated
  6486. the SFNT charmap support to use FT_CMaps.
  6487. * include/freetype/fterrdef.h: New file.
  6488. * include/freetype/fterrors.h: Include it. It contains all error
  6489. codes.
  6490. * include/freetype/config/ftheader.h (FT_ERROR_DEFINITIONS_H): New
  6491. macro.
  6492. * include/freetype/internal/ftmemory.h, and a lot of other files:
  6493. Changed the names of memory macros. Examples:
  6494. MEM_Set => FT_MEM_SET
  6495. MEM_Copy => FT_MEM_COPY
  6496. MEM_Move => FT_MEM_MOVE
  6497. ALLOC => FT_ALLOC
  6498. FREE => FT_FREE
  6499. REALLOC = >FT_REALLOC
  6500. FT_NEW was introduced to allocate a new object from a _typed_
  6501. pointer.
  6502. Note that ALLOC_ARRAY and REALLOC_ARRAY have been replaced by
  6503. FT_NEW_ARRAY and FT_RENEW_ARRAY which take _typed_ pointer
  6504. arguments.
  6505. This results in _lots_ of sources being changed, but makes the code
  6506. more generic and less error-prone.
  6507. * include/freetype/internal/ftstream.h, src/base/ftstream.c,
  6508. src/cff/cffload.c, src/pcf/pcfread.c, src/sfnt/ttcmap.c,
  6509. src/sfnt/ttcmap0.c, src/sfnt/ttload.c, src/sfnt/ttpost.c,
  6510. src/sfnt/ttsbit.c, src/truetype/ttgload.c, src/truetype/ttpload.c,
  6511. src/winfonts/winfnt.c: Changed the definitions of stream macros.
  6512. Examples:
  6513. NEXT_Byte => FT_NEXT_BYTE
  6514. NEXT_Short => FT_NEXT_SHORT
  6515. NEXT_UShortLE => FT_NEXT_USHORT_LE
  6516. READ_Short => FT_READ_SHORT
  6517. GET_Long => FT_GET_LONG
  6518. etc.
  6519. Also introduced the FT_PEEK_XXXX functions.
  6520. * src/cff/cffobjs.c (CFF_Build_Unicode_Charmap): Removed commented
  6521. out function.
  6522. (find_encoding): Removed.
  6523. (CFF_Face_Init): Remove charmap support.
  6524. * include/freetype/config/ftoption.h (FT_CONFIG_OPTION_USE_CMAPS,
  6525. TT_CONFIG_CMAP_FORMAT{0,2,4,6,8,10,12}): New macros to fine-tune
  6526. support of cmaps.
  6527. 2002-03-21 David Turner <david@freetype.org>
  6528. * src/base/ftobjs.c, src/pcf/pcfdriver.c, src/pcf/pcfread.c: Updated
  6529. to new FT_CMap definitions.
  6530. * src/psaux/t1cmap.h, src/psaux/t1cmap.c, src/type1/t1cmap.h,
  6531. src/type1/t1cmap.c: Updating and moving the Type 1 FT_CMap support
  6532. from `src/type1' to `src/psaux' since it is going to be shared by
  6533. the Type 1 and CID font drivers.
  6534. * src/psaux/Jamfile, src/psaux/psaux.c, src/psaux/psauxmod.c,
  6535. src/psaux/rules.mk, include/freetype/internal/psaux.h: Added support
  6536. for Type 1 FT_CMaps.
  6537. 2002-03-20 David Turner <david@freetype.org>
  6538. * src/base/ftgloadr.c (FT_GlyphLoader_CheckSubGlyphs): Fixed a
  6539. memory allocation bug that was due to un-careful renaming of the
  6540. FT_SubGlyph type.
  6541. * src/base/ftdbgmem.c (ft_mem_table_destroy): Fixed a small bug that
  6542. caused the library to crash with Electric Fence when memory
  6543. debugging is used.
  6544. * Renaming stream macros. Examples:
  6545. FILE_Skip => FT_STREAM_SKIP
  6546. FILE_Read => FT_STREAM_READ
  6547. ACCESS_Frame => FT_FRAME_ENTER
  6548. FORGET_Frame => FT_FRAME_EXIT
  6549. etc.
  6550. * src/sfnt/sfdriver.c (get_sfnt_postscript_name): Fixed memory leak.
  6551. * include/freetype/internal/ftobjs.h: Changing the definition of
  6552. FT_CMap_CharNextFunc slightly.
  6553. * src/cff/*.c: Updating CFF type definitions.
  6554. 2002-03-14 David Turner <david@freetype.org>
  6555. * include/freetype/internal/autohint.h, src/autohint/ahmodule.c,
  6556. src/base/ftapi.c, src/base/ftobjs.c: Updating the type definitions
  6557. for the auto-hinter module.
  6558. FT_AutoHinter_Interface => FT_AutoHinter_ServiceRec
  6559. FT_AutoHinter_Interface* => FT_AutoHinter_Service
  6560. etc.
  6561. FT_AutoHinter_Get_Global_Func => FT_AutoHinter_GlobalGetFunc
  6562. FT_AutoHinter_Done_Global_Func => FT_AutoHinter_GlobalDoneFunc
  6563. etc.
  6564. * ahloader.h [_STANDALONE_]: Removed all conditional code.
  6565. * include/freetype/internal/cfftypes.h, src/cff/*.c: Updating the
  6566. type definitions of the CFF font driver.
  6567. CFF_Font => CFF_FontRec
  6568. CFF_Font* => CFF_Font
  6569. etc.
  6570. * include/freetype/internal/fnttypes.h, src/winfonts/*.c: Updating
  6571. type definitions of the Windows FNT font driver.
  6572. * include/freetype/internal/ftdriver.h,
  6573. include/freetype/internal/ftobjs.h, src/base/ftapi.c,
  6574. src/base/ftobjs.c, src/cff/cffdrivr.c, src/cff/cffdrivr.h,
  6575. src/cid/cidriver.c, src/cid/cidriver.h, src/pcf/pcfdriver.c,
  6576. src/pcf/pcfdriver.h, src/truetype/ttdriver.c,
  6577. src/truetype/ttdriver.h, src/type1/t1driver.c, src/type1/t1driver.h,
  6578. src/winfonts/winfnt.c, src/winfonts/winfnt.h: Updating type
  6579. definitions for font drivers.
  6580. FTDriver_initFace => FT_Face_InitFunc
  6581. FTDriver_initGlyphSlot => FT_Slot_InitFunc
  6582. etc.
  6583. * src/cid/cidobjs.c (CID_Face_Init): Remove dead code.
  6584. * include/freetype/internal/ftobjs.h, src/base/ftobjs.c: Updated a
  6585. few face method definitions:
  6586. FT_PSName_Requester => FT_Face_GetPostscriptNameFunc
  6587. FT_Glyph_Name_Requester => FT_Face_GetGlyphNameFunc
  6588. FT_Name_Index_Requester => FT_Face_GetGlyphNameIndexFunc
  6589. * src/base/ftapi.c: New file. It contains backward compatibility
  6590. functions.
  6591. * include/freetype/internal/psaux.h, src/cid/cidload.c,
  6592. src/cidtoken.h, src/psaux/psobjs.c, src/psaux/psobjs.h,
  6593. src/psaux/t1decode.c, src/type1/t1load.c, src/type1/t1tokens.h:
  6594. Updated common PostScript type definitions.
  6595. Renamed all enumeration values like to uppercase variants:
  6596. t1_token_any => T1_TOKEN_TYPE_ANY
  6597. t1_field_cid_info => T1_FIELD_LOCATION_CID_INFO
  6598. etc.
  6599. * include/freetype/internal/psglobal.h: Removed.
  6600. * include/freetype/internal/pshints.h, src/pshinter/pshglob.h:
  6601. Updated.
  6602. * include/freetype/internal/tttypes.h,
  6603. include/freetype/internal/sfnt.h, src/base/ftnames.c,
  6604. src/cff/cffdrivr.c, src/sfnt/*.c, src/truetype/*.c: Updated
  6605. SFNT/TrueType type definitions.
  6606. * include/freetype/freetype.h, include/freetype/internal/ftgloadr.h:
  6607. Updating type definitions for the glyph loader.
  6608. 2002-03-13 Antoine Leca <antoine@oriolnet.com>
  6609. * include/freetype/config/ftoption.h: Changed the automatic
  6610. detection of Microsoft C compilers to automatically support 64-bit
  6611. integers only since revision 9.00 (i.e. >= Visual C++ 2.0).
  6612. 2002-03-08 Werner Lemberg <wl@gnu.org>
  6613. * src/base/ftutil.c (FT_Realloc): Use MEM_Set instead of memset.
  6614. 2002-03-07 Werner Lemberg <wl@gnu.org>
  6615. * src/base/ftdbgmem.c (ft_mem_table_resize, ft_mem_table_new,
  6616. ft_mem_table_set, ft_mem_debug_alloc, ft_mem_debug_free,
  6617. ft_mem_debug_realloc, ft_mem_debug_done, FT_Alloc_Debug,
  6618. FT_Realloc_Debug, FT_Free_Debug): Fix compiler warnings.
  6619. * src/base/ftcalc.c (FT_MulFix): Ditto.
  6620. * src/cff/cffdrivr.c (cff_get_name_index): Ditto.
  6621. * src/cff/cffobjs.c (CFF_Size_Get_Globals_Funcs, CFF_Size_Init,
  6622. CFF_GlyphSlot_Init): Ditto.
  6623. * src/cid/cidobjs.c (CID_GlyphSlot_Init,
  6624. CID_Size_Get_Globals_Funcs): Ditto.
  6625. * src/type1/t1objs.c (T1_Size_Get_Globals_Funcs, T1_GlyphSlot_Init):
  6626. Ditto.
  6627. * src/pshinter/pshmod.c (pshinter_interface): Use `static const'.
  6628. * src/winfonts/winfnt.c (FNT_Get_Next_Char): Remove unused
  6629. variables.
  6630. * include/freetype/internal/psaux.h (T1_Builder_Funcs): Renamed
  6631. to...
  6632. (T1_Builder_FuncsRec): This.
  6633. (T1_Builder_Funcs): New typedef.
  6634. (PSAux_Interface): Remove compiler warnings.
  6635. * src/psaux/psauxmod.c (t1_builder_funcs), src/psaux/psobjs.h
  6636. (t1_builder_funcs): Updated.
  6637. * src/pshinter/pshglob.h (PSH_Blue_Align): Replaced with ...
  6638. (PSH_BLUE_ALIGN_{NONE,TOP,BOT}): New defines.
  6639. (PSH_AlignmentRec): Updated.
  6640. * include/freetype/internal/ftstream.h (GET_Char, GET_Byte): Fix
  6641. typo.
  6642. * include/freetype/internal/ftgloadr.h (FT_SubGlyph): Ditto.
  6643. * src/base/ftstream (FT_Get_Char): Rename to...
  6644. (FT_Stream_Get_Char): This.
  6645. * src/base/ftnames.c (FT_Get_Sfnt_Name): s/index/idx/ -- `index' is
  6646. a built-in function in gcc, causing warning messages with gcc 3.0.
  6647. * src/autohint/ahglyph.c (ah_outline_load): Ditto.
  6648. * src/autohint/ahglobal.c (ah_hinter_compute_blues): Ditto.
  6649. * src/cache/ftcmanag.c (ftc_family_table_alloc,
  6650. ftc_family_table_free, FTC_Manager_Done, FTC_Manager_Register_Cache):
  6651. Ditto.
  6652. * src/cff/cffload.c (cff_new_index, cff_done_index,
  6653. cff_explicit_index, CFF_Access_Element, CFF_Forget_Element,
  6654. CFF_Get_Name, CFF_Get_String, CFF_Load_SubFont, CFF_Load_Font,
  6655. CFF_Done_Font): Ditto.
  6656. * src/psaux/psobjs.c (PS_Table_Add, PS_Parser_LoadField): Ditto.
  6657. * src/psaux/t1decode.c (T1_Decoder_Parse_Charstrings): Ditto.
  6658. * src/pshinter/pshrec.c (ps_mask_test_bit, ps_mask_clear_bit,
  6659. ps_mask_set_bit, ps_dimension_add_t1stem, ps_hints_t1stem3,
  6660. * src/pshinter/pshalgo1.c (psh1_hint_table_record,
  6661. psh1_hint_table_record_mask, psh1_hint_table_activate_mask): Ditto.
  6662. * src/pshinter/pshalgo2.c (psh2_hint_table_record,
  6663. psh2_hint_table_record_mask, psh2_hint_table_activate_mask): Ditto.
  6664. * src/sfnt/ttpost.c (Load_Format_20, Load_Format_25,
  6665. TT_Get_PS_Name): Ditto.
  6666. * src/truetype/ttgload.c (TT_Get_Metrics, Get_HMetrics,
  6667. load_truetype_glyph): Ditto.
  6668. * src/type1/t1load.c (parse_subrs, T1_Open_Face): Ditto.
  6669. * src/type1/t1afm.c (T1_Get_Kerning): Ditto.
  6670. * include/freetype/cache/ftcmanag.h (ftc_family_table_free): Ditto.
  6671. 2002-03-06 David Turner <david@freetype.org>
  6672. * src/type1/t1objs.c (T1_Face_Init), src/cid/cidobjs.c
  6673. (CID_Face_Init): Fixed another bug related to the
  6674. ascender/descender/text height of Postscript fonts.
  6675. * src/pshinter/pshalgo2.c (print_zone): Renamed to ...
  6676. (psh2_print_zone): This.
  6677. * src/pshinter/pshalgo1.c (print_zone): Renamed to ...
  6678. (psh1_print_zone): This.
  6679. * include/freetype/freetype.h, include/freetype/internal/ftobjs.h,
  6680. src/base/ftobjs.c: Adding the new FT_Library_Version API to return
  6681. the library's current version in dynamic links.
  6682. * src/base/ftinit.c (FT_Init_FreeType): Updated.
  6683. 2002-03-06 Werner Lemberg <wl@gnu.org>
  6684. * src/pshinter/pshglob.h (PSH_DimensionRec): s/std/stdw/.
  6685. * src/pshinter/pshglob.c (psh_global_scale_widths,
  6686. psh_dimension_snap_width, psh_globals_destroy, psh_globals_new):
  6687. Ditto.
  6688. 2002-03-05 David Turner <david@freetype.org>
  6689. * src/type1/t1objs.c (T1_Face_Init), src/cff/cffobjs.c
  6690. (CFF_Face_Init), src/cid/cidobjs.c (CID_Face_Init): Removing the bug
  6691. that returned global BBox values in 16.16 fixed format (instead of
  6692. integer font units).
  6693. * src/cid/cidriver.c (cid_get_postscript_name): Fixed a bug that
  6694. caused the CID driver to return Postscript font names with a leading
  6695. slash (`/') as in `/MOEKai-Regular'.
  6696. * src/sfnt/ttload.c (TT_Load_Names), src/sfnt/sfobjs.c (Get_Name),
  6697. src/sfnt/sfdriver.c (get_sfnt_postscript_name): Fixed the loader so
  6698. that it accepts broken fonts like `foxjump.ttf', which made FreeType
  6699. crash when trying to load them.
  6700. Also improved the name table parser to be able to load
  6701. Windows-encoded entries before Macintosh or Unicode ones, since it
  6702. seems some fonts don't have reliable values here anyway.
  6703. * include/freetype/internal/psnames.h: Add typedef for
  6704. `PSNames_Service'.
  6705. 2002-03-05 Werner Lemberg <wl@gnu.org>
  6706. * builds/unix/aclocal.m4, builds/unix/ltmain.sh: Update to libtool
  6707. 1.4.2.
  6708. Apply a small patch for AIX to make shared libraries work (this
  6709. patch is already in the CVS version of libtool).
  6710. * builds/unix/config.sub, builds/unix/config.guess: Updated to
  6711. recent versions.
  6712. * builds/unix/configure.ac: Fix typo
  6713. (AC_CONFIG_FILE->AC_CONFIG_FILES).
  6714. * builds/unix/configure: Regenerated.
  6715. 2002-02-28 David Turner <david@freetype.org>
  6716. * include/freetype/ftconfig.h: Changed `FT_LOCAL xxxx' to
  6717. `FT_LOCAL( xxxx )' everywhere in the source. The same goes for
  6718. `FT_LOCAL_DEF xxxx' which is translated to `FT_LOCAL_DEF( xxxxx )'.
  6719. * include/freetype/freetype.h (FREETYPE_MINOR, FREETYPE_PATCH):
  6720. Changing version to 2.1.0 to indicate an unstable branch.
  6721. Added the declarations of FT_Get_First_Char and FT_Get_Next_Char.
  6722. * src/base/ftobjs.c: Implement FT_Get_First_Char and
  6723. FT_Get_Next_Char.
  6724. * include/freetype/t1tables.h: Renaming structure types. This
  6725. typedef T1_Struct_
  6726. {
  6727. } T1_Struct;
  6728. becomes
  6729. typedef PS_StructRec_
  6730. {
  6731. } PS_StructRec, *PS_Struct;
  6732. typedef PS_StructRec T1_Struct; /* backward compatibility */
  6733. Hence, we increase the coherency of the source code by effectively
  6734. using the `Rec' prefix for structure types.
  6735. 2002-02-27 David Turner <david@freetype.org>
  6736. * src/sfnt/ttload.c (TT_Load_Names): Simplifying and securing the
  6737. names table loader. Invalid individual name entries are now handled
  6738. correctly. This allows the loading of very buggy fonts like
  6739. `foxjump.ttf' without allocating tons of memory and causing crashes.
  6740. * src/otlayout/otlcommon.h, src/otlayout/otlcommon.c: Adding (still
  6741. experimental) code for OpenType Layout tables validation and
  6742. parsing.
  6743. * src/type1/t1cmap.h, src/type1/t1cmap.c: Adding (still
  6744. experimental) code for Type 1 charmap processing.
  6745. * src/sfnt/ttcmap0.c: New file. It contains a new, still
  6746. experimental SFNT charmap processing support.
  6747. * include/freetype/internal/ftobjs.h: Adding validation support as
  6748. well as internal charmap object definitions (FT_CMap != FT_CharMap).
  6749. 2002-02-24 David Turner <david@freetype.org>
  6750. * Renaming stream functions to the FT_<Subject>_<Action> scheme:
  6751. FT_Seek_Stream => FT_Stream_Seek
  6752. FT_Skip_Stream => FT_Stream_Skip
  6753. FT_Read_Stream => FT_Stream_Read
  6754. FT_Read_Stream_At => FT_Stream_Read_At
  6755. FT_Access_Frame => FT_Stream_Enter_Frame
  6756. FT_Forget_Frame => FT_Stream_Exit_Frame
  6757. FT_Extract_Frame => FT_Stream_Extract_Frame
  6758. FT_Release_Frame => FT_Stream_Release_Frame
  6759. FT_Get_XXXX => FT_Stream_Get_XXXX
  6760. FT_Read_XXXX => FT_Stream_Read_XXXX
  6761. FT_New_Stream( filename, stream ) =>
  6762. FT_Stream_Open( stream, filename )
  6763. (The function doesn't create the FT_Stream structure, it simply
  6764. initializes it for reading.)
  6765. FT_New_Memory_Stream( library, FT_Byte* base, size, stream ) =>
  6766. FT_Stream_Open_Memory( stream, const FT_Byte* base, size )
  6767. FT_Done_Stream => FT_Stream_Close
  6768. FT_Stream_IO => FT_Stream_IOFunc
  6769. FT_Stream_Close => FT_Stream_CloseFunc
  6770. ft_close_stream => ft_ansi_stream_close (in base/ftsystem.c only)
  6771. ft_io_stream => ft_ansi_stream_io (in base/ftsystem.c only)
  6772. * src/base/ftutil.c: New file. Contains all memory and list
  6773. management code (previously in `ftobjs.c' and `ftlist.c',
  6774. respectively).
  6775. * include/freetype/internal/ftobjs.h: Moving all code related to
  6776. glyph loaders to ...
  6777. * include/freetype/internal/ftgloadr.h: This new file.
  6778. `FT_GlyphLoader' is now a pointer to the structure
  6779. `FT_GlyphLoaderRec'.
  6780. (ft_glyph_own_bitmap): Renamed to ...
  6781. (FT_GLYPH_OWN_BITMAP): This.
  6782. * src/base/ftobjs.c: Moving all code related to glyph loaders
  6783. to ...
  6784. * src/base/ftgloadr.c: This new file.
  6785. 2002-02-22 Werner Lemberg <wl@gnu.org>
  6786. * include/freetype/internal/ftdebug.h (FT_Trace): Remove comma in
  6787. enum to avoid compiler warnings.
  6788. 2002-02-21 David Turner <david@freetype.org>
  6789. Modified the debug sub-system initialization. Trace levels can now
  6790. be specified within the `FT2_DEBUG' environment variable. See the
  6791. comments within `ftdebug.c' for more details.
  6792. * src/base/ftdebug.c: (FT_SetTraceLevel): Removed.
  6793. (ft_debug_init): New function.
  6794. (ft_debug_dummy): Removed.
  6795. Updated to changes in ftdebug.h
  6796. * include/freetype/internal/ftdebug.h: Always define
  6797. FT_DEBUG_LEVEL_ERROR if FT_DEBUG_LEVEL_TRACE is defined.
  6798. (FT_Assert): Renamed to ...
  6799. (FT_ASSERT): This.
  6800. Some stuff from ftdebug.h has been moved to ...
  6801. * include/freetype/internal/fttrace.h: New file, to define the trace
  6802. levels used for debugging. It is used both to define enums and
  6803. toggle names for FT2_DEBUG.
  6804. * include/freetype/internal/internal.h: Updated.
  6805. * src/base/ftobjs.c, src/base/ftstream.c: Updated.
  6806. * include/freetype/internal/ftextend.h, src/base/ftextend.c:
  6807. Removed. Both files are now completely obsolete.
  6808. * src/base/Jamfile, src/base/rules.mk: Updated.
  6809. * include/freetype/fterrors.h: Adding `#undef FT_ERR_CAT' and
  6810. `#undef FT_ERR_XCAT' to avoid warnings with certain compilers (like
  6811. LCC).
  6812. * src/pshinter/pshalgo2.c (print_zone): Renamed to ...
  6813. (psh2_print_zone): This to avoid errors during compilation of debug
  6814. library.
  6815. * src/smooth/ftgrays.c (FT_COMPONENT): Change definition to as
  6816. `trace_smooth'.
  6817. 2002-02-20 David Turner <david@freetype.org>
  6818. * README: Adding `devel@freetype.org' address for bug reports.
  6819. 2002-02-20 Werner Lemberg <wl@gnu.org>
  6820. * builds/unix/install.mk (check): New dummy target.
  6821. (.PHONY): Add it.
  6822. 2002-02-19 Werner Lemberg <wl@gnu.org>
  6823. * builds/freetype.mk (FT_CFLAGS): Use $(INCLUDE_FLAGS) first.
  6824. * src/cache/ftccache.c (ftc_cache_resize): Mark `error' as unused
  6825. to avoid compiler warning.
  6826. * src/cff/cffload.c (CFF_Get_String): Ditto.
  6827. * src/cff/cffobjs.c (CFF_StrCopy): Ditto.
  6828. * src/psaux/psobjs.c (PS_Table_Done): Ditto.
  6829. * src/pcf/pcfread.c (pcf_seek_to_table_type): Ditto.
  6830. * src/sfnt/sfdriver.c (get_sfnt_postscript_name): Ditto.
  6831. (pcf_get_bitmaps): The same for `sizebitmaps'.
  6832. * src/psaux/t1decode.c (T1_Decoder_Parse_Charstrings): The same for
  6833. `orig_y'.
  6834. (t1operator_seac): Comment out more dead code.
  6835. * src/pshinter/pshalgo2.c (ps2_hints_apply): Add `DEBUG_HINTER'
  6836. conditional.
  6837. * src/truetype/ttgload.c (TT_Process_Simple_Glyph,
  6838. load_truetype_glyph): Add `TT_CONFIG_OPTION_BYTECODE_INTERPRETER'
  6839. conditional.
  6840. 2002-02-18 Werner Lemberg <wl@gnu.org>
  6841. * src/autohint/ahglyph.c (ah_outline_link_segments): Remove unused
  6842. variables.
  6843. * src/autohint/ahhint.c (ah_align_serif_edge): Use FT_UNUSED instead
  6844. of UNUSED.
  6845. * src/autohint/ahmodule.c (ft_autohinter_reset): Ditto.
  6846. * src/pshinter/pshrec.c (ps_mask_table_merge): Fix typo in variable
  6847. swapping code.
  6848. * src/pshinter/pshglob.h (PSH_Blue_Align): Add PSH_BLUE_ALIGN_NONE.
  6849. * src/pshinter/pshglob.c (psh_blues_snap_stem): Use it.
  6850. * src/pshinter/pshalgo1.c (psh1_hint_table_optimize): Ditto.
  6851. * src/pshinter/pshalgo2.c (psh2_hint_align): Ditto.
  6852. * include/freetype/internal/ftobjs.h (UNUSED): Removed.
  6853. 2002-02-10 Roberto Alameda <ojancano@geekmail.de>
  6854. Add support for ISOLatin1 PS encoding.
  6855. * include/freetype/freetype.h (ft_encoding_latin_1): New tag
  6856. (`lat1').
  6857. * include/freetype/internal/t1types.h (T1_Encoding_Type): Add
  6858. `t1_encoding_isolatin1'.
  6859. * src/type1/t1driver.c (Get_Char_Index, Get_Next_Char): Handle
  6860. ft_encoding_latin_1.
  6861. * src/type1/t1load.c (parse_encoding): Handle `ISOLatin1Encoding'.
  6862. * src/type1/t1objs.c (T1_Face_Init): Handle `t1_encoding_isolatin1'.
  6863. ----------------------------------------------------------------------------
  6864. Copyright (C) 2002-2019 by
  6865. David Turner, Robert Wilhelm, and Werner Lemberg.
  6866. This file is part of the FreeType project, and may only be used, modified,
  6867. and distributed under the terms of the FreeType project license,
  6868. LICENSE.TXT. By continuing to use, modify, or distribute this file you
  6869. indicate that you have read the license and understand and accept it
  6870. fully.
  6871. Local Variables:
  6872. version-control: never
  6873. coding: utf-8
  6874. End: