NEWS 286 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628
  1. Release 1.14.12 (2017-06-13 Bryce Harrington <bryce@osg.samsung.com>)
  2. ========================================================================
  3. Another bugfix release rolling up backported fixes for the past half year.
  4. For a complete log of changes since 1.14.10, please see:
  5. http://cairographics.org/releases/ChangeLog.cairo-1.14.12
  6. Features
  7. --------
  8. None
  9. API Changes
  10. -----------
  11. None
  12. Dependency Changes
  13. ------------------
  14. None
  15. Performance Optimizations
  16. -------------------------
  17. None
  18. Bug Fixes
  19. ---------
  20. * Fix assertion hit with PDFs using Type 4 fonts rendered with user
  21. fonts, due to error when destroying glyph page.
  22. (Bug #103335)
  23. * Fix build error with util/font-view
  24. * Fix handling of truetype fonts with excessively long font names
  25. (Bug #103249)
  26. * Fix falling back to system font with PDFs using certain embedded
  27. fonts, due to truncated font names.
  28. (Bug #103249)
  29. * Fix sigabrt printing documents with fonts lacking the mandatory .nodef
  30. glyph.
  31. (Bug #102922)
  32. * Fix undefined-behavior with integer math.
  33. * Fix various warnings and typos
  34. Release 1.14.10 (2017-06-13 Bryce Harrington <bryce@osg.samsung.com>)
  35. ========================================================================
  36. Bugfix release rolling up backported fixes for the past half year.
  37. For a complete log of changes since 1.14.8, please see:
  38. http://cairographics.org/releases/ChangeLog.cairo-1.14.10
  39. Features
  40. --------
  41. None
  42. API Changes
  43. -----------
  44. None
  45. Dependency Changes
  46. ------------------
  47. None
  48. Performance Optimizations
  49. -------------------------
  50. None
  51. Bug Fixes
  52. ---------
  53. * Clarify documentation regarding device scale inheritance and the units
  54. used in cairo_surface_create_similar_image.
  55. Bug #99094.
  56. * Fix error reporting in the xcb backend if fallback fails. Instead of
  57. returning NULL when the X11 server can't do some operation, return a
  58. surface in an error state.
  59. * Call XSync in the xlib backend before setting the error handler to
  60. ignore errors for certain requests, to make sure all pending errors
  61. are handled first.
  62. * For opentype fonts, always use gid to lookup glyph.
  63. * If glyph 0 used for rendering, remap to different index.
  64. * Set font size to em size when retrieving unhinted metrics.
  65. * Flush ASCII85Decode file after use with Postscript files.
  66. * pdf: Don't fail subsetting if unable to convert utf8 to utf16.
  67. * For truetype, reverse cmap search should end when 0xffff- 0xffff range
  68. reached.
  69. * Fix bug in line wrapping with the PDF operators.
  70. * Fix an off by one check in cairo-image-info.c.
  71. Release 1.14.8 (2016-12-07 Bryce Harrington <bryce@osg.samsung.com>)
  72. ========================================================================
  73. Bugfix release rolling up backported fixes for the past year.
  74. For a complete log of changes since 1.14.6, please see:
  75. http://cairographics.org/releases/ChangeLog.cairo-1.14.8
  76. Features
  77. --------
  78. None
  79. API Changes
  80. -----------
  81. None
  82. Dependency Changes
  83. ------------------
  84. None
  85. Performance Optimizations
  86. -------------------------
  87. None
  88. Bug Fixes
  89. ---------
  90. * Fix "invalidfont" error on some printers when printing PDFs with
  91. embedded fonts that have glyphs (such as spaces) with
  92. num_contours == 0. (Bug #79897)
  93. * Fix deadlock when destruction of a scaled font indirectly triggers
  94. destruction of a second scaled font, causing the global cache to be
  95. locked twice. (Bug #93891)
  96. * Fix X errors reported to applications when shmdt() is called before
  97. the Attach request is processed, due to missing xcb and xlib calls.
  98. * Fix random failure in record-paint-alpha-clip-mast test case, caused
  99. by an incorrect assumption that a deferred clear can be skipped.
  100. (Bug #84330)
  101. * Fix crash when dealing with an XShmGetImage() failure, caused by a
  102. double free in _get_image_surface(). (Bug #91967)
  103. * Fix build issue when using non-GNU strings utility. (Bug #88639)
  104. * Cleanup debugging text sent to stdout instead of log. (Bug #95227)
  105. Release 1.14.6 (2015-12-09 Bryce Harrington <bryce@osg.samsung.com>)
  106. ========================================================================
  107. Simple bugfix release to fix one Windows issue.
  108. For a complete log of changes since 1.14.4, please see:
  109. http://cairographics.org/releases/ChangeLog.cairo-1.14.6
  110. Features
  111. --------
  112. None
  113. API Changes
  114. -----------
  115. None
  116. Dependency Changes
  117. ------------------
  118. None
  119. Performance Optimizations
  120. -------------------------
  121. None
  122. Bug Fixes
  123. ---------
  124. * Fix failure on Windows due to reference of the function
  125. cairo_win32_surface_create_with_format(), which isn't included in the
  126. 1.14.4 release. (Bug #92771)
  127. Release 1.14.4 (2015-10-28 Bryce Harrington <bryce@osg.samsung.com>)
  128. ========================================================================
  129. Just in time for Halloween we see another bug-fix release for Cairo.
  130. This brings a few dozen straightforward bug fixes with no API changes.
  131. In addition, this includes a typical assortment of fixes to tests,
  132. cleanup of warnings and memory leaks, correction of misspellings,
  133. updates to documentation, etc.
  134. For a complete log of changes since 1.14.2, please see:
  135. http://cairographics.org/releases/ChangeLog.cairo-1.14.4
  136. Features
  137. --------
  138. None
  139. API Changes
  140. -----------
  141. None
  142. Dependency Changes
  143. ------------------
  144. None
  145. Performance Optimizations
  146. -------------------------
  147. None
  148. Bug Fixes
  149. ---------
  150. * Avoid appending empty slots to user data arrays. Fixes a memory
  151. consumption regression since commit 9341c254a.
  152. * Return a better error (file-not-found) when setting up pango on
  153. devices where the font files don't have read permissions.
  154. * Fix regression in the font size of canvas text in Inkscape when
  155. compiled with the Quartz backend. (Bug #84324)
  156. * Fix _cairo_gl_shader_bind_matrix() to maintain compatibility with
  157. OpenGL ES 2.0. Manually transpose the matrix.
  158. * Fix incorrect font descriptor conversion when the font matrix yy is
  159. negative. (Bug #90538)
  160. * Fix crash when using a complex path for clip and stroke due to
  161. discarding the intersection exactly at the top edge.
  162. (Bug #74779)
  163. * Fix cairo_get_locale_decimal_point() on Android
  164. * Fix compilation problem on AIX due to conflicting usage of symbol
  165. 'jmpbuf'. (Bug #89339)
  166. * Fix broken rendering with XCB due to snapshotting of uploaded part of
  167. surfaces. (Bug #67505)
  168. * Fix loss of alpha when copying a mask for a cairo recording surface,
  169. resulting in a double copy. (Bugs #73038, #73901)
  170. * Fix incorrect recording of certain paths with script surfaces.
  171. (Bug #91054)
  172. * Fix typo in definition of MAYBE_WARN in configure script.
  173. (Bug #89750)
  174. * Fix use of filename variable after it's been freed.
  175. (Bug #91206)
  176. * Fix out of bounds access when printing pattern.
  177. (Bug #91266)
  178. * Fix incorrect size calculation in glyph cache unlocking for Cairo GL
  179. compositor.
  180. (Bug #91321)
  181. * Fix memory leak in _cairo_gl_pattern_texture_setup()
  182. (Bug #91537)
  183. * Fix transparent images in win32-print.
  184. (Bug #91835)
  185. * Fix _put_shm_image_boxes and _put_image_boxes when no SHM available
  186. with XCB.
  187. Release 1.14.2 (2014-03-09 Bryce Harrington <bryce@osg.samsung.com>)
  188. ====================================================================
  189. This release provides collected bug fixes, along with one feature
  190. enhancement for the xcb backend, and a small performance improvement for
  191. fonts.
  192. The running theme of the bug fixes is platform-specific issues, both
  193. build and run-time. Platforms with fixes include Sparc, AIX, Windows
  194. (mingw), and Windows (MSVC8). Memory leaks, valgrind issues, and PDF
  195. issues round out our list.
  196. It's come to light that changes in cairo 1.14 resulted in breakage on
  197. MacOS X 10.4. We've not yet determined whether to fix up the support,
  198. or excise the 10.4-specific code and support only OS X 10.5 or newer.
  199. Meantime, we'll only advertise cairo as working on OS X 10.5.
  200. Features
  201. --------
  202. * Improve xcb's handling of per-screen subpixel ordering. If no
  203. Xft.rgba property is specified, default to the screen's subpixel
  204. order.
  205. API Changes
  206. -----------
  207. None
  208. Dependency Changes
  209. ------------------
  210. None
  211. Performance Optimizations
  212. -------------------------
  213. * Improve performance of cpu_to_be32 and be32_to_cpu, making truetype
  214. subsetting of large fonts run about 15% faster.
  215. Bug Fixes
  216. ---------
  217. * Fix unaligned access on sparc with the compact font format (CFF).
  218. Unlike truetype, all data in CFF is not aligned.
  219. (Debian bug #712836)
  220. * Fix unaligned access on sparc with tor-scan-converter's memory pool.
  221. * Fix crash when loading a PDF with a transformed image.
  222. (fdo bug #85151)
  223. * Fix regression on mingw for bigendian test due to removal of file
  224. extension for executables.
  225. (fdo bug #85120)
  226. * Fix handling of backslash in PDF interpreter
  227. (fdo bug #85662)
  228. * Fix crash in xlib and xcb renderers when swapping a 0-sized glyph
  229. * Fix bug with RTL text in PDF operators
  230. (fdo bug #86461)
  231. * Fix compilation 'cairo-path-stroke-traps.c' with MSVC8
  232. (fdo bug #84908)
  233. * Fix crash in _fill_xrgb32_lerp_opaque_spans when a span length is
  234. negative.
  235. * Fix valgrind error by releasing pattern created by
  236. cairo_pattern_create_rgb().
  237. * Fix valgrind errors when running cairo-test-suite.
  238. * Fix memory leak in recording surface replays
  239. (fdo bug #87898)
  240. * Fix destruction of fonts in api-special-cases test.
  241. (fdo bug #87567)
  242. * Fix duplicated surface push on similar-image, preventing trivial GTK3
  243. program traces from being replayable, with an error message about
  244. invalid values for the size of the input.
  245. (fdo bug #73580)
  246. * Fix crash when win32 surface's image size does not cover the entire
  247. surface.
  248. (fdo bug #53121)
  249. * Fix crash due to obsolete CGFontGetGlyphPath call
  250. (fdo bug #84324)
  251. * Fix several build issues on AIX
  252. (fdo bugs #89338, #89340, #89356, #89354)
  253. * Fix various documentation warnings and errors
  254. Release 1.14.0 (2014-10-13 Bryce Harrington <bryce@osg.samsung.com>)
  255. ====================================================================
  256. Hard to believe it's been over a year since our last release, but it's
  257. not for lack of activity. This release includes contributions of a wide
  258. assortment of bug fixes, build system improvements, warnings cleanups,
  259. codebase refactoring, test suite repairs, and static analysis work.
  260. This release is lighter on features (compared with 1.12.10) but includes
  261. a highly demanded rehaul of our image downscaling functionality, which
  262. solves a serious problem experienced by Inkscape users when shrinking
  263. embedded bitmaps in SVG files. The new scaling algorithms are used by
  264. the image backend and by other backends as needed for fallbacks.
  265. Features
  266. --------
  267. Filtering improvements for the image backend, in particular
  268. down-scaling of images produces filtered images that depend on all the
  269. pixels of the source. When using the image backend you get the
  270. following settings:
  271. CAIRO_FILTER_GOOD: uses a box filter for scales less than .75 in
  272. either direction. For scales larger than this, the same filter as
  273. CAIRO_FILTER_BILINEAR is used.
  274. CAIRO_FILTER_BEST: uses a Catmull-Rom filter always. When upscaling
  275. more than 2x this will produce anti-aliased square pixels, similar
  276. to OS/X.
  277. CAIRO_FILTER_GAUSSIAN: uses PIXMAN_FILTER_BEST, which in current
  278. pixman is the same as BILINEAR. (This is subject to change in the
  279. future).
  280. xlib and xcb also use the image fallback for GOOD/BEST filters, but
  281. note that other backends do not implement these filtering fixes yet,
  282. however other actions may cause them to use an image fallback which
  283. will cause these filters to be used.
  284. Improve handling of device transformation and scaling, allowing Cairo
  285. to now support scaling at a device level, permitting easier, more
  286. transparent HiDPI support.
  287. Support JBIG2 mime data in PDF. This allows embedding of more
  288. compressed JPEG formats within PDF, rather than including the full
  289. uncompressed image. Also, reduce the number of transparency groups
  290. used by PDF to keep the file size small and viewing/printing of the
  291. PDF fast.
  292. Expand the embedding section to include stencil mask support.
  293. Reorder font declarations to be in natural order.
  294. Update the Skia backend to build against current Skia (as of June
  295. 2014).
  296. Drop Link-Time Optimization (LTO) support from build system. This
  297. seems to have caused much trouble for unclear benefit, and most
  298. distros are reverting or disabling it anyway.
  299. Optimize VBO size on GL to 1M and to 16k for EGL. This improves
  300. (theoretical) performance for desktop GLX use cases while avoiding
  301. hitting VBO memory size limitations on embedded devices.
  302. API Changes
  303. -----------
  304. cairo_surface_set_device_scale, cairo_surface_get_device_scale:
  305. Sets a scale that is multiplied to the device coordinates
  306. determined by the CTM when drawing to @surface. One common use for
  307. this is to render to very high resolution display devices at a scale
  308. factor, so that code that assumes 1 pixel will be a certain size
  309. will still work.
  310. cairo_egl_device_get_display, cairo_egl_device_get_context:
  311. Support get/set of EGLContext and EGLDisplay for egl-based cairo
  312. devices, similar to GLX.
  313. Dependency Changes
  314. ------------------
  315. Cairo now requires glib 2.14 for its gobject helper functions,
  316. and pixman 0.30 for downscaling.
  317. Bug fixes
  318. ---------
  319. Don't embed CMYK Jpeg images in svg.
  320. Fix tests to place output in proper location.
  321. Fix determination of alpha for all surfaces when recording.
  322. Extend oversize check to cairo_gl_surface_create_for_texture, so an
  323. error surface is returned if the texture is too large to render to.
  324. Fix embedding of mime data in PDF and PS files.
  325. Remove useless error handling in *_reply() functions in XCB.
  326. Fix a double-free exposed by multithreaded apps creating and
  327. destroying the same font concurrently.
  328. https://bugs.freedesktop.org/show_bug.cgi?id=69470
  329. Fix corrupt stacks produced by bugs in operand emission for trace.
  330. Fix out of bounds array access in format cache for xlib
  331. Don't rename glyphs used by seac operator. This can cause certain
  332. combined characters to use their decorations (e.g. umlauts on ö) to be
  333. lost during printing of PDFs using evince.
  334. https://bugs.freedesktop.org/show_bug.cgi?id=70364
  335. Fix crash on calling cairo_create with a finished surface
  336. Fix SSIZE_T definition problem when making with MSYS on Windows7
  337. Fix one off issue in gl context cleanup
  338. Fix usage of CAIRO_STACK_ARRAY_LENGTH
  339. Fix rectangle stroke with non rectilinear pen
  340. Fix imagemask with pattern source failure on some printers. This bug
  341. could cause files converted using pdftops to fail for example on Ricoh
  342. printers, or opening in Adobe Distiller on Windows.
  343. https://bugs.freedesktop.org/show_bug.cgi?id=69485
  344. Fix whitespace in font names
  345. Fix page size in generated PDFs. When printing using pdftocairo on
  346. larger page sizes, such as 11x17, the image would be cropped to letter
  347. size.
  348. https://bugs.freedesktop.org/show_bug.cgi?id=73452
  349. Fix path-currentpoint test by preserving current-point in
  350. copy_path()/append_path() sequence
  351. Fix generation of HTML in code docs for
  352. cairo-format-stride-for-width. Raw HTML code was being passed
  353. to the browser, instead of displaying normally.
  354. https://bugs.freedesktop.org/show_bug.cgi?id=63257
  355. Fix spelling of "tessellator" throughout code. We're using the
  356. American rather than British spelling of this word.
  357. https://bugs.freedesktop.org/show_bug.cgi?id=50411
  358. Fix crash in pixman_image_composite32
  359. Fix crash when trying to modify a (const) all-clipped cairo_clip_t
  360. https://bugs.freedesktop.org/show_bug.cgi?id=75819
  361. Add check_composite method to all compositors, to fix crashes in the
  362. test suite.
  363. Fix crash in Firefox when scrolling on certain pages.
  364. Fix memory leaks found by static analysis.
  365. Fix build of any2ppm if fork is not available.
  366. Fix broken build for Qt backend, due to missing libstdc++.
  367. Fix typo in two cairo_uint128 functions. Fixes potential build issues
  368. on systems without a uint128 type.
  369. Fix build when --enable-pdf=no
  370. Fix cache_frozen assertions for Win32 print.
  371. Correctly check for xcb image surface for inplace upload
  372. Fix webkit-based web browser crashes due to empty boxes by skipping
  373. over them when tesselating.
  374. Make pixman, libpng, and zlib paths commandline configurable for win32
  375. builds.
  376. Fix image scale on Win32 when GDI scale is not identity.
  377. Fix float endian configure test when using clang -O4
  378. Fix compilation with Android bionic libc
  379. Don't try to build util/sphinx on Windows
  380. Fix loss of precision when emitting joins. This was caused by
  381. discrepancies in line gradients when passing trapezoids around.
  382. Fix loss of precision and associated rendering issues in
  383. cairo-tor-scan-converter from projection onto sample grid.
  384. Fix pixman oversampling of neighbouring edges within a cell by
  385. eliminating self-intersections for the pixman traps compositor.
  386. Fix multi-line string splitting in PDFs
  387. Various cleanups and fixes to warnings, documentation, tests, and
  388. build system. Improve error handling and return value checks.
  389. Cleanup XFAIL tests and reference images. Cover recently added
  390. functionality.
  391. Release 1.12.16 (2013-08-21 Chris Wilson <chris@chris-wilson.co.uk>)
  392. ===================================================================
  393. Thanks to everybody who reported a bug and helped us develop a fix,
  394. we have amassed quite a few bug fixes. There are still more outstanding
  395. bugs that seek attention and a little bit of TLC, but this release has
  396. been delayed long enough...
  397. Bug fixes
  398. ---------
  399. Set the correct orientation for simple boxes with a negative scale
  400. factor.
  401. Fix the creation of the shading dictionary in PDF.
  402. Fix a crash in PDF when incorporating an image with CAIRO_EXTEND_PAD.
  403. https://bugs.freedesktop.org/show_bug.cgi?id=61451
  404. Avoid upscaling bitmap fonts if possible.
  405. Fix an assertion failure within the mempool allocator for shared memory.
  406. Fix allocation size for CFF subsets.
  407. Export cairo_matrix_t for GObject bindings.
  408. Fix a double free in the Quartz backend.
  409. https://bugs.freedesktop.org/show_bug.cgi?id=62885
  410. Fix origin of GDI StretchBlits for the Windows backend
  411. https://bugs.freedesktop.org/show_bug.cgi?id=61876
  412. Fix error propagation for requests to create a similar surface with
  413. negative size.
  414. https://bugs.freedesktop.org/show_bug.cgi?id=63196
  415. Fix complex clipping of trapezoids with regions
  416. https://bugzilla.gnome.org/show_bug.cgi?id=697357
  417. Stop leaking the image data when loading PNGs
  418. Fix unbounded operations with a clip mask through the span compositor
  419. https://bugs.freedesktop.org/show_bug.cgi?id=61592
  420. Add missing checks before rendering to a finished surface - so we return
  421. an error rather than hit an assert.
  422. https://bugs.freedesktop.org/show_bug.cgi?id=68014
  423. Prevent an assertion failure when creating similar GL surfaces larger
  424. than supported by hardware.
  425. Prevent a double free of a similar image under Windows.
  426. https://bugs.freedesktop.org/show_bug.cgi?id=63787
  427. Release 1.12.14 (2013-02-10 Chris Wilson <chris@chris-wilson.co.uk>)
  428. ===================================================================
  429. In the last week we had a few more bugs reported and promptly resolved.
  430. As these are a combination of regressions and stability issues, it is
  431. time for a prompt update and release. Many thanks to everyone for
  432. testing and reporting issues, and helping to make Cairo better.
  433. Bug fixes
  434. ---------
  435. Prevent user callbacks accessing user-data during destroy to prevent
  436. use-after-free bugs.
  437. https://bugzilla.mozilla.org/show_bug.cgi?id=722975
  438. Use standard names for glyphs in subset fonts (PDF).
  439. https://bugs.freedesktop.org/show_bug.cgi?id=60248
  440. Fix detection of Win98. The logic for detecting Win98 (and its broken
  441. AlphaBlend()) was inverted, disabling AlphaBlend() for everyone.
  442. Prevent numeric overflow from extrapolating polygon edges to the clip
  443. boundary and causing severe render artifacts.
  444. https://bugs.freedesktop.org/show_bug.cgi?id=60489
  445. Fix computation of glyph string coordinates when breaking up runs
  446. for xlib.
  447. Fix an assertion in the win32 backend for failing to clear its
  448. similar-images.
  449. https://bugs.freedesktop.org/show_bug.cgi?id=60519
  450. Release 1.12.12 (2013-01-31 Chris Wilson <chris@chris-wilson.co.uk>)
  451. ===================================================================
  452. The goal of this release is to fix the synchronisation problems that
  453. were exhibited in the SHM transport for cairo-xlib. This cropped up
  454. any place that tried to rapidly push fresh pixel data to the X server
  455. through an ordinary image surface, such as gimp-2.9 and evince.
  456. Bug fixes
  457. ---------
  458. Avoid replacing the entire image when uploading subimages
  459. https://bugs.freedesktop.org/show_bug.cgi?id=59635
  460. Force synchronisation for scratch SHM image buffers, so that we do
  461. not overwrite data as it is being read by X.
  462. https://bugs.freedesktop.org/show_bug.cgi?id=59635 (also)
  463. Fix typos in detecting multisampling for the GL (MSAA) backend.
  464. Fix a memory leak in the GL (MSAA) backend.
  465. Fix a reference counting bug when mapping a GL surface to an image.
  466. Release 1.12.10 (2013-01-16 Chris Wilson <chris@chris-wilson.co.uk>)
  467. ===================================================================
  468. A heap of bug fixes everywhere, and the gradual completion of the MSAA
  469. backend for cairo-gl. Perhaps the most noteworthy set of the bugfixes
  470. was the crusage lead by Behdad Eshfabod to make font handling by
  471. pango/cairo/fontconfig fully threadsafe. This testing revealed a couple
  472. of races that needed fixing in Cairo's scaled-font and glyph cache.
  473. Bug fixes
  474. ---------
  475. Append coincident elements to the recording's surface bbtree so that
  476. the list is not corrupted and the overlapping elements lost.
  477. Fix cairo-trace to correctly record map-to-image/unmap-image and then
  478. replay them.
  479. Ignore MappingNotifies when running the XCB testsuite as they are sent
  480. to all clients when the keyboard changes. The testsuite would detect
  481. the unexpected event and complain.
  482. Handle very large images in the XCB backend.
  483. Fix a memory leak in the xlib/shm layer, and prevent use of the SHM
  484. surfaces after the display is closed.
  485. https://bugs.freedesktop.org/show_bug.cgi?id=58253
  486. Handle resizing of bitmap fonts, in preparation for a fix to
  487. fontconfig to correctly pass on the user request for scaling.
  488. Always include subroutine 4 (hint replacement idion) when subsetting
  489. type 1 fonts in order to prevent a crash in cgpdftops on Mac OS/X
  490. Fix a couple of typos in the cairo-gobject.h header files for
  491. introspection.
  492. Prevent a mutex deadlock when freeing a scaled-glyph containing a
  493. recording-surface that itself references another scaled-glyph.
  494. https://bugs.freedesktop.org/show_bug.cgi?id=54950
  495. Make scaled-font cache actually thread-safe and prevent
  496. use-after-frees.
  497. Restore support for older versions of XRender. A couple of typos and a
  498. few forgotten chunks prevented the xlib compositor from running
  499. correctly with XRender < 0.10. Note that there are still a few
  500. regressions remaining.
  501. Release 1.12.8 (2012-11-24 Chris Wilson <chris@chris-wilson.co.uk>)
  502. ===================================================================
  503. Another couple of weeks and a few more bugs have been found and fixed,
  504. it is time to push the next point release. Many thanks to everyone who
  505. reported their issues and helped us track down the bugs and helped
  506. testing the fixes.
  507. Bug fixes
  508. ---------
  509. Expand the sanity checking for broken combinations of XSendEvent and
  510. ShmCompletionEvent.
  511. Notice that "The X.Org Foundation" sometimes also identifies itself
  512. as "The Xorg Foundation".
  513. Handle various ages of libXext and its Shm headers.
  514. Fix the invalid clipping of the source drawable when using SHM
  515. transport to upload images.
  516. https://bugs.freedesktop.org/show_bug.cgi?id=56547
  517. Handle all Type1 postscript operators for better font compatibility.
  518. https://bugs.freedesktop.org/show_bug.cgi?id=56265
  519. Fix a couple of memory leaks in Type1 font subsetting
  520. https://bugs.freedesktop.org/show_bug.cgi?id=56566
  521. Tighten the evaluation of the start/stop pen vertices, and catch a few
  522. instances where we would use a fan instead of a bevel.
  523. https://bugs.freedesktop.org/show_bug.cgi?id=56432
  524. Fix assumption that geometric clipping always succeeds with the
  525. span-compositor.
  526. https://bugs.freedesktop.org/show_bug.cgi?id=56574
  527. Fix call to spline intersection when evaluating whether a stoke is
  528. visible.
  529. Remember to copy inferior sources when using SHM to readback the
  530. surface for use as a source.
  531. Release 1.12.6 (2012-10-22 Chris Wilson <chris@chris-wilson.co.uk>)
  532. ===================================================================
  533. Thanks to everyone who download cairo-1.12.4 and gave us their feedback.
  534. It truly was invaluable and has helped us to fix many portability issues
  535. that crept in with some of the new features. This release aims to fix
  536. those stability issues and run on a wider range of systems.
  537. Bug fixes
  538. ---------
  539. Fix the recording surface to actually snapshot the source and so fix
  540. PDF drawing.
  541. Calling XSendEvent with an XShmCompletionEvent is incompatabile with
  542. older Xorg servers.
  543. Reorder CloseDisplay chain so that XShm is not reinstantiated after
  544. shutdown, causing a potential crash if the Display was immediately
  545. recreated using the same memory address.
  546. Make sure that the Xserver has attached to the SHM segment before
  547. deleting it from the global namespace on systems that do not support
  548. deferred deletion.
  549. Type1 subsetting support for PDF (and PS) was once again improved to
  550. work with a larger number of PDF readers.
  551. GLESv2 build fixes and improved support for embedded GPUs.
  552. Tweak the invisible pen detection for applications that are currently
  553. using too large values for geometric tolerance.
  554. A build fix for older freetype libraries.
  555. Release 1.12.4 (2012-10-05 Chris Wilson <chris@chris-wilson.co.uk>)
  556. ===================================================================
  557. More bugs, and more importantly, more fixes. On the cairo-gl side, we
  558. have refinements to the MSAA compositor which enables hardware
  559. acceleration of comparatively low-quality antialiasing - which is useful
  560. in animations and on very high density screens. For cairo-xlib, we have
  561. finally enabled SHM transport for image transfers to and from the X
  562. server. A long standing required feature, SHM transport offers a notable
  563. reduction in rendering latency by reducing the number of copies
  564. required to upload image data - given hardware and driver support,
  565. cairo-xlib can now perform zero copy uploads onto the GPU. And as usual
  566. Adrian Johnson has been very busy fixing many different corner cases in
  567. cairo-pdf, impoving opacity groups and font subsetting. Last, but not
  568. least, for cairo-image Søren Sandmann Pedersen added support for
  569. rendering glyphs to pixman and using that from within cairo. The new
  570. glyph rendering facility reduces the overhead for setting up the
  571. compositing operation, improving glyph thoughput for the image backend
  572. by a factor of about 4. And before he did so, he also fixed up a few
  573. bugs in the existing glyph rendering code. So many thanks to Andrea
  574. Canciani, Adrian Johnson, Chuanbo Weng, Dongyeon Kim, Henry Song, Martin
  575. Robinson, Søren Sandmann Pedersen and Uli Schlachter for their
  576. contributions, finding and fixing bugs.
  577. Bug fixes
  578. ---------
  579. Interior boxes were being dropped when amalgamating regions during
  580. tesselation.
  581. https://bugs.freedesktop.org/show_bug.cgi?id=49446
  582. Allow building without gtk-doc installed
  583. Invalid edge generation whilst reducing complex polygons.
  584. https://bugs.freedesktop.org/show_bug.cgi?id=50852
  585. Stroking around tight cusps
  586. Use locale correct formats for reading font subsetting and valid
  587. buffers.
  588. https://bugs.freedesktop.org/show_bug.cgi?id=51443
  589. Ensure that the type1 subset includes all the glyph encodings
  590. https://bugs.freedesktop.org/show_bug.cgi?id=53040
  591. Upload the whole source for a repeating pattern.
  592. https://bugs.freedesktop.org/show_bug.cgi?id=51910
  593. Fix damage tracking to handle continuation chunks corectly and so
  594. prevent crashes on win32.
  595. https://bugs.freedesktop.org/show_bug.cgi?id=53384
  596. Avoid emitting miter joins for degenerate line segments
  597. https://bugzilla.mozilla.org/show_bug.cgi?id=407107
  598. Convert the relative path semgents into the backend coordinates
  599. and then back again to user coordinates (cairo_copy_path,
  600. cairo_append_path)
  601. https://bugs.freedesktop.org/show_bug.cgi?id=54732
  602. Fix extents computations for a degenerate path consisting only of a
  603. move-to
  604. https://bugs.freedesktop.org/show_bug.cgi?id=54549
  605. Prevent crashing on a degenerate project edge after polygon
  606. intersection
  607. https://bugs.freedesktop.org/show_bug.cgi?id=54822
  608. Release 1.12.2 (2012-04-29 Chris Wilson <chris@chris-wilson.co.uk>)
  609. ===================================================================
  610. After such a long gestation period for the release of Cairo 1.12, we
  611. inevitably accumulated a few bugs that were flushed out by broadening the
  612. test base. Thanks to everybody who tried the release, apologies to any one
  613. unfortunate enough to encounter a bug and many thanks for reporting it. As
  614. a result Adrian Johnson, Alexandros Frantzis, Andrea Canciani, Kalev
  615. Lember, Maarten Bosman, Marcus Meissner, Nis Martensen and Uli Schlachter
  616. have squashed many more bugs and improved the documentation. I would
  617. strongly recommend everyone to upgrade to cairo-1.12.2.
  618. -Chris
  619. Bug fixes
  620. ---------
  621. Allow applications to create 0x0 xlib surfaces, such as used by LibreOffice.
  622. https://bugs.freedesktop.org/show_bug.cgi?id=49118
  623. Trim composite extents for SOURCE/CLEAR operators to the mask.
  624. Use fallback fonts in PDF for unhandled computed glyph widths
  625. https://bugs.freedesktop.org/show_bug.cgi?id=48349
  626. Handle snapshots of recording surfaces for analysing pattern extents.
  627. Fixes a regression of reporting the PDF bounding box as being the page size.
  628. Fix allocation size for PDF pattern ids.
  629. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=49089
  630. Fix emission of rectilinear dashed segments, with and without scaling, and
  631. application of degenerate line joins.
  632. Clamp unbounded fixup polygons to the clip extents.
  633. Prevent infinite loop due to rounding errors whilst incrementing along dashes.
  634. Prevent overflow for inline a8 span filling.
  635. Miscellaneous build fixes for Cygwin on Windows and Solaris.
  636. Release 1.12.0 (2012-03-23 Chris Wilson <chris@chris-wilson.co.uk>)
  637. ===================================================================
  638. It's taken over 18 months, but the wait is finally over. A new cairo release!
  639. We are pleased to annouce a new stable release of Cairo that brings many
  640. new features and performance improvements, all whilst maintaining
  641. compatibility with cairo-1.0 and all releases since. We recommend anyone
  642. using a previous release of Cairo to upgrade to 1.12.0.
  643. The major feature of this release is the introduction of a new procedural
  644. pattern; the mesh gradient. This, albeit complex, gradient is constructed
  645. from a set of cubic Bezier patches and is a superset of all other gradient
  646. surfaces which allows for the construction of incredibily detailed patterns.
  647. In PDF parlance, the mesh gradient corresponds with type 7 patterns. Many
  648. thanks to Andrea Canciani for bringing this to Cairo, and for his work on
  649. making gradient handling robust.
  650. Not content with just adding another procedural pattern, Cairo 1.12 also
  651. adds new API to create a callback pattern,
  652. cairo_pattern_create_raster_source, that allows the application to
  653. provide the pixel data for the region of interest at the time of
  654. rendering. This can be used for instance, by an application to decode
  655. compressed images on demand and to keep a cache of those decompressed
  656. images, independently of Cairo. When combined with the recording
  657. surface, it should form a useful basis for a deferred renderer.
  658. With the release of cairo-1.12, we also introduce a new supported
  659. backend for interoperating with X using XCB. Uli Schlachter, also
  660. maintainer of awesome and contributor to libxcb, has volunteered to
  661. maintain cairo-xcb for us. Thanks Uli!
  662. For cairo-1.12, we have also added some common API to address any
  663. surface as an image and so allow direct modification of the raster data.
  664. Previously, only the Quartz and Win32 backends supported a very narrow
  665. interface to allow for efficient pixel upload. Now with
  666. cairo_surface_create_similar_image, cairo_surface_map_to_image, and
  667. cairo_surface_unmap_image, Cairo exports a consistent method for
  668. treating those surfaces as an image and so allow modification inplace.
  669. These are the same routines used internally, and should support
  670. efficient transfer or direct mapping of the target surfaces as
  671. applicable.
  672. Another focus over the past year has been to address many performance
  673. issues, without sacrificing the composition model. To accomplish the
  674. goal, once again the rasterisation pipeline was overhauled and made
  675. explicit, giving the backends the freedom to implement their own
  676. specific pipeline whilst also providing a library of common routines
  677. from which to build the pipeline. For instance, this allows the image
  678. backend and the gl backend to composite scan line primitives inplace,
  679. and to then implement custom fallbacks to catch the corner cases that do
  680. not map onto their fastest paths. Similarly, this allows for the Xlib
  681. backend to implement trapezoidation without compromising the other
  682. backends, yet still allow for the pipeline to be used elsewhere for
  683. testing and fallbacks. Clipping was once again overhauled, so that the
  684. common cases for the raster pipelines could be captured and processed
  685. with fast paths with the emphasis on performing geometric clipping to
  686. reduce the frequency of using multi-pass clipmasks. Stroking was made
  687. faster, both by providing specialised fast-paths for simple, yet frequent,
  688. cases (such as stroking around a rectangle) and by reducing the number
  689. of edges generated by the general stroker.
  690. As part of the focus on performance, Cairo 1.12 introduces some
  691. antialias hints (NONE, FAST, GOOD, BEST) that are interpolated by the
  692. rasterisers to fine tune their performance versus quality. Cairo 1.12
  693. also introduces a new observation architecture,
  694. cairo_surface_observer_t, which can be used to analyse the amount of
  695. time consumed by drawing commands and help identify inefficiencies in
  696. both Cairo and the application.
  697. Last, but by no means least, the OpenGL backend has seen significant
  698. work including the port to GLESv2 and the exploitation of advanced
  699. hardware features. Interesting times.
  700. As always, I would like to thank everyone who contributed to Cairo,
  701. not only through writing code, but also submitting documentation, bug
  702. reports, suggestions and generally having fun with Cairo! In particular
  703. though this release could not have happened without the efforts of
  704. Adrian Johnson, Alexandros Frantiz, Andrea Canicani, Martin Robinson,
  705. Nis Martensen, and Uli Schlachter. Thanks.
  706. -Chris
  707. Snapshot 1.11.4 (2012-13-12)
  708. ============================
  709. The cairo community is pleased to finally announce the long aniticpated
  710. release candidate for 1.12, 1.11.4, of the cairo graphics library. This
  711. is the first major update to cairo in over a year and brings a large
  712. number of new features; undoubtably a few bugs as well.
  713. While many people have contributed and have helped to test the release,
  714. providing feedback on 1.10 and suggesting improvements, this release
  715. is the result of a few persevering souls who deserve recognition for their
  716. outstanding contributions: Andrea Canciani (all round bug fixing,
  717. performance tuning and master of the gradients), Adrian Johnson (PDF
  718. supremo) and Uli Schlachter (who stepped forward as maintainer for the
  719. XCB backend).
  720. Major additions since 1.11.2:
  721. * cairo_surface_map_to_image API for pixel level access to any surface
  722. * New antialias hints to control the trade-off between speed and quality
  723. * A callback pattern, cairo_pattern_create_raster_source, for lazy
  724. decoding of image data.
  725. * cairo_surface_observer_t, a new type of surface to gather performance
  726. statistics
  727. * XCB as a supported backend
  728. * A rewritten compositor pipeline for performance improvements for, but not
  729. limited to, the xlib and image backends.
  730. From ION and PineView through to SandyBridge, every machine I have shows
  731. across the board performance improvement on the cairo-traces:
  732. i5-2520m gnome-system-monitor: 5.97x speedup
  733. pnv gnome-system-monitor: 4.86x speedup
  734. i5-2520m firefox-asteroids: 4.66x speedup
  735. pnv firefox-asteroids: 4.43x speedup
  736. image firefox-canvas: 3.82x speedup
  737. i5-2520m firefox-canvas-alpha: 3.49x speedup
  738. image firefox-asteroids: 2.87x speedup
  739. pnv firefox-talos-svg: 2.83x speedup
  740. ion grads-heat-map: 2.75x speedup
  741. pnv firefox-canvas-alpha: 2.66x speedup
  742. image gnome-system-monitor: 2.66x speedup
  743. image swfdec-giant-steps: 2.46x speedup
  744. image firefox-canvas-alpha: 2.14x speedup
  745. i5-2520m firefox-talos-svg: 2.03x speedup
  746. image grads-heat-map: 2.02x speedup
  747. ion gnome-system-monitor: 2.00x speedup
  748. pnv firefox-particles: 1.99x speedup
  749. i5-2520m grads-heat-map: 1.96x speedup
  750. pnv firefox-canvas: 1.92x speedup
  751. ion firefox-particles: 1.80x speedup
  752. image poppler-reseau: 1.77x speedup
  753. pnv xfce4-terminal-a1: 1.72x speedup
  754. image firefox-talos-svg: 1.65x speedup
  755. pnv grads-heat-map: 1.63x speedup
  756. i5-2520m firefox-canvas: 1.63x speedup
  757. pnv swfdec-youtube: 1.62x speedup
  758. image ocitysmap: 1.59x speedup
  759. i5-2520m firefox-fishbowl: 1.56x speedup
  760. i5-2520m poppler-reseau: 1.50x speedup
  761. i5-2520m evolution: 1.50x speedup
  762. i5-2520m midori-zoomed: 1.43x speedup
  763. pnv firefox-planet-gnome: 1.42x speedup
  764. i5-2520m firefox-talos-gfx: 1.41x speedup
  765. i5-2520m gvim: 1.41x speedup
  766. pnv ocitysmap: 1.37x speedup
  767. image poppler: 1.31x speedup
  768. ion firefox-canvas-alpha: 1.35x speedup
  769. ion firefox-talos-svg: 1.34x speedup
  770. i5-2520m ocitysmap: 1.32x speedup
  771. pnv poppler-reseau: 1.31x speedup
  772. i5-2520m firefox-planet-gnome: 1.31x speedup
  773. pnv firefox-fishbowl: 1.30x speedup
  774. pnv evolution: 1.28x speedup
  775. image gvim: 1.27x speedup
  776. i5-2520m swfdec-youtube: 1.25x speedup
  777. pnv gnome-terminal-vim: 1.27x speedup
  778. pnv gvim: 1.25x speedup
  779. image firefox-planet-gnome: 1.25x speedup
  780. image swfdec-youtube: 1.25x speedup
  781. ...
  782. And a plethora of minor improvements everywhere!
  783. -Chris
  784. Snapshot 1.11.2 (2011-01-23)
  785. ===========================
  786. In this first snapshot along the way to cairo-1.12.0, we are very excited
  787. to announce the introduction of Bezier surface gradients, known as type
  788. 6/7 gradients in PS/PDF parlance. This is the culmination of much work by
  789. the dynamic duo: Adrian Johnson and Andrea Canciani. Thanks guys!
  790. Also, I want to warmly welcome Uli Schlachter who recently joined the
  791. Cairo community on a mission. That mission is to make cairo-xcb a
  792. supported backend for 1.12. And for this snapshot he has made great
  793. strides in fixing all the bugs I had left behind. Thanks Uli!
  794. And we have also seen a new contributor, Alexandros Frantzis, who has
  795. begun bringing up cairo-gl for GLESv2 devices. Thanks Alex!
  796. And lastly, I must also thank Adrian and Andrea for the vast numbers of
  797. bugs that they have tackled between them, fixing all those little corner
  798. cases that lie hidden until too late.
  799. API additions:
  800. The ability to construct piece-wise Bezier surface gradients:
  801. cairo_pattern_create_mesh
  802. constructs a pattern of type CAIRO_PATTERN_TYPE_MESH using
  803. cairo_pattern_mesh_begin_patch
  804. cairo_pattern_mesh_end_patch
  805. cairo_pattern_mesh_curve_to
  806. cairo_pattern_mesh_line_to
  807. cairo_pattern_mesh_move_to
  808. cairo_pattern_mesh_set_control_point
  809. cairo_pattern_mesh_set_corner_color_rgb
  810. cairo_pattern_mesh_set_corner_color_rgba
  811. cairo_pattern_mesh_get_patch_count
  812. cairo_pattern_mesh_get_path
  813. cairo_pattern_mesh_get_corner_color_rgba
  814. cairo_pattern_mesh_get_control_point
  815. The introduction of a unique ID accessible via the mime data type:
  816. CAIRO_MIME_TYPE_UNIQUE_ID
  817. Release 1.10.2 (2010-12-25 Chris Wilson <chris@chris-wilson.co.uk>)
  818. ===================================================================
  819. The cairo community is pleased to announce the 1.10.2 release of the
  820. cairo graphics library. This is the first update to cairo's stable 1.10
  821. series and contains a large number of bug fixes.
  822. While many people have contributed and have help to test the release,
  823. 2 people deserve special recognition for their efforts in tracking down
  824. and fixing bugs, Andrea Canciani and Adrian Johnson. Thanks to their
  825. tremendous efforts, and of all cairo contributors, it is much
  826. appreciated.
  827. We recommend everyone upgrade to cairo 1.10.2 and hope that everyone
  828. will continue to have lots of fun with cairo!
  829. -Chris
  830. Bug fixes
  831. ---------
  832. Fix embedding of grayscale jpegs in PS.
  833. https://bugs.freedesktop.org/show_bug.cgi?id=31632
  834. Fix the reported path of extents containing a curve.
  835. Fix the compositing of unaligned boxes.
  836. Reset the clipper in PDF upon finish.
  837. Fix degenerates arcs to become a degenerate line.
  838. Build support for autoconf 2.67
  839. Fix painting of transformed patterns in PS
  840. Fix the EPS bounding box for PS
  841. https://bugs.freedesktop.org/show_bug.cgi?id=24688
  842. Fix the missing content for EPS
  843. https://bugs.freedesktop.org/show_bug.cgi?id=24688
  844. Fix regression upon changing page size in PS/PDF
  845. https://bugs.freedesktop.org/show_bug.cgi?id=24691
  846. Only use ActualText with PDF-1.5 documents
  847. Fix the bbox for type1 fallbacks.
  848. Reset the color after ending the context in PDF
  849. https://bugs.freedesktop.org/show_bug.cgi?id=31140
  850. Fix the advance of subsetted type1 fonts
  851. https://bugs.freedesktop.org/show_bug.cgi?id=31062
  852. Fix handling of EXTEND_NONE gradients for PDF
  853. Restrict in-place optimisation for a8 image masks with SOURCE
  854. Release 1.10.0 (2010-09-06 Chris Wilson <chris@chris-wilson.co.uk>)
  855. ===================================================================
  856. The cairo community is astounded (and flabbergast) to finally announce
  857. the 1.10.0 release of the cairo graphics library. This is a major update
  858. to cairo, with new features and enhanced functionality which maintains
  859. compatibility for applications written using any previous major cairo
  860. release, (1.8, 1.6, 1.4, 1.2, or 1.0). We recommend that anybody using
  861. a previous version of cairo upgrade to cairo 1.10.0.
  862. One of the more interesting departures for cairo for this release is the
  863. inclusion of a tracing utility, cairo-trace. cairo-trace generates a
  864. human-readable, replayable, compact representation of the sequences of
  865. drawing commands made by an application. This can be used to inspecting
  866. applications to understand issues and as a means for profiling
  867. real-world usage of cairo.
  868. The traces generated by cairo-trace have been collected in
  869. git://git.cairographics.org/git/cairo-traces
  870. and have driven the performance tuning of cairo over the last couple of
  871. years. In particular, the image backend is much faster with a new
  872. polygon rasterisation and a complete overhaul of the tessellator. Not
  873. only is this faster, but also eliminates visual artifacts from
  874. self-intersecting strokes. Not only has cairo-trace been driving
  875. performance improvements within cairo, but as a repeatable means of
  876. driving complex graphics it has been used to tune OpenGL, DDX, and
  877. pixman.
  878. Cairo's API has been extended to better support printing, notably
  879. through the ability to include a single compressed representation of an
  880. image for patterns used throughout a document, leading to dramatic file
  881. size reductions. Also the meta-surface used to record the vector
  882. commands compromising a drawing sequence is now exposed as a
  883. CAIRO_SURFACE_TYPE_RECORDING, along with a new surface that is a child of a
  884. larger surface, CAIRO_SURFACE_TYPE_SUBSURFACE. One typical usage of a
  885. subsurface would be as a source glyph in a texture atlas, or as a
  886. restricted subwindow within a canvas.
  887. Cairo's API has also resurrected the RGB16 format from the past as
  888. the prevalence of 16-bit framebuffers has not diminished and is a
  889. fore-taste of the extended format support we anticipate in the future.
  890. Increasing cairo's utility, we introduce the cairo_region_t for handling
  891. sets of pixel aligned rectangles commonly used in graphics applications.
  892. This is a merger of the GdkRegion and the pixman_region_t, hopefully
  893. providing the utility of the former with the speed of the latter.
  894. Furthermore cairo has been reworked to interoperate more closely with
  895. various acceleration architectures, gaining the ability to share
  896. those hardware resources through the new cairo_device_t. For instance,
  897. with the new OpenGL backend that supersedes the Glitz backend, hardware
  898. and rendering operations can be shared between a classic OpenGL
  899. application mixing libVA for the hardware assisted video decode with
  900. cairo for high quality overlays all within the same OpenGL canvas.
  901. Many thanks for the hard work of Adrian Johnson, Andrea Canciani, Behdad
  902. Esfahbod, Benjamin Otte, Carl Worth, Carlos Garcia Campos, Chris Wilson,
  903. Eric Anholt, Jeff Muizelaar, Karl Tomlinson, M Joonas Pihlaja, Søren
  904. Sandmann Pedersen and many others that have contributed over the last
  905. couple of years to cairo. Thank you all!
  906. Snapshot 1.9.14 (2010-07-26)
  907. ============================
  908. A quiet couple of weeks, hopefully Cairo is seeing widescale deployment and
  909. we are being to see the results of the stabilisation effort. Clipping bugs
  910. seems to have been the order of the last couple of weeks, with a couple
  911. reported and duly fixed. Thank you Igor Nikitin and Karl Tomlinsion for
  912. finding those regressions. At this point all that seems to remain to do is
  913. to fix the outstanding regressions in the PDF backend...
  914. Bugs fixes
  915. ----------
  916. Clip doesn't work for text on the image backend
  917. https://bugs.freedesktop.org/show_bug.cgi?id=29008
  918. Add explicit dependency for cxx
  919. https://bugs.freedesktop.org/show_bug.cgi?id=29114
  920. Fix regressions in reporting clip extents
  921. https://bugs.freedesktop.org/show_bug.cgi?id=29120
  922. https://bugs.freedesktop.org/show_bug.cgi?id=29121
  923. https://bugs.freedesktop.org/show_bug.cgi?id=29122
  924. https://bugs.freedesktop.org/show_bug.cgi?id=29124
  925. https://bugs.freedesktop.org/show_bug.cgi?id=29125
  926. Snapshot 1.9.12 (2010-07-12)
  927. ============================
  928. A couple of weeks spent fixing those annoying bugs and cleaning up the build
  929. system; the list of outstanding tasks to complete for the stable release is
  930. finally shrinking. The chief bug fixer has been Benjamin Otte who not only
  931. made sure that the public API is consistent and being tested for its
  932. consistency, but also ensured that the documentation was up-to-date and
  933. spent time clarifying cases where even the Cairo developers have come
  934. unstuck in the past. Many thanks, Benjamin. However, he was not alone,
  935. as Andrea Canciani continued his fine work in isolating broken corner cases
  936. and proceeding to fix them, and tidying up the quartz backend. And last, but
  937. definitely not least, M Joonas Pihlaja tried building Cairo across a
  938. perverse range of systems and fixed up all the loose bits of code that came
  939. unravelled. Thanks everybody!
  940. API Changes
  941. -----------
  942. cairo_surface_set_mime_data, cairo_surface_get_mime_data:
  943. The length parameter is now an unsigned long (as opposed to an unsigned
  944. int). The parameter is intended to be an equivalent to a size_t without
  945. requiring POSIX types and be large enough to store the size of the
  946. largest possible allocation.
  947. cairo_gl_surface_create_for_texture:
  948. This a new surface constructor for cairo-gl that explicitly enables
  949. render-to-texture for foreign, i.e. application, textures.
  950. cairo_region_xor, cairo_region_xor_rectangle
  951. A couple of utility routines add to the region handling interface for
  952. the purpose of replacing existing GdkRegion functionality.
  953. Bugs fixes
  954. ----------
  955. https://bugs.launchpad.net/ubuntu/+source/cairo/+bug/600622
  956. Inkscape was caught in the act of attempting to modify a finished surface.
  957. Unfortunately, we had the ordering of our guards and assertions wrong and
  958. so an ordinary application error was triggering an assert in Cairo. This
  959. lead Benjamin to add a test case to ensure that the entire public API
  960. could handle erroneous input and then proceeded to fix a whole slew of
  961. uncovered bugs.
  962. https://bugs.freedesktop.org/show_bug.cgi?id=28888
  963. A regression introduced by the special casing of uploading images to an
  964. xlib surface in-place which was ignoring the translation applied to the
  965. image.
  966. Snapshot 1.9.10 (2010-06-26)
  967. ============================
  968. The first "quick" snapshot in the run up to the stable release. The
  969. last snapshot was picked up by the bleeding edge distributions and so the
  970. bug reports have to started to roll in. The most frequent of these are the
  971. introduction of rendering errors by applications that modify a surface
  972. without subsequently calling cairo_surface_mark_dirty(). Make sure the
  973. application developers are aware of increased reliance on strict use of the
  974. Cairo API before 1.10 is released!
  975. The usual slew of bugs reported and we would like to thank Zoxc for
  976. contributing the WGL interface for cairo-gl, and finding more build
  977. failures on win32. And it just wouldn't be a 1.9 snapshot unless
  978. Benjamin Otte improved the error handling within cairo-gl, as well as
  979. isolating and fixing some more errors in the test suite. The biggest bug of
  980. the snapshot turned out to be a major sign extension issue that had lain
  981. hidden for many years and was suddenly exposed by incorrectly rounding
  982. rectangles when performing non-antialiased rendering. Also to the relief
  983. of many we have included the downstream patch to honour the user's LCD
  984. filtering preferences for subpixel rendering of fonts. The interface
  985. remains private for the time being, whilst the proposed public API is
  986. finalized.
  987. API changes
  988. -----------
  989. None.
  990. Snapshot 1.9.8 (2010-06-12)
  991. ===========================
  992. One major API changes since the last snapshot, and a whole slew of bugs
  993. fixed and inconsistencies eliminated. Far too many bugs fixed to
  994. individually identify. We need to thank Benjamin Otte for his fantastic
  995. work on the cairo-gl backend making it faster and more robust, Andrea
  996. Canciani for finding so many bugs and developing test cases for them, as
  997. well fixing them. And last but not least we must all thank Adrian Johnson for
  998. continuing to eliminate bugs and improving the PostScript and PDF backends.
  999. This snapshot represents almost 4 months of bug fixing, bringing Cairo to
  1000. a point where we consider it almost ready to be a candidate for release.
  1001. There are a few known bugs left to be fixed, being tracked in
  1002. https://bugs.freedesktop.org/show_bug.cgi?id=24384, so please give Cairo a
  1003. whirl and report any regressions. The plan is to release a new snapshot
  1004. every other week leading to a 1.10 release with a target date of
  1005. 2010-08-16.
  1006. API additions
  1007. -------------
  1008. CAIRO_FORMAT_RGB16_565
  1009. 16 bit devices still remain popular, and so with great demand,
  1010. CAIRO_FORMAT_RGB16_565 has been restored enabling applications to create
  1011. and use 16 bit images as sources and render targets.
  1012. cairo_surface_create_for_rectangle()
  1013. It is common practice to cut an image up into many smaller pieces and use
  1014. each of those as a source - a technique called texture atlasing.
  1015. cairo_surface_create_for_rectangle() extends Cairo to directly support use
  1016. of these subregions of another cairo_surface_t both as a source and as a
  1017. render target.
  1018. cairo_region_create()
  1019. cairo_region_create_rectangle()
  1020. cairo_region_create_rectangles()
  1021. cairo_region_copy()
  1022. cairo_region_reference()
  1023. cairo_region_destroy()
  1024. cairo_region_equal()
  1025. cairo_region_status()
  1026. cairo_region_get_extents()
  1027. cairo_region_num_rectangles()
  1028. cairo_region_get_rectangle()
  1029. cairo_region_is_empty()
  1030. cairo_region_contains_rectangle()
  1031. cairo_region_contains_point()
  1032. cairo_region_translate()
  1033. cairo_region_subtract()
  1034. cairo_region_subtract_rectangle()
  1035. cairo_region_intersect()
  1036. cairo_region_intersect_rectangle()
  1037. cairo_region_union()
  1038. cairo_region_union_rectangle()
  1039. The Cairo region API was actually added a couple of snapshots ago, but we
  1040. forgot to mention it at the time. A simple API for the handling of
  1041. rectangular pixel-aligned regions by Soeren Sandmann.
  1042. Backend-specific improvements
  1043. -----------------------------
  1044. cairo-gl
  1045. Benjamin Otte made more than 200 commits in which he refactored the cairo-gl
  1046. backend, reducing a lot of code duplication and enabled him to begin working
  1047. on improving performance by reducing state changes and associated overhead.
  1048. cairo-xlib
  1049. Access to the underlying connection to the Display is now thread-safe
  1050. enabling cairo-xlib to be used in a multi-threaded application without fear
  1051. of random corruption. Thanks Benjamin Otte!
  1052. cairo-xlib will now attempt to use PolyModeImprecise when compositing
  1053. trapezoids (i.e. a fill or a stroke operation with a non-trivial path) which
  1054. should allow hardware drivers more scope for accelerating the operation at
  1055. the cost of potentially incurring minute rendering errors. The mode can be
  1056. forced back to PolyModePrecise by setting the antialias parameter to
  1057. CAIRO_ANTIALIAS_SUBPIXEL.
  1058. cairo-svg
  1059. A notable improvement was contributed by Alexander Shulgin to enable SVG to
  1060. reference external image through the use an extended MIME data type.
  1061. Snapshot 1.9.6 (2010-02-19)
  1062. ===========================
  1063. API additions
  1064. -------------
  1065. Add cairo_device_t
  1066. The device is a generic method for accessing the underlying interface
  1067. with the native graphics subsystem, typically the X connection or
  1068. perhaps the GL context. By exposing a cairo_device_t on a surface and
  1069. its various methods we enable finer control over interoperability with
  1070. external interactions of the device by applications. The use case in
  1071. mind is, for example, a multi-threaded gstreamer which needs to serialise
  1072. its own direct access to the device along with Cairo's across many
  1073. threads.
  1074. Secondly, the cairo_device_t is a unifying API for the mismash of
  1075. backend specific methods for controlling creation of surfaces with
  1076. explicit devices and a convenient hook for debugging and introspection.
  1077. The principal components of the API are the memory management of:
  1078. cairo_device_reference(),
  1079. cairo_device_finish() and
  1080. cairo_device_destroy();
  1081. along with a pair of routines for serialising interaction:
  1082. cairo_device_acquire() and
  1083. cairo_device_release()
  1084. and a method to flush any outstanding accesses:
  1085. cairo_device_flush().
  1086. The device for a particular surface may be retrieved using:
  1087. cairo_surface_get_device().
  1088. The device returned is owned by the surface.
  1089. API changes (to API new in the cairo 1.9.x series)
  1090. --------------------------------------------------
  1091. cairo_recording_surface_create()
  1092. cairo_recording_surface_ink_extents()
  1093. These are the replacement names for the functions previously named
  1094. cairo_meta_surface_create and cairo_meta_surface_ink_extents.
  1095. cairo_surface_set_mime_data
  1096. This interface is now changed such that the MIME data will be
  1097. detached if the surface is modified at all. This guarantees that
  1098. the MIME data will not become out of synch due to surface
  1099. modifications, and also means that for the MIME data to be useful,
  1100. it must be set after all modifications to the surface are
  1101. complete.
  1102. API removal (of experiment API)
  1103. -------------------------------
  1104. The cairo-glitz backend is removed entirely, (in favor of the new
  1105. cairo-gl backend). See below for more on cairo-gl.
  1106. Generic fixes
  1107. -------------
  1108. Many improvements for drawing of dashed strokes
  1109. Fix incorrect handling of negative offset
  1110. Faster computation of first dash (avoids near-infinite looping)
  1111. Approximate extremely fine dash patterns with appropriate alpha value
  1112. Optimize spans-based renderers for repeated rows, (such as in a rounded rectangle)
  1113. Backend-specific improvements
  1114. -----------------------------
  1115. cairo-drm
  1116. This is a new, direct-rendering backend that supports Intel graphics
  1117. chipsets in the i915 and i965 families. It's still experimental and
  1118. will likely remain that way for a while. It's already got extremely
  1119. good performance on the hardware it supports, so if nothing else
  1120. provides a working proof and performance target for the cairo-gl
  1121. work for Intel graphics.
  1122. cairo-gl
  1123. Start using GLSL to accelerate many operations. Many thanks to Eric
  1124. Anholt and T. Zachary Laine for this work. For the first time, we
  1125. have what looks like what will be a very compelling OpenGL-based
  1126. backend for cairo (in terms of both quality and performance).
  1127. See this writeup from Eric for more details on recent progress of
  1128. cairo-gl (which he presented at FOSDEM 2010):
  1129. http://anholt.livejournal.com/42146.html
  1130. cairo-image
  1131. The image backend is made dramatically faster (3-5 times faster for
  1132. benchmarks consisting primarily of glyph rendering).
  1133. cairo-quartz fixes:
  1134. Many fixes from Robert O'Callahan and Andrea Canciani including:
  1135. Fixed gradient pattern painting
  1136. Improved A8 image handling
  1137. Fixes for "unbounded" and other compositing operators
  1138. cairo-pdf fixes:
  1139. Improvements to embedding of JPEG and JPEG2000 data.
  1140. cairo-ps fixes:
  1141. Fix printing of rotated user fonts.
  1142. Snapshot 1.9.4 (2009-10-15)
  1143. ===========================
  1144. API additions:
  1145. cairo_meta_surface_create()
  1146. cairo_meta_surface_ink_extents()
  1147. Finally exporting the internal meta-surface so that applications
  1148. have a method to record and replay a sequence of drawing commands.
  1149. cairo_in_clip()
  1150. Determines whether a given point is inside the current clip.
  1151. ??? Should this be called cairo_in_paint() instead? in-clip is the test
  1152. that is performed, but in-paint would be similar to in-fill and in-stroke.
  1153. New utilities:
  1154. cairo-test-trace
  1155. A companion to cairo-perf-trace, this utility replays a trace against
  1156. multiple targets in parallel and looks for differences in the output,
  1157. and then records any drawing commands that cause a failure.
  1158. Future plans:
  1159. Further minimisation of the fail trace using "delta debugging".
  1160. More control over test/reference targets.
  1161. Backend improvements:
  1162. xlib
  1163. Server-side gradients. The theory is that we can offload computation
  1164. of gradients to the GPU and avoid pushing large images over the
  1165. connection. Even if the driver has to fallback and use pixman to render
  1166. a temporary source, it should be able to do so in a more efficient manner
  1167. than Cairo itself. However, cairo-perf suggests otherwise:
  1168. On tiny, Celeron/i915:
  1169. before: firefox-20090601 211.585
  1170. after: firefox-20090601 270.939
  1171. and on tiger, CoreDuo/nvidia:
  1172. before: firefox-20090601 70.143
  1173. after: firefox-20090601 87.326
  1174. In particular, looking at tiny:
  1175. xlib-rgba paint-with-alpha_linear-rgba_over-512 47.11 (47.16 0.05%) -> 123.42 (123.72 0.13%): 2.62x slowdown
  1176. █▋
  1177. xlib-rgba paint-with-alpha_linear3-rgba_over-512 47.27 (47.32 0.04%) -> 123.78 (124.04 0.13%): 2.62x slowdown
  1178. █▋
  1179. New experimental backends:
  1180. QT
  1181. OpenVG - The initial work was done by Øyvind Kolås, and made ready for
  1182. inclusion by Pierre Tardy.
  1183. OpenGL - An advanced OpenGL compositor. The aim is to write a integrate
  1184. directed rendering using OpenGL at a high-level into Cairo. In
  1185. contrast to the previous attempt using Glitz which tried to
  1186. implement the RENDER protocol on top of OpenGL, using the
  1187. high-level interface should permit greater flexibility and
  1188. more offloading onto the GPU.
  1189. The initial work on the backend was performed by Eric Anholt.
  1190. Long standing bugs fixed:
  1191. Self-intersecting strokes.
  1192. A long standing bug where the coverage from overlapping semi-opaque
  1193. strokes (including neighbouring edges) was simply summed in lieu of
  1194. a costly global calculation has been fixed (by performing the costly
  1195. global calculation!) In order to mitigate the extra cost, the
  1196. tessellator has been overhauled and tune, which handles the fallback
  1197. for when we are unable to use the new span rasteriser on the stroke
  1198. (e.g. when using the current RENDER protocol). The large number of
  1199. pixel artefacts that implementing self-intersection elimination
  1200. removes is ample justification for the potential performance
  1201. regression. If you unfortunately do suffer a substantial performance
  1202. regression in your application, please consider obtaining a
  1203. cairo-trace and submitting it to us for analysis and inclusion into
  1204. our performance suite.
  1205. Special thanks:
  1206. To the AuroraUX team for providing access to one of their OpenSolaris
  1207. machines for cairo and pixman development. http://www.auroraux.org/
  1208. Snapshot 1.9.2 (2009-06-12)
  1209. ===========================
  1210. API additions:
  1211. cairo_surface_set_mime_data()
  1212. cairo_surface_get_mime_data()
  1213. Should this take unsigned int, unsigned long or size_t for the length
  1214. parameter? (Some datasets may be >4GiB in size.)
  1215. Associate an alternate, compressed, representation for a surface.
  1216. Currently:
  1217. "image/jp2" (JPEG2000) is understood by PDF >= 1.5
  1218. "image/jpeg" is understood by PDF,PS,SVG,win32-printing.
  1219. "image/png" is understood by SVG.
  1220. cairo_pdf_version_t
  1221. cairo_pdf_surface_restrict_to_version()
  1222. cairo_pdf_get_versions()
  1223. cairo_pdf_version_to_string()
  1224. Similar to restrict to version and level found in SVG and PS,
  1225. these limit the features used in the output to comply with the PDF
  1226. specification for that version.
  1227. CAIRO_STATUS_INVALID_SIZE
  1228. Indicates that the request surface size is not supported by the
  1229. backend. This generally indicates that the request is too large.
  1230. CAIRO_STATUS_USER_FONT_NOT_IMPLEMENTED
  1231. Indicates that a required callback for a user-font was not implemented.
  1232. CAIRO_STATUS_LAST_STATUS
  1233. This is a special value to indicate the number of status values enumerated
  1234. at compile time. (This may differ to the number known at run-time.)
  1235. The built-in twin font is now called "@cairo:" and supports a limited set
  1236. of options like "@cairo:mono". Where are these specified?
  1237. cairo_in_fill() now uses HTML Canvas semantics, all edges are inside.
  1238. New experimental backends:
  1239. CairoScript
  1240. New utility:
  1241. cairo-trace and cairo-perf-trace
  1242. cairo-trace generates a human-readable, replayable, compact(-ish!)
  1243. representation of the sequences of drawing commands made by an
  1244. application.
  1245. Under the util/cairo-script directory is a library to replay traces.
  1246. perf/cairo-perf-trace replays traces against multiple backends
  1247. and makes useful benchmark reports. This is integrated with
  1248. 'make perf'. You may collect your own traces or take advantage
  1249. of traces collected by the community:
  1250. git://git.cairographics.org/git/cairo-traces
  1251. (Put this into perf/cairo-traces to run these as part of "make perf".)
  1252. There is additional WIP in building a debugging tool for cairo applications
  1253. based on CairoScript (currently very preliminary, mostly serves to show
  1254. that GtkSourceView is too slow) :
  1255. people.freedesktop.org:~ickle/sphinx
  1256. Test suite overhaul:
  1257. The test suite is undergoing an overhaul, primarily to improve its speed
  1258. and utility. (Expect more changes in the near future to improve XFAIL
  1259. handling.)
  1260. Optimisations:
  1261. polygon rasterisation! Joonas implemented the Tor polygon scan converter,
  1262. on typical geometry is about 30% faster for the image backend.
  1263. Bovine Polaroids! For those not in on the joke, this is the long
  1264. awaited "copy-on-write snapshot" or "COW snapshot" support. The
  1265. user-visible feature is that including the same image multiple times
  1266. into a PDF file should result in only a single instance of that
  1267. image in the final output. This is unlike previous versions of cairo
  1268. which would generate very large PDF files with multiple copies of
  1269. the same image. Adrian says that the PDF is not quite working as
  1270. well as it should yet, so we hope for further improvements before
  1271. cairo 1.10.
  1272. Bug fixes:
  1273. EXTEND_PAD.
  1274. Better handling of large scale-factors on image patterns.
  1275. Emit /Interpolate for PS,PDF images.
  1276. Global glyph cache - cap on the total number of inactive glyphs,
  1277. should prove fairer for fonts with larger glyph sets.
  1278. Compilation without fontconfig
  1279. Improved handling of low-bitdepth sources (e.g. copying the contents
  1280. of 16-bit xserver windows)
  1281. Regressions:
  1282. cairo_traps_extract_region >10x slower. Fix pending.
  1283. Still to come:
  1284. Region tracking API (ssp) for damage tracking, hit testing etc
  1285. mime-surface
  1286. An expiremental OpenGL backend?
  1287. Tweaks to tessellator, allocations of patterns, delayed
  1288. initialisation of the xlib backend (reduce the cairo overhead of
  1289. render_bench by ~80%).
  1290. Release 1.8.8 (2009-06-16 Chris Wilson <chris@chris-wilson.co.uk>)
  1291. ==================================================================
  1292. The cairo community is pleased to announce the 1.8.8 release of the
  1293. cairo graphics library. This is the fourth update to cairo's stable
  1294. 1.8 series and contains a small number of bug fixes (in particular a
  1295. few corrections to the documentation and a few fixes in the FreeType font
  1296. backend). This is being released just over six months after cairo 1.8.6.
  1297. We recommend that everyone using cairo upgrade to 1.8.8.
  1298. -Chris
  1299. Build fixes
  1300. -----------
  1301. There were reports of incompatibilities with the autotools bundled in with
  1302. the 1.8.6 tarball. This release has been built with automake-1.10.2 and
  1303. autoconf-2.63.
  1304. The configure check for FreeType has been improved:
  1305. typo in check for version of freetype in configure script
  1306. https://bugs.freedesktop.org/show_bug.cgi?id=19283
  1307. Compilation on 64-bit MacOS/X fixes:
  1308. Cannot build cairo_quartz_font_face_create_for_atsu_font_id on 64-bit Mac OS X
  1309. https://bugs.freedesktop.org/show_bug.cgi?id=15702
  1310. Bug fixes
  1311. ---------
  1312. Uninitialised status return within _cairo_clip_intersect_mask(). This caused
  1313. random crashes and general mayhem as an error could be generated causing all
  1314. rendering to the context to stop.
  1315. Avoid transforming nearly-degenerate matrices into degenerate matrices:
  1316. Painting stops in this case, using -moz-transform: scale, rotate and video
  1317. https://bugzilla.mozilla.org/show_bug.cgi?id=467423
  1318. A few FreeType font handling bugs were fixed:
  1319. Rendering with PANGO_GRAVITY_EAST leads to different results with image and pdf
  1320. https://bugs.freedesktop.org/show_bug.cgi?id=21985
  1321. Don't call FT_Done_Face() on faces we did not create
  1322. zombie ft_font_face / ft_unscaled_font mutual referencing problems
  1323. http://bugs.freedesktop.org/show_bug.cgi?id=21706
  1324. Ensure win32 font backend sets the return value to -1 (indicating the absent
  1325. glyph) if the font index lookup for the unicode character fails. And
  1326. similarly fix a bug where a fatal error was raised for an invalid glyph.
  1327. cairo_scaled_font_glyph_extents breaks with invalid glyph id
  1328. http://bugs.freedesktop.org/show_bug.cgi?id=20255
  1329. Various improvements to the documentation, reported by Truc Troung:
  1330. https://bugs.freedesktop.org/show_bug.cgi?id=20095
  1331. https://bugs.freedesktop.org/show_bug.cgi?id=20154
  1332. https://bugs.freedesktop.org/show_bug.cgi?id=20180
  1333. https://bugs.freedesktop.org/show_bug.cgi?id=20183
  1334. https://bugs.freedesktop.org/show_bug.cgi?id=20182
  1335. https://bugs.freedesktop.org/show_bug.cgi?id=20441
  1336. Release 1.8.6 (2008-12-13 Chris Wilson <chris@chris-wilson.co.uk>)
  1337. ==================================================================
  1338. The cairo community is pleased to announce the 1.8.6 release of the
  1339. cairo graphics library. This is the third update to cairo's stable
  1340. 1.8 series and contains a small number of bug fixes (in particular a
  1341. few fixes for failures of cairo 1.8.4 on Quartz and PDF, and build fixes for
  1342. a couple of backends). This is being released just under a month after
  1343. cairo 1.8.4.
  1344. We recommend that everyone using cairo upgrade to 1.8.6.
  1345. -Chris
  1346. Build fixes
  1347. -----------
  1348. Fix build of DirectFB backend with debugging enabled:
  1349. Bug in _cairo_directfb_surface_release_source_image function
  1350. http://bugs.freedesktop.org/show_bug.cgi?id=18322
  1351. Fix build on OS/2.
  1352. Bug fixes
  1353. ---------
  1354. Workaround a mis-compilation of cairo_matrix_invert() that generated invalid
  1355. matrices and triggered assertion failures later. The issue was reported by
  1356. Peter Hercek.
  1357. Invalid computation of the modulus:
  1358. https://bugzilla.mozilla.org/show_bug.cgi?id=466258
  1359. Invalid referencing of patterns in the Quartz backend:
  1360. Failed assertion `CAIRO_REFERENCE_COUNT_HAS_REFERENCE
  1361. (&pattern->ref_count)' when using cairo quartz backend
  1362. http://bugs.freedesktop.org/show_bug.cgi?id=18632
  1363. Invalid references to glyphs after early culling, causing segmentation faults
  1364. in the PDF backend:
  1365. http://lists.cairographics.org/archives/cairo/2008-December/015976.html
  1366. Check for XRender in the XCB backend, or else we may attempt an invalid memory
  1367. access:
  1368. XCB backend fails with missing render.
  1369. https://bugs.freedesktop.org/show_bug.cgi?id=18588
  1370. Release 1.8.4 (2008-11-14 Carl Worth <cworth@cworth.org>)
  1371. =========================================================
  1372. The cairo community is pleased to announce the 1.8.4 release of the
  1373. cairo graphics library. This is the second update to cairo's stable
  1374. 1.8 series and contains a small number of bug fixes, (in particular a
  1375. few fixes for build failures of cairo 1.8.2 on various systems). This
  1376. is being released just over two weeks after cairo 1.8.2.
  1377. We recommend that everyone using cairo upgrade to 1.8.4.
  1378. -Carl
  1379. Build fixes
  1380. -----------
  1381. Fix build with older XRender that doesn't define RepeatNone:
  1382. Build of xlib backend fails against old XRender (RepeatNone undeclared)
  1383. https://bugs.freedesktop.org/show_bug.cgi?id=18385
  1384. Fix build with bash version <= 3.0:
  1385. doltlibtool broken on linux with bash 3.00.0
  1386. https://bugs.freedesktop.org/show_bug.cgi?id=18363
  1387. Bug fixes
  1388. ---------
  1389. Avoid triggering a bug in X.org server 6.9 resulting in a hung machine
  1390. requiring a reboot:
  1391. https://bugs.freedesktop.org/show_bug.cgi?id=15628#c2
  1392. Fix display of user fonts as exercised by proposed support for type3
  1393. fonts in poppler (unsigned promotion fixes):
  1394. Use cairo user-font for Type 3 fonts
  1395. http://lists.freedesktop.org/archives/poppler/2008-October/004181.html
  1396. Avoid miscomputing size of fallback images required when rendering
  1397. with CLEAR, IN, or SOURCE operator to vector surfaces, (PS, PDF, SVG,
  1398. etc.).
  1399. Be more tolerant of broken fonts when subsetting type1 fonts:
  1400. Error handling in cairo_type1_font_subset_get_glyph_names_and_widths
  1401. http://lists.cairographics.org/archives/cairo/2008-October/015569.html
  1402. Fix cairo_fill_extents, cairo_stroke_extents, cairo_path_extents, to
  1403. correctly allow NULL parameters as documented.
  1404. Fix potential crash on emitting a type3 glyph after having drawn text
  1405. paths from the same font, (for example with cairo_text_path).
  1406. Release 1.8.2 (2008-10-29 Carl Worth <cworth@cworth.org>)
  1407. =========================================================
  1408. The cairo community is pleased to announce the 1.8.2 release of the
  1409. cairo graphics library. This is the first update to cairo's stable 1.8
  1410. series and contains a large number of bug fixes. It is being released
  1411. just over one month since cairo 1.8.0.
  1412. This release consists primarily of bug fixes, but there is one notable
  1413. new feature, (the ability to build cairo without an external font
  1414. backend), and there are a few optimizations as well. See below for
  1415. details on these changes and the most important bug fixes.
  1416. While many people have contributed to this release, Chris Wilson
  1417. deserves particular mention. He has contributed well over twice as
  1418. many changes to cairo since 1.8.0 than everyone else combined. We
  1419. greatly appreciate the tremendous efforts of Chris and all cairo
  1420. contributors.
  1421. We recommend everyone upgrade to cairo 1.8.2 and hope that everyone
  1422. will have lots of fun with cairo!
  1423. -Carl
  1424. New feature
  1425. -----------
  1426. It is now possible to build cairo without any font backend, (such as
  1427. freetype, win32 or quartz). This is most useful when the application
  1428. provides custom font rendering through the user-font API. But in the
  1429. case where no external font backend is available, and no user-font is
  1430. provided, cairo will render with a failsafe font, (a stroked font
  1431. covering visible ASCII character). (Behdad Esfahbod)
  1432. Optimizations
  1433. -------------
  1434. Dramatically speed up compilation with dolt (removes much of the
  1435. libtool overhead) (Behdad Esfahbod with thanks to Josh Triplett).
  1436. Several minor optimizations to tessellator (special-cased comparisons,
  1437. faster insert for skiplist, etc.) (Chris Wilson).
  1438. Optimize away fractional translation component when doing
  1439. EXTEND_NEAREST filtering, (for better performance).
  1440. General bug fixes
  1441. -----------------
  1442. Allow cloning sub-regions of similar surfaces to fix this bug
  1443. (Chris Wilson):
  1444. Crafted gif file will crash firefox
  1445. [XError: 'BadAlloc (insufficient resources for operation)']
  1446. https://bugzilla.mozilla.org/show_bug.cgi?id=424333
  1447. Fix some matrix confusion to fix this regression (Chris Wilson):
  1448. Translucent star exports in a wrong way to PDF
  1449. https://bugs.launchpad.net/inkscape/+bug/234546
  1450. Fix some long-standing bugs with respect to properly computing the
  1451. extents of transformed, filtered surfaces (Owen Taylor, Carl Worth,
  1452. and Chris Wilson):
  1453. Bad clipping with EXTEND_NONE
  1454. http://bugs.freedesktop.org/show_bug.cgi?id=15349
  1455. Improve filtering handling in cairo-pattern.c
  1456. http://bugs.freedesktop.org/show_bug.cgi?id=15367
  1457. Many thanks to Chris Wilson for digging out and cleaning up
  1458. these fixes.
  1459. Fix compilation on Solaris 10 (Chris Wilson):
  1460. Cairo requires -DREENTRANT (along with -D_POSIX_THREAD_SEMANTICS)
  1461. to compile on Solaris 10 with pthreads
  1462. https://bugs.freedesktop.org/show_bug.cgi?id=18010
  1463. Fix very old bug causing dashes to be rendered at the wrong length in
  1464. fallback images (Adrian Johnson)
  1465. Dashed strokes too long in fallback images
  1466. https://bugs.freedesktop.org/show_bug.cgi?id=9189
  1467. Fix broken dashing when a dashed path starts outside the clip region
  1468. (Chris Wilson).
  1469. Avoid range overflow when computing large patterns (Benjamin Otte and
  1470. Chris Wilson).
  1471. Avoid crashing due to an invalid font with an incorrect entry in its
  1472. CMAP table (Adrian Johnson).
  1473. Fix bugs in computing maximum size of text requests that can be sent
  1474. with the Render extension, (avoiding potential crashes when rendering
  1475. large amounts of text) (Behdad Esfahbod and Chris Wilson).
  1476. Fix rendering of operators unbounded by the mask (Chris Wilson).
  1477. Fix compilation on systems without compiler support for a native
  1478. 64-bit type (Chris Wilson).
  1479. Fix several cases of missing error-status propagation. (Chris Wilson,
  1480. doing the work he seems to never tire of).
  1481. Fix several locking issues found with the lockdep valgrind skin (Chris
  1482. Wilson).
  1483. Backend-specific bug fixes
  1484. --------------------------
  1485. xlib: Avoid crash due to attempting XRender calls on pixmaps with
  1486. formats not supported by the Render extension (Chris Wilson):
  1487. XRender crashes due to NULL pointer from Cairo on SGI O2
  1488. https://bugs.freedesktop.org/show_bug.cgi?id=11734
  1489. xlib: Add support for XImages with depth of 4, 20, 24, or 28 bits
  1490. (Chris Wilson):
  1491. cairo doesn't support 24 bits per pixel mode on X11
  1492. https://bugs.freedesktop.org/show_bug.cgi?id=9102
  1493. xlib: Avoid mistakenly considering two surfaces as similar just
  1494. because their depths match (while their Render formats do not) (Karl
  1495. Tomlinson).
  1496. ps: Fix slight mis-scaling of bitmapped fonts (Adrian Johnson)
  1497. svg: Correctly emit comp-op for paint, mask, and show_glyphs
  1498. operations (Emmanuel Pacaud).
  1499. svg: Use finer-grained fallbacks for SVG 1.2 (as PS and PDF backends
  1500. have been doing since 1.6.0) (Chris Wilson).
  1501. win32: Fallback to DIB if DDB create fails for
  1502. cairo_surface_create_similar (Vladimir Vukicevic).
  1503. win32: Fix compatibility with Windows Mobile (Vladimir Vukicevic).
  1504. win32: Fix static builds to not do __declspec(dllimport) on public
  1505. functions. This requires the user to set a CAIRO_WIN32_STATIC_BUILD
  1506. environment variable when compiling (Behdad Esfahbod).
  1507. Release 1.8.0 (2008-09-25 Carl Worth <cworth@cworth.org>)
  1508. =========================================================
  1509. The cairo community is happy (and relieved) to announce the 1.8.0
  1510. release of the cairo graphics library. This is a major update to
  1511. cairo, with new features and enhanced functionality which maintains
  1512. compatibility for applications written using any previous major cairo
  1513. release, (1.6, 1.4, 1.2, or 1.0). We recommend that anybody using a
  1514. previous version of cairo upgrade to cairo 1.8.0.
  1515. The dominant theme of this release is improvements to cairo's ability
  1516. to handle text. The highlights include a new "user fonts" feature as
  1517. well as a new cairo_show_text_glyphs API which allows glyphs to be
  1518. embedded in PDF output along with their original text, (for searching,
  1519. selection, and copy-and-paste). Another major feature is a revamp of
  1520. cairo's build system making it much easier to build cairo on various
  1521. platforms.
  1522. See below for more details.
  1523. User fonts
  1524. ----------
  1525. This new API allows the user of cairo API to provide drawings for
  1526. glyphs in a font. A common use for this is implementing fonts in
  1527. non-standard formats, like SVG fonts and Flash fonts. This API can
  1528. also be used by applications to provide custom glyph shapes for fonts
  1529. while still getting access to cairo's glyph caches. See
  1530. test/user-font.c and test/user-font-proxy.c for usage examples. This
  1531. is based on early work by Kristian Høgsberg. Thanks Kristian!
  1532. This new API consists of the following functions (and corresponding
  1533. _get functions):
  1534. cairo_user_font_face_create
  1535. cairo_user_font_face_set_init_func
  1536. cairo_user_font_face_set_render_glyph_func
  1537. cairo_user_font_face_set_text_to_glyphs_func
  1538. cairo_user_font_face_set_unicode_to_glyph_func
  1539. An additional, new API is
  1540. cairo_scaled_font_text_to_glyphs
  1541. We were previously reluctant to provide this function as
  1542. text-to-glyphs support in cairo was limited to "toy" font
  1543. functionality, not really interesting for real-world text
  1544. processing. However, with user fonts landing, this API is needed to
  1545. expose full access to how user fonts convert text to glyphs. This is
  1546. expected to be used by text toolkits like Pango, as well as "proxy"
  1547. user-font implementations.
  1548. cairo_show_text_glyphs
  1549. ----------------------
  1550. This new API allows the caller of cairo to provide text data
  1551. corresponding to glyphs being drawn. The PDF backend implements this
  1552. new API so that complex text can be copied out of cairo's PDF output
  1553. correctly and reliably, (assuming the user of cairo calls
  1554. cairo_show_text_glyphs). The cairo_show_text_glyphs API is definitely
  1555. the most daunting API to debut in cairo. It is anticipated that pango
  1556. (and similar high-level text libraries) will be the primary users of
  1557. this API. In fact, pango 1.22 already uses cairo_show_text_glyphs.
  1558. Behdad was the architect and implementor of this effort. Thanks,
  1559. Behdad!
  1560. The cairo_show_text_glyphs API includes the following new functions:
  1561. cairo_show_text_glyphs
  1562. cairo_glyph_allocate
  1563. cairo_glyph_free
  1564. cairo_text_cluster_allocate
  1565. cairo_text_cluster_free
  1566. cairo_surface_has_show_text_glyphs
  1567. Build system revamp
  1568. -------------------
  1569. The primary goal of the revamp is to make the build system less
  1570. fragile, (particularly for non-Linux platforms). For example, now
  1571. people building on win32 will no longer need to maintain a
  1572. platform-specific list of files to be built. See the new README.win32
  1573. for details. Also, the .so file will now be installed with a different
  1574. naming scheme, (for example, 1.7.6 will install with a .10800
  1575. suffix). Many thanks to Behdad and his small army of helpers!
  1576. Assorted API additions
  1577. ----------------------
  1578. For API completeness, several missing "getter" functions were added:
  1579. cairo_scaled_font_get_scale_matrix
  1580. cairo_surface_get_fallback_resolution
  1581. cairo_toy_font_face_create
  1582. cairo_toy_font_face_get_family
  1583. cairo_toy_font_face_get_slant
  1584. cairo_toy_font_face_get_weight
  1585. The new cairo_toy_font_face functions provide access to functionality
  1586. and settings provided by cairo_select_font_face(). Thanks Behdad!
  1587. cairo-ps/cairo-pdf: More efficient output
  1588. -----------------------------------------
  1589. Adrian Johnson has been busy fixing all kinds of bugs in PS and PDF
  1590. backends, as well making them generate much more compact output by
  1591. avoiding things like re-emitting the color or linestyle on every
  1592. drawing operation. Thanks Adrian!
  1593. cairo-xlib: dithering
  1594. ---------------------
  1595. Dithering: Cairo now does simple dithering when rendering to legacy X
  1596. servers. This is most visible with 8-bit visuals. Thanks Behdad!
  1597. cairo-xlib: Avoid rendering glyphs out of surface bounds
  1598. --------------------------------------------------------
  1599. This seemingly harmless optimization exposed a bug in OpenOffice.org 3
  1600. versions where OO.o was passing bogus surface extents to cairo,
  1601. resulting in no text rendered in OO.o. Please contact your
  1602. distribution's OO.o maintainers if you see this bug and point them to
  1603. the following URL:
  1604. https://bugs.freedesktop.org/show_bug.cgi?id=16209
  1605. cairo-xlib: Improved performance with X server without Render
  1606. -------------------------------------------------------------
  1607. Cairo now performs better on remote X servers that lack the Render
  1608. extension by being smarter about using X core protocol facilities
  1609. instead of falling back to doing all rendering on the client side.
  1610. cairo-ft: respecting FC_FT_FACE
  1611. -------------------------------
  1612. Previously it was impossible to instruct cairo to do emboldening on a
  1613. font face object created from an FT_Face. Cairo now respects and uses
  1614. the FC_FT_FACE fontconfig pattern element, so emboldening can be
  1615. achieved by using cairo_ft_font_face_create_for_pattern() and a
  1616. carefully crafted pattern using FC_FT_FACE and FC_EMBOLDEN. Thanks
  1617. Behdad!
  1618. cairo-directfb: backend improvements
  1619. ------------------------------------
  1620. The directfb backend, though still unsupported, has seen a good deal
  1621. of improvements. Thanks Vlad!
  1622. Bug fixing and optimizations
  1623. ----------------------------
  1624. xlib: Faster bookkeeping (Karl Tomlinson)
  1625. https://bugzilla.mozilla.org/show_bug.cgi?id=453199#c5
  1626. PS: Fix gradients with non-constant alpha (Chris Wilson)
  1627. Fix deadlock in user-font code (Richard Hughes and Behdad Esfahbod)
  1628. http://bugs.freedesktop.org/show_bug.cgi?id=16819
  1629. Countless other bugs have been fixed and optimizations made, many of
  1630. them thanks to Chris Wilson. Thanks Chris and others!
  1631. Note also that the code that had been in cairo 1.7.x calling into
  1632. freetype's optional lcd_filter function was removed from cairo before
  1633. the 1.8.0 release. We do expect this code to come back in some form in
  1634. the future.
  1635. Snapshot 1.7.6 (2008-09-17 Carl Worth <cworth@cworth.org>)
  1636. ==========================================================
  1637. The cairo community is happy to announce the 1.7.6 snapshot of the
  1638. cairo graphics library. This is a "release candidate" for the upcoming
  1639. 1.8.0 release, so we will greatly appreciate any reports of problems
  1640. in this release, and no major changes are currently planned before
  1641. 1.8.
  1642. Notable changes in 1.7.6
  1643. ------------------------
  1644. The largest number of changes since 1.7.4 did not change the
  1645. implementation of cairo itself, but instead revamped cairo's build
  1646. system. The primary goal of the revamp is to make the build system
  1647. less fragile, (particularly for non-Linux platforms). For example, now
  1648. people building on win32 will no longer need to maintain a
  1649. platform-specific list of files to be built. Also, the .so file will
  1650. now be installed with a different naming scheme, (for example, 1.7.6
  1651. will install with a .10706 suffix). Much thanks, Behdad!
  1652. And, as usual, Chris Wilson has made another large round of robustness
  1653. improvements, (eliminating dead code, fixing propagation of error
  1654. status values, test suite improvements, etc. etc.). Thanks as always,
  1655. Chris!
  1656. API changes since 1.7.4
  1657. -----------------------
  1658. There have been a few changes of API that was new during the 1.7
  1659. series:
  1660. * Remove cairo_font_options_set_lcd_filter
  1661. and cairo_font_options_get_lcd_filter
  1662. Motivation: At the Cairo Summit, this API was determined to be too
  1663. specific to the freetype font backend to be in the general
  1664. API. A similar API with a cairo_ft prefix might be introduced
  1665. in the future. Note that cairo will still respect the
  1666. corresponding fontconfig settings for these options.
  1667. * Replace cairo_has_show_glyphs
  1668. with cairo_surface_has_show_glyphs
  1669. Motivation: This really is a surface-specific interface, and the
  1670. convenience function on the cairo_t is not obviously
  1671. necessary. An application can easily call:
  1672. cairo_surface_has_show_glyphs (cairo_get_target (cr));
  1673. as needed.
  1674. * Add cairo_text_cluster_flags_t
  1675. to cairo_show_text_glyphs
  1676. cairo_scaled_font_text_to_glyphs
  1677. cairo_user_scaled_font_text_to_glyphs_func_t
  1678. Motivation: This flag, (and specifically the
  1679. CAIRO_TEXT_CLUSTER_FLAG_BACKWARD value), replaces the
  1680. cairo_bool_t backward argument in each of the above
  1681. interfaces. This leads to more readable user code, and also
  1682. allows future extensibility.
  1683. As always, there are no changes to any API from any major cairo
  1684. release, (1.0.x, 1.2.x, 1.4.x, 1.6.x). Cairo maintains the same
  1685. compatibility promise it always has.
  1686. Bug fixes since 1.7.4
  1687. ---------------------
  1688. xlib: Faster bookkeeping (Karl Tomlinson)
  1689. https://bugzilla.mozilla.org/show_bug.cgi?id=453199#c5
  1690. PS: Fix gradients with non-constant alpha (Chris Wilson)
  1691. Fix deadlock in user-font code (Richard Hughes and Behdad Esfahbod)
  1692. http://bugs.freedesktop.org/show_bug.cgi?id=16819
  1693. Several other minor fixes.
  1694. Snapshot 1.7.4 (2008-08-11 Behdad Esfahbod <behdad@behdad.org>)
  1695. ===============================================================
  1696. The cairo community is embarrassed to announce availability of the 1.7.4
  1697. snapshot of the cairo graphics library. This is a followup release to the
  1698. 1.7.2 snapshot to ship a tarball that can actually be built. The only
  1699. change since 1.7.4 is including the missing header file
  1700. cairo-user-font-private.h in the distribution.
  1701. Snapshot 1.7.2 (2008-08-11 Behdad Esfahbod <behdad@behdad.org>)
  1702. ===============================================================
  1703. The cairo community is finally ready to announce availability of the 1.7.2
  1704. snapshot of the cairo graphics library. This is embarrassingly the first
  1705. snapshot in the 1.7 unstable series of cairo, leading to the eventual release
  1706. of cairo 1.8, currently planned for late September.
  1707. This snapshot comes four months after the 1.6.4 release. We have done a
  1708. really bad job on getting development snapshots out this cycle, but
  1709. hopefully all the API changes for 1.8 are now finished and the remaining
  1710. weeks will be spent on bug-fixing. There is more than 400 commits worth
  1711. of changes in this snapshot, and those can use some testing. Read on!
  1712. Text, text, and more text!
  1713. --------------------------
  1714. The dominant theme of this release, and 1.8 in general, is improvements
  1715. around cairo text API. Here is a high-level list of changes with text
  1716. handling:
  1717. User fonts
  1718. ----------
  1719. This is new API allowing the user of cairo API to provide drawings for glyphs
  1720. in a font. This is most useful in implementing fonts in non-standard formats,
  1721. like SVG fonts and Flash fonts, but can also be used by games and other
  1722. applications to draw "funky" fonts. See test/user-font.c and
  1723. test/user-font-proxy.c for usage examples. This is based on early work by
  1724. Kristian Høgsberg. Thanks Kristian!
  1725. show_text_glyphs
  1726. ----------------
  1727. This new API allows the caller of cairo to mark text glyphs with their
  1728. original text. The PDF backend implements this new API and latest Pango
  1729. master uses it. The result is (when bugs are fixed) that complex text can be
  1730. copied out of pangocairo's PDF output correctly and reliably. There are bugs
  1731. to fix though. A few poppler bugs, and some more in cairo and pango.
  1732. To test show_text_glyph, just grab pango master and this cairo snapshot and
  1733. print text in gedit. Open in acroread or evince, select all, copy, paste
  1734. in gedit and compare. The Arabic text with diacritic marks is particularly
  1735. showing bad. Try with pango/pango-view/HELLO.txt if you are brave
  1736. enough. The Indic text is showing improvements, but is still coming out
  1737. buggy.
  1738. LCD subpixel filtering using FreeType
  1739. -------------------------------------
  1740. FreeType 2.3.5 added support for various LCD subpixel filtering, and
  1741. fontconfig 2.6.0 added support for configuring LCD filter on a font by font
  1742. basis. Cairo now relies on FreeType and fontconfig for subpixel filtering.
  1743. This work is based on David Turner's original patch to cairo, maintained
  1744. and tested by Sylvain Pasche and others. Thanks all!
  1745. Toy font face constructor and getter
  1746. ------------------------------------
  1747. Mostly for API completion, but also useful for higher level (like Pango) to
  1748. hook into what the user has set using cairo_select_font_face(), making that
  1749. toy API a bit more useful.
  1750. FreeType: respecting FC_FT_FACE
  1751. -------------------------------
  1752. Previously it was impossible to instruct cairo to do emboldening on a font
  1753. face object created from an FT_Face. Cairo now respects and uses the
  1754. FC_FT_FACE fontconfig pattern element, so emboldening can be achieved by
  1755. using cairo_ft_font_face_create_for_pattern() and a carefully crafted pattern
  1756. using FC_FT_FACE and FC_EMBOLDEN.
  1757. PS/PDF: More efficient output
  1758. -----------------------------
  1759. Adrian Johnson has been busy fixing all kinds of bugs in PS and PDF
  1760. backends, as well making them generate much more compact output by avoiding
  1761. things like re-emitting the color or linestyle on every drawing operation.
  1762. Thanks Adrian!
  1763. Xlib: Dithering
  1764. ---------------
  1765. Cairo now does simple dithering when rendering to legacy X servers. This is
  1766. mostly visible with 8-bit visuals.
  1767. Xlib: Avoid rendering glyphs out of surface bounds
  1768. --------------------------------------------------
  1769. This seemingly harmless change manifested a bug with OpenOffice.org 3 versions
  1770. where OO.o was passing bogus surface extents to cairo, resulting in no text
  1771. rendered in OO.o. Please contact your distro's OO.o maintainers if you see
  1772. this bug and point them to the following URL:
  1773. https://bugs.freedesktop.org/show_bug.cgi?id=16209
  1774. Xlib: Improved performance with Xrender-less X servers
  1775. ------------------------------------------------------
  1776. Cairo now performs better on remote, Xrender-less X servers by being smarter
  1777. about using X core protocol facilities instead of falling back to doing all
  1778. rendering on the client side.
  1779. Directfb: backend improvements
  1780. ------------------------------
  1781. The directfb backend, though still unsupported, has seen a good deal of
  1782. improvements. Thanks Vlad!
  1783. Bug fixing and optimizations
  1784. ----------------------------
  1785. Countless bugs have been fixed and optimizations made, many of them thanks to
  1786. Chris Wilson. Thanks Chris!
  1787. API additions
  1788. -------------
  1789. cairo_show_text_glyphs
  1790. This is a new text rendering API. Being a more advanced version of
  1791. cairo_show_glyphs(), it is aimed for use by higher-level text toolkits like
  1792. Pango, and enables better text extraction from output generated by backends
  1793. like PDF and SVG. The PDF backend already implements it, and the upcoming
  1794. Pango release will use it.
  1795. To make that API work, a bunch of other additions were made:
  1796. cairo_glyph_allocate
  1797. cairo_glyph_free
  1798. cairo_text_cluster_t
  1799. cairo_text_cluster_allocate
  1800. cairo_text_cluster_free
  1801. cairo_surface_has_show_text_glyphs
  1802. cairo_user_font_face_create
  1803. This is the "user" font face constructor, accompanied by a variety of method
  1804. signatures, getters, and setters for a callback-based font backend:
  1805. CAIRO_FONT_TYPE_USER
  1806. cairo_user_scaled_font_init_func_t
  1807. cairo_user_scaled_font_render_glyph_func_t
  1808. cairo_user_scaled_font_text_to_glyphs_func_t
  1809. cairo_user_scaled_font_unicode_to_glyph_func_t
  1810. cairo_user_font_face_set_init_func
  1811. cairo_user_font_face_set_render_glyph_func
  1812. cairo_user_font_face_set_text_to_glyphs_func
  1813. cairo_user_font_face_set_unicode_to_glyph_func
  1814. cairo_user_font_face_get_init_func
  1815. cairo_user_font_face_get_render_glyph_func
  1816. cairo_user_font_face_get_text_to_glyphs_func
  1817. cairo_user_font_face_get_unicode_to_glyph_func
  1818. cairo_scaled_font_text_to_glyphs
  1819. We were previously reluctant to provide this function as text-to-glyphs
  1820. support in cairo was limited to "toy" font functionality, not really
  1821. interesting for real-world text processing. However, with user-fonts
  1822. landing, this API is needed to expose full access to how user-fonts
  1823. convert text to glyphs. This is expected to be used by text toolkits like
  1824. Pango, as well as "proxy" user-font implementations.
  1825. cairo_lcd_filter_t
  1826. cairo_font_options_set_lcd_filter
  1827. cairo_font_options_get_lcd_filter
  1828. These add the possibility to choose between various available LCD subpixel
  1829. filters. The available filter values are modelled after what FreeType
  1830. provides.
  1831. cairo_toy_font_face_create
  1832. cairo_toy_font_face_get_family
  1833. cairo_toy_font_face_get_slant
  1834. cairo_toy_font_face_get_weight
  1835. These provide access to functionality and settings provided by
  1836. cairo_select_font_face().
  1837. cairo_scaled_font_get_scale_matrix
  1838. cairo_surface_get_fallback_resolution
  1839. For API completeness.
  1840. Various new values for cairo_status_t enum
  1841. Known issues:
  1842. - Type3 fonts generated by cairo's PDF backend may show up in poppler/Evince
  1843. in a different color than expected. This is fixed in poppler master branch.
  1844. This mostly affects cairo user fonts. The test case test/user-font.c
  1845. demonstrates this.
  1846. - User fonts using other fonts in their rendering are currently embedded in
  1847. PDF as fallback bitmap glyphs. This will be (hopefully) fixed before 1.8.
  1848. The test case test/user-font-proxy.c demonstrates this.
  1849. Release 1.6.4 (2008-04-11 Carl Worth <cworth@cworth.org>)
  1850. =========================================================
  1851. The cairo community is wildly embarrassed to announce the 1.6.4
  1852. release of the cairo graphics library. This release reverts the xlib
  1853. locking change introduced in 1.6.4, (and the application crashes that
  1854. it caused). The community would be glad to sack its current release
  1855. manager and is accepting applications for someone who could do the job
  1856. with more discipline.
  1857. Revert 'add missing locking in cairo-xlib'
  1858. ------------------------------------------
  1859. This change was introduced in cairo 1.6.2, but also introduced a bug
  1860. which causes many cairo-xlib applications to crash, (with a
  1861. segmentation fault inside of XSetClipMask). Instead of attempting
  1862. another fix for the broken fix, the change in 1.6.2 has been
  1863. reverted. The original bug which the change was addressing has been
  1864. present since at least cairo 1.4, so it is not expected that leaving
  1865. this bug unfixed will cause any new problems for applications moving
  1866. from cairo 1.4 to cairo 1.6.
  1867. At this point, the code of cairo 1.6.4 differs from cairo 1.6.0 only
  1868. in the fix for the PostScript-printer crashes.
  1869. Tweak build to avoid linking with g++
  1870. -------------------------------------
  1871. Cairo 1.6.4 avoids a quirk in automake that was causing the cairo
  1872. library to be linked with g++ and linked against libstdc++ even when
  1873. only C source files were compiled for the library.
  1874. Release 1.6.2 (2008-04-11 Carl Worth <cworth@cworth.org>)
  1875. =========================================================
  1876. The cairo community is pleased (but somewhat sheepish) to announce the
  1877. 1.6.2 release of the cairo graphics library. This is an update to
  1878. yesterday's 1.6.0 release with an important fix to prevent cairo's
  1879. PostScript output from crashing some printers. This release also
  1880. includes a locking fix for cairo's xlib backend to improve thread
  1881. safety. There are no changes beyond these two fixes.
  1882. Fix for PostScript printer crash
  1883. --------------------------------
  1884. Adrian Johnson discovered that cairo 1.6.0 was being a bit hard on
  1885. PostScript printers, by changing the font matrix very frequently. This
  1886. causes some PostScript interpreters to allocate new font objects every
  1887. few glyphs, eventually exhausting available resources. The fix
  1888. involves leaving translational components of the font matrix as zero,
  1889. so that the PostScript interpreter sees an identical font matrix
  1890. repeatedly, and can more easily share internal font object resources.
  1891. This fix has been tested to resolve the bugs posted here, (for both
  1892. Xerox and Dell printers):
  1893. Printing some PDFs from evince is crashing our Xerox printer
  1894. http://bugs.freedesktop.org/show_bug.cgi?id=15348
  1895. Cairo-generated postscript blocks Dell 5100cn
  1896. http://bugs.freedesktop.org/show_bug.cgi?id=15445
  1897. Add missing locking in cairo-xlib
  1898. ---------------------------------
  1899. Chris Wilson noticed that cairo 1.6.0 was manipulating an internal
  1900. cache of GC object within cairo's Xlib backend without proper
  1901. locking. The missing locking could cause failures for multi-threaded
  1902. applications. He fixed this in 1.6.2 by adding the missing locks.
  1903. Release 1.6.0 (2008-04-10 Carl Worth <cworth@cworth.org>)
  1904. =========================================================
  1905. The cairo community is quite pleased to announce the 1.6.0 release of
  1906. the cairo graphics library. This is a major update to cairo, with new
  1907. features and enhanced functionality which maintains compatibility for
  1908. applications written using cairo 1.4, 1.2, or 1.0. We recommend that
  1909. anybody using a previous version of cairo upgrade to cairo 1.6.0.
  1910. The most significant new features in this release are dramatically
  1911. improved PDF and PostScript[*] output, support for arbitrary X server
  1912. visuals (including PseudoColor), a new Quartz backend, and and a new
  1913. "win32 printing" backend. See below for more details on these and
  1914. other new features.
  1915. New dependency on external pixman library (Thanks, Søren!)
  1916. ----------------------------------------------------------
  1917. As of cairo 1.6, cairo now depends on the pixman library, for which
  1918. the latest release can be obtained alongside cairo:
  1919. http://cairographics.org/releases/pixman-0.10.0.tar.gz
  1920. This library provides all software rendering for cairo, (the
  1921. implementation of the image backend as well as any image fallbacks
  1922. required for other backends). This is the same code that was
  1923. previously included as part of cairo itself, but is now an external
  1924. library so that it can be shared by both cairo and by the X server,
  1925. (which is where the code originated).
  1926. Improved PDF, PostScript, and SVG output (Thanks, Adrian!)
  1927. ----------------------------------------------------------
  1928. Users of the cairo-pdf, cairo-ps, and cairo-svg should see a dramatic
  1929. improvement from cairo 1.2/1.4 to 1.6. With this release there are now
  1930. almost no operations that will result in unnecessary rasterization in
  1931. the PDF and PostScript. Rasterized "image fallbacks" are restricted
  1932. only to minimal portions of the document where something is being
  1933. drawn with cairo that is beyond the native capabilities of the
  1934. document, (this is rare for PDF or SVG, but occurs when blending
  1935. translucent objects for PostScript).
  1936. This means that the final output will be of higher quality, and will
  1937. also be much smaller, and therefore will print more quickly. The
  1938. machinery for doing analysis and minimal fallbacks also benefits the
  1939. win32-printing surface described below.
  1940. In addition to doing less rasterization, the PostScript and PDF output
  1941. also has several other improvements to make the output more efficient
  1942. and more compatible with specifications.
  1943. [*] Note: Just before this release, a bug has been reported that the
  1944. PostScript output from cairo can crash some printers, (so far the
  1945. following models have been reported as problematic Xerox Workcentre
  1946. 7228 or 7328 and Dell 5100cn). We will implement a workaround as soon
  1947. as we can learn exactly what in cairo's output these printers object
  1948. to, (and we could use help from users that have access to misbehaving
  1949. printers). This bug is being tracked here:
  1950. Printing some PDFs from evince is crashing our Xerox printer
  1951. http://bugs.freedesktop.org/show_bug.cgi?id=15348
  1952. New support for arbitrary X server visuals (Thanks, Keith and Behdad!)
  1953. ----------------------------------------------------------------------
  1954. As of cairo 1.6, cairo should now work with an arbitrary TrueColor or
  1955. 8-bit PseudoColor X server visual. Previous versions of cairo did not
  1956. support these X servers and refused to draw anything. We're pleased to
  1957. announce that this limitation has been lifted and people stuck with
  1958. ancient display systems need no longer be stuck with ancient software
  1959. just because of cairo.
  1960. New, supported Quartz backend for Mac OS X (Thanks, Brian and Vladimir!)
  1961. ------------------------------------------------------------------------
  1962. As of cairo 1.6, the cairo-quartz backend is now marked as "supported"
  1963. rather than "experimental" as in previous cairo releases. Its API now
  1964. has guarantees of API stability into future cairo releases, and its
  1965. output quality is comparable to other backends. There have been
  1966. significant improvements to cairo-quartz since 1.4. It now uses many
  1967. fewer image fallbacks, (meaning better performance), and has greatly
  1968. improved text rendering.
  1969. New, "win32 printing" backend (Thanks, Adrian and Vladimir!)
  1970. ------------------------------------------------------------
  1971. A new win32-printing surface has been added with an interface very
  1972. similar to the original win32 surface, (both accept an HDC
  1973. parameter). But this new surface should only be called with a printing
  1974. DC, and will result in all drawing commands being stored into a
  1975. meta-surface and emitted after each page is complete. This allows
  1976. cairo to analyze the contents, (as it does with PDF, PostScript, and
  1977. SVG backends), and to do minimal image-based fallbacks as
  1978. necessary. The analysis keeps things as efficient as possible, while
  1979. the presence of fallbacks, (when necessary), ensure the consistent,
  1980. high-quality output expected from cairo.
  1981. Robustness fixes (Thanks, Chris!)
  1982. ---------------------------------
  1983. There has been a tremendous number of improvements to cairo's
  1984. robustness. Areas that have been improved include:
  1985. * Proper reporting of errors
  1986. * Responding correctly to invalid input
  1987. * Avoiding integer overflows
  1988. * Avoiding memory leaks on error-recovery paths
  1989. * Making reference counting thread safe
  1990. * Exhaustive testing of memory allocation points
  1991. Other fixes (Thanks, everybody!)
  1992. --------------------------------
  1993. Cairo's internal fixed-point representation has been changed from
  1994. 16.16 to 24.8. This has a direct impact on applications as it allows
  1995. much larger objects to be drawn before internal limits in cairo make
  1996. the drawing not work.
  1997. The CAIRO_EXTEND_PAD mode is now fully supported by surface
  1998. patterns. This mode allows applications to use cairo_rectangle and
  1999. cairo_fill to draw scaled images with high-quality bilinear filtering
  2000. for the internal of the image, but without any objectionably blurry
  2001. edges, (as would happen with the default EXTEND_NONE and cairo_paint).
  2002. Rendering with CAIRO_ANTIALIAS_NONE has been fixed to be more
  2003. predictable, (previously image rendering and geometry rendering would
  2004. be slightly misaligned with respect to each other).
  2005. The reference manual at http://cairographics.org/manual now documents
  2006. 100% of the functions and types in cairo's public API.
  2007. API additions
  2008. -------------
  2009. Several small features have been added to cairo with new API functions:
  2010. cairo_format_stride_for_width
  2011. Must be called to compute a properly aligned stride value before
  2012. calling cairo_image_surface_create_for_data.
  2013. cairo_has_current_point
  2014. Allows querying if there is a current point defined for the
  2015. current path.
  2016. cairo_path_extents
  2017. Allows querying for path extents, (independent of any fill or
  2018. stroke parameters).
  2019. cairo_surface_copy_page
  2020. cairo_surface_show_page
  2021. Allow beginning a new document page without requiring a cairo_t
  2022. object.
  2023. cairo_ps_surface_restrict_to_level
  2024. cairo_ps_get_levels
  2025. cairo_ps_level_to_string
  2026. cairo_ps_surface_set_eps
  2027. Allow controlling the Post PostScript level, (2 or 3), to
  2028. target, as well as to generate Encapsulated PostScript (EPS).
  2029. cairo_quartz_font_face_create_for_cgfont
  2030. Create a quartz-specific cairo_font_face_t from a CGFontRef.
  2031. cairo_win32_font_face_create_for_logfontw_hfont
  2032. Create a win32-specific cairo_font_face from a LOGFONTW and an
  2033. HFONT together.
  2034. Thanks, Everyone!
  2035. -----------------
  2036. I've accounted for 32 distinct people with attributed code added to
  2037. cairo between 1.4.14 and 1.6.0, (their names are below). That's an
  2038. impressive number, but there are certainly dozens more that
  2039. contributed with testing, suggestions, clarifying questions, and
  2040. encouragement. I'm grateful for the friendships that have developed as
  2041. we have worked on cairo together. Thanks to everyone for making this
  2042. all so much fun!
  2043. Adrian Johnson, Alp Toker, Antoine Azar, Behdad Esfahbod,
  2044. Benjamin Otte, Bernardo Innocenti, Bertram Felgenhauer,
  2045. Boying Lu, Brian Ewins, Carl Worth, Chris Heath, Chris Wilson,
  2046. Claudio Ciccani, Emmanuel Pacaud, Jeff Muizelaar, Jeremy Huddleston,
  2047. Jim Meyering, Jinghua Luo, Jody Goldberg, Jonathan Gramain,
  2048. Keith Packard, Ken Herron, Kouhei Sutou, Kristian Høgsberg,
  2049. Larry Ewing, Martin Ejdestig, Nis Martensen, Peter Weilbacher,
  2050. Richard Hult, Shailendra Jain, Søren Sandmann Pedersen,
  2051. Vladimir Vukicevic
  2052. Snapshot 1.5.20 (2008-04-04 Carl Worth <cworth@cworth.org>)
  2053. ===========================================================
  2054. This is the tenth snapshot in cairo's unstable 1.5 series. It comes
  2055. just two days (and only one working day) after the 1.5.18
  2056. snapshot. The quick snapshot is due to two embarrassing bugs (both
  2057. affecting cairo-xlib) that had been introduced in the 1.5.18
  2058. snapshot. The fixes for these are described below along with a few
  2059. other fixes, (which hopefully aren't introducing new bugs this time).
  2060. cairo-xlib
  2061. ----------
  2062. Revert fix from 1.5.18 to allow pattern expansion based on the filter
  2063. mode. This fix seemed so boring, (the use case it addresses is almost
  2064. never used in practice), that it didn't even get mentioned in the
  2065. 1.5.18 release notes. However, the "fix" happened to break rendering
  2066. that is always used resulting in corrupt image rendering in mozilla,
  2067. evolution, and probably everything else that uses cairo.
  2068. Fix to avoid BadMatch errors in cairo_surface_create_similar. These
  2069. were introduced, (inadvertently, of course), as part of the fix in
  2070. 1.5.18 for creating similar surfaces without the Render
  2071. extension. Again, thanks to mozilla, (and Vladimir Vukicevic in
  2072. particular), for noticing our mistake.
  2073. general
  2074. -------
  2075. Correctly handle an in-error surface in
  2076. cairo_surface_write_to_png. Previously this function would cause an
  2077. assertion failure if you gave it a finished surface. Now it cleanly
  2078. returns a CAIRO_STATUS_SURFACE_FINISHED result instead.
  2079. Avoid potentially infinite wandering through memory inside
  2080. _cairo_hull_prev_valid. Thanks to Jonathan Watt for noticing this
  2081. problem:
  2082. https://bugzilla.mozilla.org/show_bug.cgi?id=306649#c21
  2083. cairo-pdf
  2084. ---------
  2085. Fix generation of "soft" masks made by drawing to a similar surface
  2086. and then calling cairo_mask_surface() with it.
  2087. cairo-svg
  2088. ---------
  2089. Fix for code that uses cairo_mask() on an intermediate surface which
  2090. is later passed to cairo_mask_surface().
  2091. Snapshot 1.5.18 (2008-04-05 Carl Worth <cworth@cworth.org>)
  2092. ===========================================================
  2093. This is the ninth snapshot in cairo's unstable 1.5 series. It comes
  2094. just 4 days after the 1.5.16 snapshot. We had hoped to not need
  2095. another snapshot before the final 1.6.0 release, but several critical
  2096. bugs were found and fixed in the last few days, so we thought it
  2097. important to let people test the fixes with this snapshot. See below
  2098. for details.
  2099. documentation
  2100. -------------
  2101. The README now lists necessary dependencies.
  2102. Various graphics state defaults are now documented, (source pattern is
  2103. opaque black, line width is 2.0, line join is miter, line cap is butt,
  2104. miter limit is 10.0, etc.).
  2105. general
  2106. -------
  2107. Several cleanups have been made along many error-path returns,
  2108. (carefully propagating up the original error status values, cleaning
  2109. up memory leaks during error recovery, etc.). This is yet another in
  2110. Chris "ickle" Wilson's long series of error-handling cleanups during
  2111. the 1.5 series.
  2112. Avoid undesired clipping when drawing scaled surface patterns with
  2113. bilinear filtering.
  2114. cairo-pdf
  2115. ---------
  2116. Fix emission of 1-bit alpha masks in PDF output.
  2117. Fix a bug that would cause glyphs to be misplaced along the Y axis:
  2118. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=%23474136
  2119. Originally, an issue about a crash, but later leading to the
  2120. misplaced glyphs issue being discovered.
  2121. cairo-ps
  2122. --------
  2123. Fix misplaced glyphs in cairo's PostScript output.
  2124. This issue occurs when consecutive glyphs are placed far
  2125. apart. This case is exercised by the new ft-show-glyphs-table test
  2126. case, which was originally inspired by the Debian bug #23474136
  2127. mentioned above.
  2128. Fix more misplaced glyphs in cairo's PostScript output:
  2129. The issue here showed up under very particular circumstance, (when
  2130. converting a PDF file with a CFF font with CID Identity-H encoding
  2131. and using glyph 0, (defined by the CFF specification as .notdef)
  2132. as a space instead). More concretely, this problem appeared when
  2133. converting the UbuntuDesktop.pdf file mentioned in this bug
  2134. report:
  2135. https://bugs.freedesktop.org/show_bug.cgi?id=15348#c3
  2136. As usual with arcane font-encoding-specific bugs like this, many
  2137. thanks to Adrian Johnson for his magical ability to dive into
  2138. specifications and emerge almost instantaneously with fixes. And
  2139. thanks to Sebastien Bacher for bringing the bug to our attention.
  2140. cairo-xlib
  2141. ----------
  2142. Fix serious failure on X servers without the Render extension.
  2143. Since the 1.5.14 snapshot (with support for PseudoColor visuals),
  2144. any application attempting to create a "similar" xlib surface would
  2145. fail on an X server without the Render extension. Thanks to
  2146. Frederic Crozat for pointing out that cairo's test suite was
  2147. entirely failing when run against Xvfb.
  2148. Avoid crashing cairo-xlib applications for too-large glyphs
  2149. Naively sending glyphs of any size to the X server will eventually
  2150. violate the X limit on maximum request sizes. We now properly
  2151. detect when a glyph would be too large and use existing fallbacks
  2152. to render the glyph rather than trying to send it to the X server.
  2153. Enable the buggy_repeat workaround for Xorg servers < 1.4
  2154. We have determined that Xorg 1.3.0 (as packaged in Fedora 8 at
  2155. least) has a bug that can result in an X server crash when cairo
  2156. uses certain X Render repeat operations, (as exercised by cairo's
  2157. extend-reflect test). We avoid this crash by using fallbacks
  2158. whenever a repeating surface is needed for any Xorg server with a
  2159. version less than 1.4. This is slower, but should prevent the
  2160. crash.
  2161. (Meanwhile, there appears to be a separate bug where some X
  2162. servers or specific X-server drivers will use random pixmap data
  2163. when asked to draw a repeating surface. The buggy_repeat
  2164. workaround would also avoid those problems, but we have not yet
  2165. characterized whether the new "version < 1.4" is a good
  2166. characterization of those problems or not.)
  2167. cairo-quartz-font
  2168. -----------------
  2169. Implement cairo_font_extents for this backend.
  2170. The cairo-quartz-font implementation added in the 1.5.14 snapshot was
  2171. entirely missing support for the cairo_font_extents function. Thanks to
  2172. Richard Hult for pointing out this obvious shortcoming, (and obvious
  2173. lack of coverage in our test suite):
  2174. CGFont backend returns 0 font extents
  2175. https://bugs.freedesktop.org/show_bug.cgi?id=15319
  2176. Snapshot 1.5.16 (2008-04-01 Carl Worth <cworth@cworth.org>)
  2177. ===========================================================
  2178. This is the eighth snapshot in cairo's unstable 1.5 series. It comes
  2179. less than two weeks after the 1.5.14 snapshot and it really is a
  2180. legitimate snapshot, (in spite of sharing this date with that of many
  2181. bogus announcements). The major change in this snapshot is that the
  2182. cairo-quartz backend is now officially "supported", including new API
  2183. to construct a font face from a CGFontRef . Also several bug fixes
  2184. have been fixed in many backends. See below for details.
  2185. general
  2186. -------
  2187. Cairo now depends on pixman 0.10.0 which was recently released. The
  2188. latest pixman release can always be found alongside cairo releases at:
  2189. http://cairographics.org/releases
  2190. Increase the precision of color stops for gradients. This fixes a
  2191. regression in gradient rendering that had been present since the
  2192. 1.5.12 snapshot.
  2193. paginated (all of ps, pdf, svg, and win32-printing)
  2194. ---------------------------------------------------
  2195. Fix assertion failure when some drawing elements are outside the page
  2196. boundaries, (this bug was noticed when using Inkscape to print a
  2197. drawing with landscape orientation to a portrait-oriented piece of
  2198. paper).
  2199. cairo-ps
  2200. --------
  2201. Fix of bug causing incorrect glyph positioning.
  2202. Fix handling of CAIRO_OPERATOR_SOURCE.
  2203. cairo-pdf
  2204. ---------
  2205. More reduction of unnecessary digits of precision in PDF output.
  2206. Fix handling of CAIRO_OPERATOR_SOURCE.
  2207. cairo-svg
  2208. ---------
  2209. Fix bug in usage of libpng that was preventing cairo_mask from working
  2210. with the svg backend.
  2211. Fix transformation of source pattern for cairo_stroke().
  2212. cairo-win32-printing
  2213. --------------------
  2214. Fix fallback resolution, (thanks again to inkscape users/developers
  2215. for helping us find this one).
  2216. cairo-quartz
  2217. ------------
  2218. Mark the cairo-quartz backend as "supported" rather than
  2219. "experimental". This means the following:
  2220. * The backend will now be built by default (if possible).
  2221. * We are committing that the backend-specific API (as published in
  2222. cairo-quartz.h) are stable and will be supported in all future
  2223. cairo 1.x releases.
  2224. * We are committing that the output quality of this backend
  2225. compares favorably with other cairo backends, (and that quality
  2226. is ensured by good results from the cairo test suite).
  2227. * We recommend that distributions build and distribute this
  2228. backend when possible.
  2229. Note that the cairo_quartz_image API (in cairo-quartz-image.h) is
  2230. still experimental, will not build by default, (pass
  2231. --enable-quartz-image to configure to build it), and may see API
  2232. changes before it is marked as "supported" in a future release.
  2233. Put the CAIRO_FONT_TYPE_ATSUI name back into
  2234. cairo-deprecated.h. Without this, the cairo 1.5.14 snapshot broke all
  2235. builds for applications using the C++ cairomm bindings (and perhaps
  2236. others) which have the CAIRO_FONT_TYPE_ATSUI name in their header
  2237. files. This breakage happened even for applications not using
  2238. cairo-quartz at all.
  2239. Note: Even though the CAIRO_FONT_TYPE_ATSUI name is provided to
  2240. avoid this build breakage, we still recommend that bindings and
  2241. applications move to the new, and more accurate,
  2242. CAIRO_FONT_TYPE_QUARTZ name.
  2243. Replace the implementation of cairo-quartz-font to use CFFont instead
  2244. of ATSUI. The CGFont API is a better fit than ATSUI, and this new
  2245. implementation is also more correct than the old one as well.
  2246. This also adds the following new API call:
  2247. cairo_public cairo_font_face_t *
  2248. cairo_quartz_font_face_create_for_cgfont (CGFontRef font);
  2249. The previous cairo_quartz_font_face_create_for_atsu_font_id function
  2250. continues to exist and is part of the supported API going
  2251. forward. (However, the old name of that same function, which was
  2252. cairo_atsui_font_face_create_for_atsu_font_id is officially
  2253. deprecated. Any source code using the old name should be updated to
  2254. use the new name.)
  2255. Fix transformation of source pattern for cairo_stroke().
  2256. cairo-win32
  2257. -----------
  2258. Avoid crash in create_similar is cairo_win32_surface_create fails.
  2259. Snapshot 1.5.14 (2008-03-20 Carl Worth <cworth@cworth.org>)
  2260. ===========================================================
  2261. This is the seventh snapshot in cairo's unstable 1.5 series. It comes
  2262. 3 weeks after the 1.5.12 snapshot. This snapshot includes support for
  2263. arbitrary X server visuals, (including PseudoColor), which was the
  2264. final remaining cairo-specific item on the cairo 1.6 roadmap. It also
  2265. includes a huge number of improvements to the cairo-quartz backend. So
  2266. this is effectively a cairo 1.6 release candidate. We expect very few
  2267. changes from now until 1.6 and only for specific bug fixes.
  2268. API Change
  2269. ----------
  2270. Rename ATSUI font backend to Quartz font backend. This affects the
  2271. following usage:
  2272. --enable-atsui -> --enable-quartz-font
  2273. CAIRO_HAS_ATSUI_FONT -> CAIRO_HAS_QUARTZ_FONT
  2274. CAIRO_FONT_TYPE_ATSUI -> CAIRO_FONT_TYPE_QUARTZ
  2275. cairo_atsui_font_face_create_for_atsu_font_id ->
  2276. cairo_quartz_font_font_create_for_atsu_font_id
  2277. This API change is justified by the cairo-quartz backend still be
  2278. marked as "experimental" rather than "supported", (though this is one
  2279. step toward making the change to "supported" before 1.6). Cairo will
  2280. still provide ABI compatibility with the old symbol name, however.
  2281. paginated (all of ps, pdf, svg, and win32-printing)
  2282. ---------------------------------------------------
  2283. Optimize by not analyzing an image surface for transparency more than
  2284. once, (previously all images were analyzed twice).
  2285. cairo-ps and cairo-pdf
  2286. ----------------------
  2287. Avoiding emitting a matrix into the stroke output when unnecessary,
  2288. (making output size more efficient).
  2289. Reduce rounding error of path shapes by factoring large scale factors
  2290. out of the path matrix, (ensuring that a fixed-number of printed
  2291. digits for path coordinates contains as much information as possible).
  2292. Reduce excess digits for text position coordinates. This makes the
  2293. output file size much smaller without making the result any less
  2294. correct.
  2295. cairo-ps
  2296. --------
  2297. Eliminate bug causing extraneous text repetition on Linux PostScript
  2298. output in some cases.
  2299. See: Mozilla Bug 419917 – Printed page contents are reflected
  2300. inside bordered tables (Linux-only)
  2301. https://bugzilla.mozilla.org/show_bug.cgi?id=419917
  2302. Optimize output when EXTEND_PAD is used.
  2303. cairo-pdf
  2304. ---------
  2305. Fix to not use fill-stroke operator with transparent fill, (else PDF
  2306. output doesn't match the cairo-defined correct result). See:
  2307. https://bugs.launchpad.net/inkscape/+bug/202096
  2308. cairo-svg
  2309. ---------
  2310. Fix stroke of path with a non-solid-color source pattern:
  2311. http://bugs.freedesktop.org/show_bug.cgi?id=14556
  2312. cairo-quartz
  2313. ------------
  2314. Fix text rendering with gradient or image source pattern.
  2315. Handling antialiasing correctly for cairo_stroke(), cairo_clip(), and
  2316. cairo_show_text()/cairo_show_glyphs().
  2317. Correctly handle gradients with non-identity transformations:
  2318. Fixes http://bugs.freedesktop.org/show_bug.cgi?id=14248
  2319. Add native implementation of REPEAT and REFLECT extend modes for
  2320. gradients.
  2321. Fix implementation for the "unbounded" operators, (CAIRO_OPERATOR_OUT,
  2322. _IN, _DEST_IN, and _DEST_ATOP).
  2323. Correctly handle endiannees in multi-architecture compiles on Mac OS
  2324. X.
  2325. Avoid behavior which would cause Core Graphics to print warnings to
  2326. the console in some cases.
  2327. cairo-win32
  2328. -----------
  2329. Fix handling of miter limit.
  2330. cairo-win32-printing
  2331. --------------------
  2332. Fix to not use a 1bpp temporary surface in some cases while printing,
  2333. (so grayscale data is preserved rather than just becoming black and
  2334. white).
  2335. cairo-xlib
  2336. ----------
  2337. Add support for rendering to arbitrary TrueColor X server
  2338. visuals. This fixes at least the following bugs:
  2339. cairo doesn't support 8-bit truecolor visuals
  2340. https://bugs.freedesktop.org/show_bug.cgi?id=7735
  2341. cairo doesn't support 655 xlib format
  2342. https://bugs.freedesktop.org/show_bug.cgi?id=9719
  2343. Add support for rendering to 8-bit PseudoColor X server visuals. This
  2344. fixes the following bug:
  2345. Cairo doesn't support 8-bit pseudocolor visuals
  2346. https://bugs.freedesktop.org/show_bug.cgi?id=4945
  2347. Snapshot 1.5.12 (2008-02-28 Carl Worth <cworth@cworth.org>)
  2348. ===========================================================
  2349. This is the sixth snapshot in cairo's unstable 1.5 series. It comes 1
  2350. week after the 1.5.10 snapshot. This snapshot includes the
  2351. long-awaited change from 16.16 to 24.8 fixed-point values, (see below
  2352. for why you should care). It also includes several backend-specific
  2353. bug fixes.
  2354. 24.8 fixed-point format
  2355. -----------------------
  2356. Cairo has always converted path coordinates to a fixed-point
  2357. representation very early in its processing. Historically, this has
  2358. been a 32-bit representation with 16 bits of integer for the
  2359. device-pixel grid and 16 bits of sub-pixel positioning. The choice of
  2360. 16 bits for the integer coordinate space was based on the 16-bit limit
  2361. for X Window drawables.
  2362. This 16-bit limit has proven problematic for many applications. It's
  2363. an especially vexing problem when targeting non-X backends that don't
  2364. have any 16-bit restriction. But even when targeting cairo-xlib, it's
  2365. often desirable to draw a large shape, (say a background rectangle),
  2366. that extends beyond the surface bounds and expect it to fill the
  2367. surface completely, (rather than overflowing and triggering random
  2368. behavior).
  2369. Meanwhile, nobody has ever really needed 16 bits of sub-pixel
  2370. precision.
  2371. With this snapshot, the fixed-point system is still in place and is
  2372. still using a 32-bit representation, (future versions of cairo might
  2373. move entirely to floating-point when targeting PDF output for
  2374. example). But the representation now provides 24 bits of pixel
  2375. addressing and only 8 bits of sub-pixel positioning. This should give
  2376. a much less stifling space to many applications.
  2377. However, the underlying pixman library still has 16-bit limitations in
  2378. many places, (it has its roots in the X server as well). Until those
  2379. are also fixed, applications targeting cairo image surfaces, or
  2380. hitting software fallbacks when targeting other surfaces will still
  2381. encounter problems with device-space values needing more than 16
  2382. integer bits.
  2383. generic fixes
  2384. -------------
  2385. Add a few tests to the test suite to increase coverage.
  2386. Cleanup a few error-handling paths, (propagate error correctly).
  2387. cairo-ft
  2388. --------
  2389. Fix handling of font sizes smaller than 1 device pixel.
  2390. cairo-pdf
  2391. ---------
  2392. Fix to properly save/restore clip when analyzing meta-surface
  2393. patterns, (fixing a couple of test-suite failures).
  2394. Implement native support for CAIRO_OPERATOR_SOURCE when the source
  2395. pattern is opaque.
  2396. Emit rectangles as PDF rectangles ("re" operator) rather than as
  2397. general paths.
  2398. cairo-ps
  2399. --------
  2400. Fix to work properly with the 16.16->24.8 change.
  2401. cairo-svg
  2402. ---------
  2403. Fix CAIRO_EXTEND_REFLECT by using an image fallback, (there's no
  2404. direct SVG support for reflected patterns).
  2405. Fix the use of alpha-only masks, (such as CAIRO_FORMAT_A8).
  2406. cairo-quartz
  2407. ------------
  2408. Add new API for efficiently using image data as a source:
  2409. cairo_surface_t *
  2410. cairo_quartz_image_surface_create (cairo_surface_t *image_surface);
  2411. cairo_surface_t *
  2412. cairo_quartz_image_surface_get_image (cairo_surface_t *surface);
  2413. For full documentation, see:
  2414. http://cairographics.org/manual/cairo-Quartz-Surfaces.html#cairo-quartz-image-surface-create
  2415. Several fixes for cairo_mask().
  2416. cairo-atsui
  2417. -----------
  2418. Change default from from Monaco to Helvetica to be more consistent
  2419. with other font backends.
  2420. Snapshot 1.5.10 (2008-02-20 Carl Worth <cworth@cworth.org>)
  2421. ===========================================================
  2422. This is the fifth snapshot in cairo's unstable 1.5 series. It comes 3
  2423. weeks after the 1.5.8 snapshot. This snapshot adds one new API
  2424. function, (cairo_has_current_point), and the usual mix of
  2425. improvements, (more efficient PostScript/PDF output, optimized
  2426. stroking), and fixes (more robust error-handling, etc.). See below for
  2427. details.
  2428. New API
  2429. -------
  2430. Add a new function to query if there is a current point:
  2431. cairo_bool_t
  2432. cairo_has_current_point (cairo_t *cr);
  2433. There is no current point immediately after cairo_create(), nor after
  2434. cairo_new_path() or cairo_new_sub_path(). There is a current point
  2435. after any of the path-creation functions, (cairo_move_to,
  2436. cairo_line_to, cairo_curve_to, etc.).
  2437. With this new function, we also revert the change of the return type
  2438. of cairo_get_current_point from cairo 1.5.8, (it's now a void function
  2439. again).
  2440. Optimizations
  2441. -------------
  2442. Optimize stroking code to avoid repeated calculation of redundant
  2443. values, (particularly significant for very large, offscreen paths).
  2444. General fixes
  2445. -------------
  2446. Patch a few more potential buffer overruns, (due to integer
  2447. overflow).
  2448. Many fixes and improvements to cairo's error-handling, (ensure that
  2449. correct error values are returned, clean up memory leaks on
  2450. error-handling paths, etc.).
  2451. Fix a potential infinite loop when stroking a spline with a pen that
  2452. has been transformed to a line segment.
  2453. Remove treating NULL as a synonym for a valid cairo_font_options_t*
  2454. with default values, (a change that had been introduced as of cairo
  2455. 1.5.8).
  2456. Remove the altered handling of tolerance and fallback-resolution that
  2457. had been introduced as of cairo 1.5.4.
  2458. cairo-xlib
  2459. ----------
  2460. Pass the original Drawable, (as opposed to the root window), to
  2461. XCreatePixmap when creating a similar surface. This gives the X server
  2462. more information so that it can be clever and efficient.
  2463. cairo-pdf
  2464. ---------
  2465. Fix the rendering of repeating and reflecting patterns.
  2466. Ensure miter limit is always >= 1, (smaller limits are not meaningful,
  2467. but they can cause some PDF viewers to fail to display pages).
  2468. Generate more efficient output when the same path is used for both
  2469. fill and stroke.
  2470. cairo-ps
  2471. --------
  2472. Start sharing much of the cairo-pdf code rather than implementing very
  2473. similar code in cairo-ps.
  2474. Implement native support for repeating and reflecting linear
  2475. gradients.
  2476. Implement reflected surface patterns.
  2477. Ensure miter limit is always >= 1, (smaller limits are not meaningful,
  2478. but they can cause some PostScript viewers to crash).
  2479. Generate PostScript that will perform more efficiently and use less
  2480. memory on printers, (use currentfile instead of a giant string array
  2481. for image data, and avoid using PostScript patterns for paint() and
  2482. fill() when possible).
  2483. cairo-svg
  2484. ---------
  2485. Avoid unnecessary rasterization when copying a "similar" surface to
  2486. another svg surface, (allow the SOURCE operator to be implemented with
  2487. all-vector operations if there are no underlying objects).
  2488. cairo-atsui
  2489. -----------
  2490. Eliminate infinite loop when attempting to render an empty string.
  2491. Snapshot 1.5.8 (2008-01-30 Carl Worth <cworth@cworth.org>)
  2492. ==========================================================
  2493. This is the fourth snapshot in cairo's unstable 1.5 series. It comes 2
  2494. weeks after the 1.5.6 snapshot. It adds a few new API functions. Most
  2495. notably all callers of cairo_image_surface_create_for_data should now
  2496. be calling cairo_format_stride_for_width to compute a legal stride
  2497. value. See below for more details.
  2498. New API in cairo 1.5.8
  2499. ----------------------
  2500. We've added a new function that should be called to compute a legal
  2501. stride value before allocating data to be used with
  2502. cairo_image_surface_create_for_data:
  2503. int
  2504. cairo_format_stride_for_width (cairo_format_t format,
  2505. int width);
  2506. We've also added a new cairo_path_extents function that can be used to
  2507. compute a bounding box for geometry such as a single line segment,
  2508. (contrast with cairo_path_extents and cairo_stroke_extents):
  2509. void
  2510. cairo_path_extents (cairo_t *cr,
  2511. double *x1, double *y1,
  2512. double *x2, double *y2);
  2513. And finally, we've added a function to allow for querying the
  2514. XRenderPictFormat of a cairo-xlib surface:
  2515. XRenderPictFormat *
  2516. cairo_xlib_surface_get_xrender_format (cairo_surface_t *surface);
  2517. API changes
  2518. -----------
  2519. Fix return types of cairo_surface_show_page and
  2520. cairo_surface_copy_page. This is an API change to functions that are
  2521. new in the 1.5 series, so not an API break compared to any stable
  2522. cairo release, (1.0.x, 1.2.x, 1.4.x).
  2523. Change the return type of cairo_get_current_point() from void to
  2524. cairo_status_t. This allows the caller to receive a
  2525. CAIRO_STATUS_NO_CURRENT_POINT value to distinguish the a current point
  2526. at the origin from no current point existing.
  2527. Performance improvement
  2528. -----------------------
  2529. Improve performance of clipping by using an optimized code path
  2530. internally, (with the ADD operator instead of IN).
  2531. General bug fixes
  2532. -----------------
  2533. Fix various cairo_*_extents functions to initialize the return-value
  2534. variables even in the case of a cairo_t in error.
  2535. Treat NULL as a legitimate value for cairo_font_options_t*. [NOTE:
  2536. On discussion afterwards, we decided against this change so it has
  2537. been removed as of cairo 1.5.10.]
  2538. Fix rendering with CAIRO_ANTIALIAS_NONE to be more predictable, (that
  2539. is, to avoid seams appearing when geometry and imagery share an
  2540. identical edge). Portions of this fix are in the pixman library and
  2541. will appear in a future release of that library.
  2542. Avoid triggering an error for a font size of 0.
  2543. Miscellaneous changes
  2544. ---------------------
  2545. Require pixman >= 0.9.6.
  2546. There has been a tremendous amount improvement to cairo's
  2547. documentation. We're delighted that 100% of the public API has at
  2548. least some documentation in the API reference manual. Many thanks to
  2549. Behdad Esfahbod and Nis Martensen for leading this effort.
  2550. cairo-pdf and cairo-ps
  2551. ----------------------
  2552. Eliminate failure when a Type 1 font is embedded with an explicit
  2553. glyph 0.
  2554. cairo-pdf
  2555. ---------
  2556. Implement a more correct and more efficient approach for patterns with
  2557. an extend mode of CAIRO_EXTEND_REFLECT.
  2558. cairo-ps
  2559. --------
  2560. Fix image masks to properly pack and pad mask bits.
  2561. cairo-quartz
  2562. ------------
  2563. Take care to only use DrawTiledImage for integer-aligned images, (and
  2564. use slower paths to get the correct result in other cases).
  2565. cairo-win32
  2566. -----------
  2567. Fix for older versions of mingw.
  2568. Improve the handling of the clipping with the win32 and win32-printing
  2569. surfaces.
  2570. Fix rendering of non black/white text.
  2571. Snapshot 1.5.6 (2008-01-15 Carl Worth <cworth@cworth.org>)
  2572. ==========================================================
  2573. This is the third snapshot in cairo's unstable 1.5 series. It comes
  2574. about 6 weeks after the 1.5.4 snapshot. The only API addition compared
  2575. to 1.5.4 is very minor, (a new value CAIRO_STATUS_TEMP_FILE_ERROR).
  2576. The remainder of the changes are the usual accumulation of bug fixes
  2577. and improvements. See below for details.
  2578. General bug fixes
  2579. -----------------
  2580. Fix handling of fonts that contain a mixture of outline and bitmapped
  2581. glyphs. There was a change in this handling in 1.5.4 that improved
  2582. some cases and also regressed other cases. Now, all cases should be
  2583. handled quite well.
  2584. Fix alignment issues that were causing SIGBUS failures on SPARC.
  2585. Fix a regression (which first appeared in 1.5.2) where stroking under
  2586. a large scale would sometimes incorrectly replace a miter join with a
  2587. bevel join. (Thanks to Keith Packard.)
  2588. Fix reporting of zero-sized extents to be {0,0} rather than
  2589. {INT_MAX,INT_MIN}. This avoids several integer overflow and
  2590. allocations of massive regions in some cases.
  2591. Fix failures of gradients with no stops, (quartz, ps, and pdf).
  2592. Fix handling of Type 1 fonts on Windows platforms.
  2593. Fix handling of Type 1 fonts with no specific family name in the font
  2594. itself, (generate a CairoFont-x-y name).
  2595. Handle NULL string values in cairo_show_text, cairo_show_glyphs, and
  2596. friends.
  2597. Many robustness improvements along error-handling paths, (thanks as
  2598. always, to Chris "ickle" Wilson).
  2599. Various other minor fixes.
  2600. Paginated backends (PDF/PostScript/win32-printing)
  2601. --------------------------------------------------
  2602. Avoid unnecessary rasterization when using a paginated surface as a
  2603. source, (such as drawing from one pdf surface to another).
  2604. Fix replaying of paginated surface with more than one level of push/pop
  2605. group.
  2606. cairo-xlib
  2607. ----------
  2608. Fix xlib backend to not consider recent X server release as having a
  2609. buggy repeat implementation in the Render extension.
  2610. cairo-pdf
  2611. ---------
  2612. Fix PDF output to avoid triggering very slow rendering in PDF viewers,
  2613. (avoid starting and stopping the content stream for each pattern
  2614. emission).
  2615. Support CAIRO_OPERATOR_SOURCE in cases where there is nothing below
  2616. the object being drawn.
  2617. Fix to avoid seams appearing between multiple fallback regions.
  2618. cairo-ps (PostScript)
  2619. ---------------------
  2620. Use correct bounding box in Type 3 fonts.
  2621. Fix several bugs in cairo's PostScript output. These include making
  2622. the PostScript output more compatible with recent versions of
  2623. ghostscript that are more strict about Type 3 fonts, for
  2624. example.
  2625. Fix for win32 to not attempt to create temporary files in the root
  2626. directory, (where the user may not have write permission).
  2627. Avoid generating Level 3 PostScript if Level 2 is sufficient. Also,
  2628. add code in output documents to alert the user if Level 3 PostScript
  2629. is handed to a device that cannot handle PostScript beyond Level
  2630. 2.
  2631. cairo-directfb
  2632. --------------
  2633. Various performance optimizations.
  2634. Fixed support for small surfaces (less than 8x8).
  2635. Provide support for environment variables CAIRO_DIRECTFB_NO_ACCEL to
  2636. disable acceleration and CAIRO_DIRECTFB_ARGB_FONT to enable ARGB fonts
  2637. instead of A8.
  2638. cairo-os2
  2639. ---------
  2640. Allow OS/2 APIs instead of C library allocation functions.
  2641. Snapshot 1.5.4 (2007-12-05 Carl Worth <cworth@cworth.org>)
  2642. ==========================================================
  2643. This is the second snapshot in cairo's unstable 1.5 series. It comes
  2644. just over 1 month after the 1.5.2 snapshot. There are no API changes
  2645. or additions in 1.5.4 compared to 1.5.2, but there are several bug
  2646. fixes, and some optimizations. Most of these apply to particular
  2647. backends. See below for details.
  2648. General improvements
  2649. --------------------
  2650. Use less memory for spline approximation calculations.
  2651. Change how the tolerance value is interpreted with regard to
  2652. fallback-resolution. [Note: On further discussion, we decided against
  2653. this change for now. It is removed as of cairo 1.5.10.]
  2654. Fix precision of floating-point values in vector-output backends to
  2655. avoid rounding errors with very small numbers.
  2656. Xlib improvements
  2657. -----------------
  2658. Fix bug in glyph rendering with xlib, (due to everything being clipped
  2659. out). This was a regression in the 1.5.2 snapshot that was visible in
  2660. the GIMP, for example. See:
  2661. cairo 1.5.2 causes font problems in GIMP 2.4 status bar and evolution 2.12.1
  2662. https://bugs.freedesktop.org/show_bug.cgi?id=13084
  2663. PostScript improvements
  2664. -----------------------
  2665. Fix bug leading to invalid PostScript files when rendering
  2666. text, (need "0 0 xyshow" instead of "0 xyshow").
  2667. Fix many issues with Type 3 fonts, including making the resulting text
  2668. extractable.
  2669. Quartz improvements
  2670. -------------------
  2671. Fix font metrics height value for ATSUI, (helps webkit on GTK+ OS X
  2672. layout nicely).
  2673. Fix gradients.
  2674. Fix EXTEND_NONE mode for patterns.
  2675. Fix cairo_quartz_surface_create to properly clear the new surface
  2676. in cairo_quartz_surface_create.
  2677. Fix to correctly handle 0x0 sized surfaces.
  2678. Optimize drawing of EXTEND_REPEAT patterns for OS X 10.5.
  2679. Snapshot 1.5.2 (2007-10-30 Carl Worth <cworth@cworth.org>)
  2680. ==========================================================
  2681. This is the first snapshot in cairo's unstable 1.5 series. It comes 4
  2682. months after the 1.4.10 release. This snapshot includes significant
  2683. improvements to PDF and PostScript output, which is one of the things
  2684. in which we're most interested in getting feedback. There are a couple
  2685. of minor API additions, and several optimizations, (primarily in the
  2686. "print/vector" backends). And there are dozens of bug fixes and
  2687. robustness improvements.
  2688. New dependency on external pixman library
  2689. -----------------------------------------
  2690. A significant change in this snapshot compared to all previous cairo
  2691. releases is that cairo now depends on an external "pixman" library for
  2692. its software rendering. Previously this same code was compiled
  2693. internally as part of cairo, but now the code is separate so that both
  2694. cairo and the X server can now share common code, (thanks very much to
  2695. Søren Sandmann for his work on separating pixman and maintaining it).
  2696. So users will need to acquire and build pixman before being able to
  2697. build cairo. The current release is 0.9.6 and can be obtained from
  2698. here:
  2699. http://cairographics.org/releases/pixman-0.9.6.tar.gz
  2700. which can be verified with:
  2701. http://cairographics.org/releases/pixman-0.9.6.tar.gz.sha1
  2702. 66f01a682c64403a3d7a855ba5aa609ed93bcb9e pixman-0.9.6.tar.gz
  2703. http://cairographics.org/releases/pixman-0.9.6.tar.gz.sha1.asc
  2704. (signed by Carl Worth)
  2705. Major PDF/PostScript improvements
  2706. ---------------------------------
  2707. Adrian Johnson has done some long-awaited work to make cairo's PDF and
  2708. PostScript output more interesting than ever before. First, many
  2709. operations that previously triggered image fallbacks will now be
  2710. rendered as native vectors. These operations include:
  2711. PDF: cairo_push_group, cairo_surface_create_similar,
  2712. cairo_mask, A8/A1 surface sources, repeating/reflecting linear
  2713. gradients.
  2714. PostScript: cairo_push_group, cairo_surface_create_similar,
  2715. gradients, bilevel alpha masks, (for example, all values either 0 or
  2716. 255 for an A8 mask).
  2717. Not only that, but when an image fallback is required, it will now be
  2718. limited to only the necessary region. For example, a tiny translucent
  2719. image overlaying a small portion of text would previously caused an
  2720. entire PostScript page to be rendered as a giant image. Now, the
  2721. majority of that page will be nice text, and there will only be a tiny
  2722. image in the output.
  2723. Additionally, the PostScript output now carefully encodes text so that
  2724. if it is subsequently converted to PDF, the text will be
  2725. selectable.
  2726. This is very exciting progress, and we're hoping to hear from users
  2727. during the 1.5 series about how things have improved, (for example,
  2728. inkscape users doing cairo-based PDF export: please let us know how
  2729. things look). And feel free to pass your thanks along to Adrian for his excellent work.
  2730. NOTE: This much improved PDF output makes more sophisticated use of
  2731. functionality in the PDF specification. This means that cairo's output
  2732. will sometimes expose bugs in some free software PDF viewers, (evince,
  2733. poppler, and xpdf, for example), that are not yet ready for such PDF
  2734. files. We're working with the poppler maintainers to get these bugs
  2735. fixed as quickly as possible. In the meantime, please double-check
  2736. with other PDF viewers if cairo-generated PDF files are not being
  2737. rendered correctly. It may be due to a bug in the viewer rather than
  2738. in the PDF file that cairo has created.
  2739. Robustness improvements
  2740. -----------------------
  2741. Chris Wilson has made the largest contribution by far to cairo 1.5.2,
  2742. (in number of commits). His more than 150 commits include a huge
  2743. number of fixes to increase cairo's robustness. These fixes make cairo
  2744. more robust against invalid and degenerate input, (NaN, empty path,
  2745. etc.), against size-0 malloc calls, against memory leaks on
  2746. error-recovery paths, and against other failures during error
  2747. handling. He also implemented atomic operations to cairo, and used
  2748. them to fix cairo's previously non-thread-safe reference counting,
  2749. again improving robustness.
  2750. Chris has put a tremendous amount of time and effort into writing
  2751. analysis tools for this work, and in running those tools and fixing
  2752. the problems they report. We're very grateful for this work, and hope
  2753. that all cairo users appreciate the more robust implementation that
  2754. results from it.
  2755. This work is largely thankless, so it might make sense to notice
  2756. sometime that cairo has been running quite smoothly for you, and when
  2757. you do, send a quick "thank you" off to Chris Wilson, since it
  2758. is all definitely running smoother thanks to his work.
  2759. New API
  2760. -------
  2761. There are no major additions to cairo's core API. The only new,
  2762. generic functions are:
  2763. void
  2764. cairo_surface_copy_page (cairo_surface_t *surface);
  2765. void
  2766. cairo_surface_show_page (cairo_surface_t *surface);
  2767. which can now be used much more conveniently than the existing
  2768. cairo_copy_page and cairo_show_page functions in some
  2769. situations. These functions act identically, but require only a
  2770. cairo_surface_t* and not a cairo_t*.
  2771. All other API additions are specific to particular backends.
  2772. New cairo-win32 API (new font face function and "win32 printing" surface)
  2773. -------------------------------------------------------------------------
  2774. There is a new function for creating a win32 font face for both a
  2775. logfontw and an hfont together. This complements the existing
  2776. functions for creating a font face from one or the other:
  2777. cairo_font_face_t *
  2778. cairo_win32_font_face_create_for_logfontw_hfont (LOGFONTW *logfont,
  2779. HFONT font);
  2780. There is also a new "win32 printing" surface:
  2781. cairo_surface_t *
  2782. cairo_win32_printing_surface_create (HDC hdc);
  2783. This interface looks identical to the original
  2784. cairo_win32_surface_create, (both accept and HDC), but the behavior of
  2785. this new surface is very different. It should only be called with a
  2786. printing DC, and will result in all drawing commands being stored into
  2787. a meta-surface and emitted after each page is complete, with analysis
  2788. to do as minimal image-based fallbacks as necessary. The behavior and
  2789. implementation shares much with the PDF and PostScript backends.
  2790. New cairo-ps API (EPS and PostScript level control)
  2791. ---------------------------------------------------
  2792. An often requested feature has been the ability to generate
  2793. Encapsulated PostScript (EPS) with cairo. We have that now with the
  2794. following very simple API. Just do cairo_ps_surface_create as usual
  2795. then call this function with a true value:
  2796. void
  2797. cairo_ps_surface_set_eps (cairo_surface_t *surface,
  2798. cairo_bool_t eps);
  2799. [NOTE: As always with snapshots, it's possible---though not very
  2800. likely---that the API could still be modified before a final
  2801. release. For example, this is the first public cairo function that
  2802. accepts a Boolean parameter. I'm generally opposed to Boolean
  2803. parameters, but this is probably the one case where I'm willing to
  2804. accept one, (namely a "set" function that accepts a single Boolean).]
  2805. Also, it is now possible to control what PostScript level to target,
  2806. (either level 2 or level 3), with the following new API:
  2807. typedef enum _cairo_ps_level {
  2808. CAIRO_PS_LEVEL_2,
  2809. CAIRO_PS_LEVEL_3
  2810. } cairo_ps_level_t;
  2811. void
  2812. cairo_ps_surface_restrict_to_level (cairo_surface_t *surface,
  2813. cairo_ps_level_t level);
  2814. void
  2815. cairo_ps_get_levels (cairo_ps_level_t const **levels,
  2816. int *num_levels);
  2817. const char *
  2818. cairo_ps_level_to_string (cairo_ps_level_t level);
  2819. Improvement for cairo-quartz
  2820. ----------------------------
  2821. Brian Ewins had contributed several improvements to cairo-quartz. These
  2822. include an implementation of EXTEND_NONE for linear and radial
  2823. gradients, (so this extend mode will no longer trigger image fallbacks
  2824. for these gradients), as well as native surface-mask clipping, (only
  2825. on OS X 10.4+ where the CGContextClipToMask function is available).
  2826. He also fixed a semantic mismatch between cairo and quartz for dashing
  2827. with an odd number of entries in the dash array.
  2828. We're grateful for Brian since not many quartz-specific improvements
  2829. to cairo would be happening without him.
  2830. Optimizations
  2831. -------------
  2832. Optimize SVG output for when the same path is both filled and stroked,
  2833. and avoid unnecessary identity matrix in SVG output. (Emmanuel Pacaud).
  2834. Optimize PS output to take less space (Ken Herron).
  2835. Make PS output more compliant with DSC recommendations (avoid initclip
  2836. and copy_page) (Adrian Johnson).
  2837. Make PDF output more compact (Adrian Johnson).
  2838. Release glyph surfaces after uploading them to the X server, (should
  2839. save some memory for many xlib-using cairo application). (Behdad
  2840. Esfahbod).
  2841. Optimize cairo-win32 to use fewer GDI objects (Vladimir Vukicevic).
  2842. win32-printing: Avoid falling back to images when alpha == 255
  2843. everywhere. (Adrian Johnson).
  2844. win32-printing: Avoid falling back for cairo_push_group and
  2845. cairo_surface_create_similar. (Adrian Johnson)
  2846. Bug fixes
  2847. ---------
  2848. Avoid potential integer overflows when allocating large buffers
  2849. (Vladimir Vukicevic).
  2850. Preparations to allow the 16.16 fixed-point format to change to
  2851. 24.8 (Vladimir Vukicevic).
  2852. Fix bugs for unsupported X server visuals (rgb565, rgb555, bgr888, and
  2853. abgr8888). (Carl Worth and Vladimir Vukicevic)
  2854. Fix bugs in PDF gradients (Adrian Johnson).
  2855. Fix cairo-xlib to build without requiring Xrender header
  2856. files (Behdad Esfahbod).
  2857. Make cairo more resilient in the case of glyphs not being available in
  2858. the current font. (Behdad Esfahbod)
  2859. Prevent crashes when both atsui and ft font backends are compiled in
  2860. (Brian Ewins).
  2861. Make font subsetting code more robust against fonts that don't include
  2862. optional tables (Adrian Johnson).
  2863. Fix CFF subsetting bug, (which manifested by generating PDF files that
  2864. Apple's Preview viewer could not read) (Adrian Johnson).
  2865. Fixed error handling for quartz and ATSUI backends (Brian Ewins).
  2866. Avoid rounding problems by pre-transforming to avoid integer-only
  2867. restrictions on transformation in GDI (Adrian Johnson).
  2868. Fixed an obscure bug (#7245) computing extents for some stroked
  2869. paths (Carl Worth).
  2870. Fix crashes due to extreme transformation of the pen, (seems to show
  2871. up in many .swf files for some reason) (Carl Worth).
  2872. Release 1.4.10 (2007-06-27 Carl Worth <cworth@cworth.org>)
  2873. ==========================================================
  2874. This is the fifth update in cairo's stable 1.4 series. It comes
  2875. roughly three weeks after the 1.4.8 release. The most significant
  2876. change in this release is a fix to avoid an X error in certain cases,
  2877. (that were causing OpenOffice.org to crash in Fedora). There is also a
  2878. semantic change to include child window contents when using an xlib
  2879. surface as a source, an optimization when drawing many rectangles, and
  2880. several minor fixes.
  2881. Eliminate X errors that were killing OO.o (Chris Wilson)
  2882. --------------------------------------------------------
  2883. Cairo is fixed to avoid the X errors propagated when cleaning up
  2884. Render Pictures after the application had already destroyed the
  2885. Drawable they reference. (It would be nice if the X server wouldn't
  2886. complain that some cleanup work is already done, but there you have
  2887. it.) This fixes the bug causing OpenOffice.org to crash as described
  2888. here:
  2889. XError on right click menus in OOo.
  2890. https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=243811
  2891. Use IncludeInferiors when using xlib surface as a source (Ryan Lortie)
  2892. ----------------------------------------------------------------------
  2893. When an xlib surface is used as the source of a draw operation the
  2894. contents of child windows are now included in the source data. The
  2895. semantics of drawing to xlib surfaces are unchanged (ie: draws are
  2896. still clipped by child windows overlapping the destination window).
  2897. Optimize drawing of many rectangles (Vladimir Vukicevic)
  2898. --------------------------------------------------------
  2899. Avoid O(N*N) loop when filling many axis-aligned rectangles, (either
  2900. many rectangles as separate sub-paths or due to dashing).
  2901. Miscellaneous fixes
  2902. -------------------
  2903. Fix cairo-perf on Solaris by linking to librt. (Behdad Esfahbod)
  2904. Fix make check for systems that require executable files to have a
  2905. particular extension. (Behdad Esfahbod)
  2906. Eliminate some warnings in cairo-quartz. (Brian Ewins)
  2907. Fix build-breaking typo for cairo-directfb. (Chris Wilson)
  2908. Release 1.4.8 (2007-06-07 Carl Worth <cworth@cworth.org>)
  2909. =========================================================
  2910. This is the fourth update in cairo's stable 1.4 series. It comes just
  2911. over five weeks after the 1.4.6 release. This release includes a
  2912. thread-safe surface-cache for solid patterns which significantly
  2913. improves text rendering with the xlib backend. Also, dozens of error
  2914. paths in cairo have been fixed thanks to extensive fault-injection
  2915. testing by Chris Wilson.
  2916. Surface cache for solid patterns
  2917. --------------------------------
  2918. Originally written by Jorn Baayen, the introduction of a small cache
  2919. for surfaces created for solid patterns improves performance
  2920. dramatically. For example, this reduces the volume of X requests
  2921. during text rendering to the same level as Xft.
  2922. This cache first made its appearance in a 1.3.x snapshot, but was
  2923. removed before appearing in any previous major release due to
  2924. complications with multi-threaded programs. For example, programs like
  2925. evince that would carefully restrict usage of cairo-xlib to a single
  2926. thread were unpleasantly surprised to find that using cairo-image in a
  2927. separate thread could trigger X requests.
  2928. Behdad Esfahbod designed a fix which was implemented by Chris
  2929. Wilson. Now, the necessary X requests are queued up until the next
  2930. time the application directly operates on an xlib surface.
  2931. Improved error handling paths
  2932. ------------------------------
  2933. Chris Wilson continued the excellent work he started in cairo 1.4.4 to
  2934. make cairo much more robust against out-of-memory and other errors. He
  2935. applied his memory allocation fault injection cairo's main test suite,
  2936. (previously he had applied it to cairo's performance suite).
  2937. Chris's testing found dozens of bugs which he fixed. Many of these
  2938. bugs had perhaps never been hit by any users. But at least one was
  2939. hit by the gnome-about program which resulted in dozens of duplicated
  2940. bug reports against that program:
  2941. http://bugzilla.gnome.org/show_bug.cgi?id=431990
  2942. We were very pleasantly surprised to see this bug get fixed as a
  2943. side-effect of Chris's work. Well done, Chris!
  2944. Other fixes
  2945. -----------
  2946. Cleanup of mutex declarations (Behdad Esfahbod)
  2947. Remove unnecessary clip region from SVG output (Emmanuel Pacaud)
  2948. Remove Xsun from the buggy_repeat blacklist (Elaine Xiong)
  2949. ATSUI: Fix glyph measurement: faster and more correct (Brian Ewins)
  2950. Quartz: fixed 'extend' behaviour for patterns, improved pattern performance,
  2951. and a few smaller correctness fixes. (Brian Ewins, Vladimir Vukicevic)
  2952. Release 1.4.6 (2007-05-01 Carl Worth <cworth@cworth.org>)
  2953. =========================================================
  2954. This is the third update in cairo's stable 1.4 series. It comes a
  2955. little less than three weeks since the 1.4.4 release. This release
  2956. fixes the broken mutex initialization that made cairo 1.4.4 unusable
  2957. on win32, OS/2, and BeOS systems. This release also adds significant
  2958. improvements to cairo's PDF backend, (native gradients!), and a couple
  2959. of performance optimizations, (one of which is very significant for
  2960. users of the xlib backend). See below for more details.
  2961. Repaired mutex initialization
  2962. -----------------------------
  2963. We apologize that cairo 1.4.4 did little more than crash on many
  2964. platforms which are less-frequently used by the most regular cairo
  2965. maintainers, (win32, OS/2, and BeOS). The mutex initialization
  2966. problems that caused those crashes should be fixed now. And to avoid
  2967. similar problems in the future, we've now started posting pre-release
  2968. snapshots to get better testing, (subscribe to cairo@cairographics.org
  2969. if you're interested in getting notified of those and testing them).
  2970. PDF Improvements
  2971. ----------------
  2972. Thanks to Adrian Johnson, (cairo PDF hacker extraordinaire), we have
  2973. several improvements to cairo's PDF backend to announce:
  2974. Native gradients:
  2975. As of cairo 1.4.6, cairo will now generate native PDF gradients in
  2976. many cases, (previously, the presence of a gradient on any page
  2977. would force rasterized output for that page). Currently, only
  2978. gradients with extend types of PAD (the default) or NONE will
  2979. generate native PDF gradients---others will still trigger
  2980. rasterization, (but look for support for other extend modes in a
  2981. future release). Many thanks to Miklós Erdélyi as well, who did the
  2982. initial work for this support.
  2983. Better compatibility with PDF viewers:
  2984. The PDF output from cairo should now be displayed correctly by a
  2985. wider range of PDF viewers. Adrian tested cairo's PDF output against
  2986. many PDF viewers, identified a common bug in many of those viewers
  2987. (ignoring the CTM matrix in some cases), and modified cairo's output
  2988. to avoid triggering that bugs (pre-transforming coordinates and
  2989. using an identity matrix).
  2990. Better OpenType/CFF subsetting:
  2991. Cairo will now embed CFF and TrueType fonts as CID fonts.
  2992. Performance optimizations
  2993. -------------------------
  2994. Faster cairo_paint_with_alpha:
  2995. The cairo_paint_with_alpha call is used to apply a uniform alpha
  2996. mask to a pattern. For example, it can be used to gradually fade an
  2997. image out or in. Jeff Muizelaar fixed some missing/broken
  2998. optimizations within the implementation of this function resulting
  2999. in cairo_paint_with_alpha being up to 4 times faster when using
  3000. cairo's image backend.
  3001. Optimize rendering of "off-screen" geometry:
  3002. Something that applications often do is to ask cairo to render
  3003. things that are either partially or wholly outside the current clip
  3004. region. Since 1.4.0 the image backend has been fixed to not waste
  3005. too much time in this case. But other backends have still been
  3006. suffering.
  3007. In particular, the xlib backend has often performed quite badly in
  3008. this situation. This is due to a bug in the implementation of
  3009. trapezoid rasterization in many X servers.
  3010. Now, in cairo 1.4.6 there is a higher-level fix for this
  3011. situation. Cairo now eliminates or clips trapezoids that are wholly
  3012. or partially outside the clip region before handing the trapezoids
  3013. to the backend. This means that the X server's performance bug is
  3014. avoided in almost all cases.
  3015. The net result is that doing an extreme zoom-in of vector-based
  3016. objects drawn with cairo might have previously brought the X server
  3017. to its knees as it allocated buffers large enough to fit all of the
  3018. geometry, (whether visible or not). But now the memory usage should
  3019. be bounded and performance should be dramatically better.
  3020. Miscellaneous
  3021. -------------
  3022. Behdad contributed an impressively long series of changes that
  3023. organizes cairo's internals in several ways that will be very
  3024. beneficial to cairo developers. Thanks, Behdad!
  3025. Behdad has also provided a utility for generating malloc statistics,
  3026. (which was used during the great malloc purges of 1.4.2 and
  3027. 1.4.4). This utility isn't specific to cairo so may be of benefit to
  3028. others. It is found in cairo/util/malloc-stats.c and here are Behdad's
  3029. notes on using it:
  3030. To build, do:
  3031. make malloc-stats.so
  3032. inside util/, and to use, run:
  3033. LD_PRELOAD=malloc-stats.so some-program
  3034. For binaries managed by libtool, eg, cairo-perf, do:
  3035. ../libtool --mode=execute /bin/true ./cairo-perf
  3036. LD_PRELOAD="../util/malloc-stats.so" .libs/lt-cairo-perf
  3037. Finally, the cairo-perf-diff-files utility was enhanced to allow for
  3038. generating performance reports from several runs of the same backend
  3039. while some system variables were changed. For example, this is now
  3040. being used to allow cairo-perf to measure the performance of various
  3041. different acceleration architectures and configuration options of the
  3042. X.org X server.
  3043. Release 1.4.4 (2007-04-13 Carl Worth <cworth@cworth.org>)
  3044. =========================================================
  3045. This is the second update release in cairo's stable 1.4 series. It
  3046. comes just less than a month after 1.4.2. The changes since 1.4.2
  3047. consist primarily of bug fixes, but also include at least one
  3048. optimization. See below for details.
  3049. Of all the work that went into the 1.4.4 release
  3050. There have been lots of individuals doing lots of great work on cairo,
  3051. but two efforts during the 1.4.4 series deserve particular mention:
  3052. Internal cleanup of error handling, (Chris Wilson)
  3053. --------------------------------------------------
  3054. Chris contributed a tremendous series of patches (74 patches!) to
  3055. improve cairo's handling of out-of-memory and other errors. He began
  3056. by adding gcc's warn_unused_attribute to as many functions as
  3057. possible, and then launched into the ambitious efforts of adding
  3058. correct code to quiet the dozens of resulting warnings.
  3059. Chris also wrote a custom valgrind skin to systematically inject
  3060. malloc failures into cairo, and did all the work necessary to verify
  3061. that cairo's performance test suite runs to completion without
  3062. crashing.
  3063. The end result is a much more robust implementation. Previously, many
  3064. error conditions would have gone unnoticed and would have led to
  3065. assertion failures, segmentation faults, or other harder-to-diagnose
  3066. problems. Now, more than ever, cairo should cleanly let the user know
  3067. of problems through cairo_status and other similar status
  3068. functions. Well done, Chris!
  3069. More malloc reduction, (Mathias Hasselmann)
  3070. -------------------------------------------
  3071. After 1.4.0, Behdad launched an effort to chase down excessive calls
  3072. to malloc within the implementation of cairo. He fixed a lot of
  3073. malloc-happy objects for 1.4.2, but one of the worst offenders,
  3074. (pixman regions), was left around. Mathias contributed an excellent
  3075. series of 15 patches to finish off this effort.
  3076. The end result is a cairo that calls malloc much less often than it
  3077. did before. Compared to 1.4.2, 55% of the calls to malloc have been
  3078. eliminate, (and 60% have been eliminated compared to 1.4.0). Well
  3079. done, Mathias!
  3080. Other improvements since 1.4.2
  3081. ------------------------------
  3082. • Centralize mutex declarations (will reduce future build breaks),
  3083. (Mathias Hasselmann)
  3084. • Reduce malloc by caching recently freed pattern objects (Chris
  3085. Wilson)
  3086. • Fix some broken composite operations (David Reveman)
  3087. https://bugs.freedesktop.org/show_bug.cgi?id=5777
  3088. Backend-specific fixes
  3089. ----------------------
  3090. PDF:
  3091. • Use TJ operator for more compact representation of glyphs (Adrian
  3092. Johnson)
  3093. • Fix glyph positioning bug when glyphs are not horizontal
  3094. http://lists.freedesktop.org/archives/cairo/2007-April/010337.html
  3095. win32:
  3096. • Fix crash when rendering with bitmap fonts (Carl Worth)
  3097. https://bugzilla.mozilla.org/show_bug.cgi?id=376498
  3098. xlib:
  3099. • Turn metrics-hinting on by default (Behdad Esfahbod)
  3100. • Fix edge-effect problem with transformed images drawn to xlib
  3101. (Behdad Esfahbod)
  3102. https://bugs.freedesktop.org/show_bug.cgi?id=10508
  3103. • Avoid dereferencing a NULL screen. (Chris Wilson)
  3104. https://bugs.freedesktop.org/show_bug.cgi?id=10517
  3105. Quartz/ATSUI:
  3106. • Fix scaling of glyph surfaces
  3107. (Brian Ewins)
  3108. https://bugs.freedesktop.org/show_bug.cgi?id=9568
  3109. • Fix compilation failure when both xlib and quartz enabled
  3110. (Brian Ewins)
  3111. • Fix rounding bug leading to incorrectly positioned glyphs
  3112. (Robert O'Callahan)
  3113. https://bugs.freedesktop.org/show_bug.cgi?id=10531
  3114. Release 1.4.2 (2007-03-19 Carl Worth <cworth@cworth.org>)
  3115. =========================================================
  3116. This is the first update release in cairo's stable 1.4 series. It
  3117. comes just less than 2 weeks after 1.4.0. We hadn't anticipated an
  3118. update this early, but we've managed to collect some important fixes
  3119. that we wanted to get out to cairo users as soon as possible, (6 fixes
  3120. for crashes, 1 case where graphical elements would not be drawn at
  3121. all, a handful of backend-specific bugs, and several important build
  3122. fixes).
  3123. There's almost nothing but bug fixes in this release, (see below one
  3124. optimization that Behdad did sneak in), so we recommend that everyone
  3125. upgrade to this release when possible.
  3126. Thanks to the many people that worked to fix these bugs, and those
  3127. that did the work to report them and to test the fixes, (wherever
  3128. possible both names are credited below).
  3129. Critical fixes
  3130. --------------
  3131. • Fix a crash due to a LOCK vs. UNLOCK typo (M. Drochner fixing Carl
  3132. Worth's embarrassing typo).
  3133. http://bugs.freedesktop.org/show_bug.cgi?id=10235
  3134. • Fix potential buffer overflow, which on some systems with a checking
  3135. variant of snprintf would lead to a crash (Adrian Johnson, Stanislav
  3136. Brabec, and sangu).
  3137. https://bugs.freedesktop.org/show_bug.cgi?id=10267
  3138. https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=232576
  3139. • Fix a crash in cairo_stroke_extents or cairo_in_stroke when line
  3140. width is 0.0. (Carl Worth and Sebastien Bacher)
  3141. https://bugs.freedesktop.org/show_bug.cgi?id=10231
  3142. • Fix a crash on certain combinations of X server/video drivers (Carl
  3143. Worth and Tomas Carnecky).
  3144. https://bugs.freedesktop.org/show_bug.cgi?id=10250
  3145. • Fix a crash due to mishandling of invalid user input (Carl Worth and
  3146. Alexander Darovsky).
  3147. https://bugs.freedesktop.org/show_bug.cgi?id=9844
  3148. • xlib: Cleanup server-side glyph caches on XCloseDisplay. This
  3149. eliminated a crash detected by the perf suite, (and that
  3150. applications could have run into as well). (Chris Wilson)
  3151. Other bug fixes
  3152. ---------------
  3153. • Fix for some geometry which simply disappeared under some
  3154. transformations---a stroked line with an extreme skew in X, for
  3155. example (Carl Worth and Jonathan Watt).
  3156. https://bugzilla.mozilla.org/show_bug.cgi?id=373632
  3157. • SVG: Fix radial gradients for CAIRO_EXTEND_REFLECT and when r0 > r1
  3158. (Emmanuel Pacaud).
  3159. • PDF: Set page group color space to DeviceRGB.
  3160. This fixes incorrect (muddy) transparent colors when rendering cairo
  3161. PDF output in some viewers. (Adrian Johnson, Adam Goode, and
  3162. MenTaLguY).
  3163. http://lists.freedesktop.org/archives/cairo/2006-November/008551.html
  3164. • win32: Return correct metrics when hinting is off, and fix font
  3165. descent computation (Behdad Esfahbod).
  3166. • quartz: Fix glyph interfaces to correctly return user-space rather
  3167. than device-space coordinates (Brian Ewins).
  3168. https://bugs.freedesktop.org/show_bug.cgi?id=9568
  3169. • xcb: Fix parameter-order confusion with xcb_create_pixmap, which now
  3170. makes all tests that pass with xlib now pass with xcb (Carl Worth,
  3171. Jamey Sharp).
  3172. • Fix some memory leaks in the perf suite (Chris Wilson).
  3173. • Fix perf suite to consider changes in pixman/src (Mathias
  3174. Hasselmann).
  3175. Build fixes
  3176. -----------
  3177. • Don't include pre-generated cairo-features.h file. This was causing
  3178. build failures when building with the directfb backend enabled
  3179. (Behdad Esfahbod).
  3180. https://bugs.freedesktop.org/show_bug.cgi?id=10189
  3181. • Eliminate use of maintainer mode from cairo's automake/configure
  3182. script. This means that updates to files such as Makefile.am will
  3183. take effect, (by rerunning automake and friends as necessary) when
  3184. invoking make rather than being silently ignored. (Behdad Esfahbod)
  3185. • Don't compile cairo-deflate-stream.c, which depends on zlib, unless
  3186. building the pdf backend which requires it. (Carl Worth, Tor
  3187. Lillqvist)
  3188. https://bugs.freedesktop.org/show_bug.cgi?id=10202
  3189. • Don't make the ps backend link against zlib anymore, since it
  3190. doesn't require it (Carl Worth).
  3191. • Use "find !" rather than "find -not" for better portability (Thomas
  3192. Klausner).
  3193. https://bugs.freedesktop.org/show_bug.cgi?id=10226
  3194. • Don't use unsupported visibility attribute "hidden" on Solaris
  3195. (Gilles Dauphin, Thomas Klausner).
  3196. https://bugs.freedesktop.org/show_bug.cgi?id=10227
  3197. Optimization
  3198. ------------
  3199. • It was Behdad that suggested we focus strictly on bug fixes now that
  3200. we shipped so many performance improvements in 1.4.0, but it was
  3201. also Behdad that got distracted by the chance to remove a lot of
  3202. mallocs from cairo. Paths, gstates, trapezoids, splines, polygons,
  3203. and gradient color stops will now use small, stack-allocated buffers
  3204. in the most common cases rather than calling malloc as
  3205. often. (Behdad Esfahbod). And look for more from Mathias Hasselmann
  3206. soon.
  3207. Release 1.4.0 (2007-03-06 Carl Worth <cworth@cworth.org>)
  3208. =========================================================
  3209. The many people[*] who have been working hard on cairo are very
  3210. pleased to announce the long-awaited release of cairo 1.4. This
  3211. release comes 4 months after the last stable update release (1.2.6)
  3212. and 9 months since the initial release of 1.2.0.
  3213. The release notes below are intended to capture the highlights of the
  3214. changes that have occurred from the 1.2 series to the new 1.4.0
  3215. release.
  3216. Performance improvements
  3217. ------------------------
  3218. Within the cairo project, the last 6 months or so has seen an intense
  3219. effort focusing on the performance of cairo itself. That effort has
  3220. paid off considerably, as can be seen in the following highlights of
  3221. some of the performance differences from cairo 1.2.6 to cairo 1.4.0.
  3222. (Note: The performance results reported here were measured on an x86
  3223. laptop. Many of the improvements in 1.4---particular those involving
  3224. text rendering---are even more dramatic on embedded platforms without
  3225. hardware floating-point units. Such devices played an important part
  3226. of many of the optimizations that found their way into cairo over the
  3227. last few months.)
  3228. • Dramatic improvement when drawing objects that are mostly off-screen
  3229. with the image backend (with the xlib backend this case is still
  3230. slow due to an X server bug):
  3231. image-rgba long-lines-uncropped-100 479.64 -> 4.98: 96.24x speedup
  3232. ███████████████████████████████████████████████▋
  3233. • Dramatic improvement when copying a small fraction of an image
  3234. surface to an xlib surface:
  3235. xlib-rgba subimage_copy-512 3.93 -> 0.07: 54.52x speedup
  3236. ██████████████████████████▊
  3237. • Dramatic improvement to tessellation speed for complex objects:
  3238. image-rgb tessellate-256-100 874.16 -> 34.79: 25.13x speedup
  3239. ████████████▏
  3240. xlib-rgba zrusin_another_fill-415 148.40 -> 13.85: 10.72x speedup
  3241. ████▉
  3242. xlib-rgb world_map-800 680.20 -> 345.54: 1.97x speedup
  3243. • Dramatic improvement to the speed of stroking rectilinear shapes,
  3244. (such as the outline of a rectangle or "box"):
  3245. image-rgb box-outline-stroke-100 0.18 -> 0.01: 24.22x speedup
  3246. ███████████▋
  3247. xlib-rgb box-outline-stroke-100 0.46 -> 0.06: 8.05x speedup
  3248. ███▌
  3249. • Dramatic improvements to text rendering speeds:
  3250. xlib-rgba text_image_rgba_over-256 63.12 -> 9.61: 6.57x speedup
  3251. ██▊
  3252. • 3x improvements to floating-point to fixed-point conversion speeds:
  3253. image-rgba pattern_create_radial-16 9.29 -> 3.44: 2.70x speedup
  3254. • 2x improvements to linear gradient computation:
  3255. image-rgb paint_linear_rgb_source-512 26.22 -> 11.61: 2.26x speedup
  3256. • 2x improvement to a case common in PDF rendering:
  3257. image-rgb unaligned_clip-100 0.10 -> 0.06: 1.81x speedup
  3258. • 1.3x improvement to rectangle filling speed (note: this improvement
  3259. is new since 1.3.16---previously this test case was a 1.3x slowdown
  3260. compared to 1.2.6):
  3261. image-rgba rectangles-512 6.19 -> 4.37: 1.42x speedup
  3262. xlib-rgba rectangles-512 7.48 -> 5.58: 1.34x speedup
  3263. NOTE: In spite of our best efforts, there are some measurable
  3264. performance regressions in 1.4 compared to 1.2. It appears that the
  3265. primary problem is the increased overhead of the new tessellator when
  3266. drawing many, very simple shapes. The following test cases capture
  3267. some of that slowdown:
  3268. image-rgba mosaic_tessellate_lines-800 11.03 -> 14.29: 1.30x slowdown
  3269. image-rgba box-outline-fill-100 0.01 -> 0.01: 1.26x slowdown
  3270. image-rgba fill_solid_rgb_over-64 0.20 -> 0.22: 1.12x slowdown
  3271. image-rgba fill_image_rgba_over-64 0.23 -> 0.25: 1.10x slowdown
  3272. xlib-rgb paint_image_rgba_source-256 3.24 -> 3.47: 1.07x slowdown
  3273. We did put some special effort into eliminating this slowdown for the
  3274. very common case of drawing axis-aligned rectangles with an identity
  3275. matrix (see the box-outline-stroke and rectangles speedup numbers
  3276. above). Eliminating the rest of this slowdown will be a worthwhile
  3277. project going forward.
  3278. Also note that the "box-outline-fill" case is a slowdown while
  3279. "box-outline-stroke" is a (huge) speedup. These two test cases
  3280. resulted from the fact that some GTK+ theme authors were filling
  3281. between two rectangles to avoid slow performance from the more natural
  3282. means of achieving the same shape by stroking a single rectangle. With
  3283. 1.4 that workaround should definitely be eliminated as it will now
  3284. cause things to perform more slowly.
  3285. Greatly improved PDF output
  3286. ---------------------------
  3287. We are very happy to be able to announce that cairo-generated PDF
  3288. output will now have text that can be selected, cut-and-pasted, and
  3289. searched with most capable PDF viewer applications. This is something
  3290. that was not ever possible with cairo 1.2.
  3291. Also, the PDF output now has much more compact encoding of text than
  3292. before. Cairo is now much more careful to not embed multiple copies of
  3293. the same font at different sizes. It also compresses text and font
  3294. streams within the PDF output.
  3295. API additions
  3296. -------------
  3297. There are several new functions available in 1.4 that were not
  3298. available in 1.2. Curiously, almost all of the new functions simply
  3299. allow the user to query state that has been set in cairo (many new
  3300. "get" functions) rather than providing any fundamentally new
  3301. operations. The new functionality is:
  3302. • Getting information about the current clip region
  3303. cairo_clip_extents
  3304. cairo_copy_clip_rectangle_list
  3305. cairo_rectangle_list_destroy
  3306. • Getting information about the current dash setting
  3307. cairo_get_dash_count
  3308. cairo_get_dash
  3309. • Getting information from a pattern
  3310. cairo_pattern_get_rgba
  3311. cairo_pattern_get_surface
  3312. cairo_pattern_get_color_stop_rgba
  3313. cairo_pattern_get_color_stop_count
  3314. cairo_pattern_get_linear_points
  3315. cairo_pattern_get_radial_circles
  3316. • Getting the current scaled font
  3317. cairo_get_scaled_font
  3318. • Getting reference counts
  3319. cairo_get_reference_count
  3320. cairo_surface_get_reference_count
  3321. cairo_pattern_get_reference_count
  3322. cairo_font_face_get_reference_count
  3323. cairo_scaled_font_get_reference_count
  3324. • Setting/getting user data on objects
  3325. cairo_set_user_data
  3326. cairo_get_user_data
  3327. cairo_pattern_set_user_data
  3328. cairo_pattern_get_user_data
  3329. cairo_scaled_font_set_user_data
  3330. cairo_scaled_font_get_user_data
  3331. • New cairo-win32 functions:
  3332. cairo_win32_surface_create_with_ddb
  3333. cairo_win32_surface_get_image
  3334. cairo_win32_scaled_font_get_logical_to_device
  3335. cairo_win32_scaled_font_get_device_to_logical
  3336. API deprecation
  3337. ---------------
  3338. The CAIRO_FORMAT_RGB16_565 enum value has been deprecated. It never
  3339. worked as a format value for cairo_image_surface_create, and it wasn't
  3340. necessary for supporting 16-bit 565 X server visuals.
  3341. A sampling of bug fixes in cairo 1.4
  3342. ------------------------------------
  3343. • Fixed radial gradients
  3344. • Fixed dashing (degenerate and "leaky" cases)
  3345. • Fixed transformed images in PDF/PS output (eliminate bogus repeating)
  3346. • Eliminate errors from CAIRO_EXTEND_REFLECT and CAIRO_EXTEND_PAD
  3347. • cairo_show_page no longer needed for single-page output
  3348. • SVG: Fix bug preventing text from appearing in many viewers
  3349. • cairo-ft: Return correct metrics when hinting is off
  3350. • Eliminate crash in cairo_create_similar if nil surface is returned
  3351. • Eliminate crash after INVALID_RESTORE error
  3352. • Fix many bugs related to multi-threaded use and locking
  3353. • Fix for glyph spacing 32 times larger than desired (cairo-win32)
  3354. • Fixed several problems in cairo-atsui (assertion failures)
  3355. • Fix PDF output to avoid problems when printing from Acrobat Reader
  3356. • Fix segfault on Mac OS X (measuring a zero-length string)
  3357. • Fix text extents to not include the size of non-inked characters
  3358. • Fix for glyph cache race condition in glitz backend (Jinghua Luo)
  3359. • Fix make check to work on OPD platforms (IA64 or PPC64)
  3360. • Fix compilation problems of cairo "wideint" code on some platforms
  3361. • Many, many others...
  3362. Experimental backends (quartz, XCB, OS/2, BeOS, directfb)
  3363. ---------------------------------------------------------
  3364. None of cairo's experimental backends are graduating to "supported"
  3365. status with 1.4.0, but two of them in particular (quartz and xcb), are
  3366. very close.
  3367. The quartz baceknd has been entirely rewritten and is now much more
  3368. efficient. The XCB backend has been updated to track the latest XCB
  3369. API (which recently had a 1.0 release).
  3370. We hope to see these backends become supported in a future release,
  3371. (once they are passing all the tests in cairo's test suite).
  3372. The experimental OS/2 backend is new in cairo 1.4 compared to cairo
  3373. 1.2.
  3374. Documentation improvements
  3375. --------------------------
  3376. We have added documentation for several functions and types that
  3377. were previously undocumented, and improved documentation on other
  3378. ones. As of this release, there remain only two undocumented
  3379. symbols: cairo_filter_t and cairo_operator_t.
  3380. [*]Thanks to everyone
  3381. ---------------------
  3382. I've accounted for 41 distinct people with attributed code added to
  3383. cairo between 1.2.6 and 1.4.0, (their names are below). That's an
  3384. impressive number, but there are certainly dozens more that
  3385. contributed with testing, suggestions, clarifying questions, and
  3386. encouragement. I'm grateful for the friendships that have developed as
  3387. we have worked on cairo together. Thanks to everyone for making this
  3388. all so much fun!
  3389. Adrian Johnson, Alfred Peng, Alp Toker, Behdad Esfahbod,
  3390. Benjamin Otte, Brian Ewins, Carl Worth, Christian Biesinger,
  3391. Christopher (Monty) Montgomery, Daniel Amelang, Dan Williams,
  3392. Dave Yeo, David Turner, Emmanuel Pacaud, Eugeniy Meshcheryakov,
  3393. Frederic Crozat, Hans Breuer, Ian Osgood, Jamey Sharp, Jeff Muizelaar,
  3394. Jeff Smith, Jinghua Luo, Jonathan Watt, Joonas Pihlaja, Jorn Baayen,
  3395. Kalle Vahlman, Kjartan Maraas, Kristian Høgsberg, M Joonas Pihlaja,
  3396. Mathias Hasselmann, Mathieu Lacage, Michael Emmel, Nicholas Miell,
  3397. Pavel Roskin, Peter Weilbacher, Robert O'Callahan,
  3398. Soren Sandmann Pedersen, Stuart Parmenter, T Rowley,
  3399. Vladimir Vukicevic
  3400. Snapshot 1.3.16 (2007-03-02 Carl Worth <cworth@cworth.org>)
  3401. ===========================================================
  3402. New API functions
  3403. -----------------
  3404. A few new public functions have been added to the cairo API since the
  3405. 1.3.14 snapshot. These include a function to query the current scaled
  3406. font:
  3407. cairo_get_scaled_font
  3408. New functions to query the reference count of all cairo objects:
  3409. cairo_get_reference_count
  3410. cairo_surface_get_reference_count
  3411. cairo_pattern_get_reference_count
  3412. cairo_font_face_get_reference_count
  3413. cairo_scaled_font_get_reference_count
  3414. And new functions to allow the use of user_data with any cairo object,
  3415. (previously these were only available on cairo_surface_t and
  3416. cairo_font_face_t objects):
  3417. cairo_set_user_data
  3418. cairo_get_user_data
  3419. cairo_pattern_set_user_data
  3420. cairo_pattern_get_user_data
  3421. cairo_scaled_font_set_user_data
  3422. cairo_scaled_font_get_user_data
  3423. Usability improvement for PDF/PS/SVG generation
  3424. -----------------------------------------------
  3425. In previous versions of cairo, generating single-page output with the
  3426. cairo-pdf, cairo-ps, or cairo-svg backends required a final call to
  3427. cairo_show_page. This was often quite confusing as people would port
  3428. functional code from a non-paginated backend and be totally mystified
  3429. as to why the output was blank until they learned to add this call.
  3430. Now that call to cairo_show_page is optional, (it will be generated
  3431. implicitly if the user does not call it). So cairo_show_page is only
  3432. needed to explicitly separate multiple pages.
  3433. Greatly improved PDF output
  3434. ---------------------------
  3435. We are very happy to be able to announce that cairo-generated PDF
  3436. output will now have text that can be selected, cut-and-paste, and
  3437. searched with most capable PDF viewer applications. This is something
  3438. that was not ever possible with cairo 1.2.
  3439. Also, the PDF output now has much more compact encoding of text than
  3440. before. Cairo is now much more careful to not embed multiple copies of
  3441. the same font at different sizes. It also compresses text and font
  3442. streams within the PDF output.
  3443. Major bug fixes
  3444. ---------------
  3445. • Fixed radial gradients
  3446. The rendering of radial gradients has been greatly improved. In
  3447. the cairo 1.2 series, there was a serious regression affecting
  3448. radial gradients---results would be very incorrect unless one of
  3449. the gradient circles had a radius of 0.0 and a center point within
  3450. the other circle. These bugs have now been fixed.
  3451. • Fixed dashing
  3452. Several fixes have been made to the implementation of dashed
  3453. stroking. Previously, some dashed, stroked rectangles would
  3454. mis-render and fill half of the rectangle with a large triangular
  3455. shape. This bug has now been fixed.
  3456. • Fixed transformed images in PDF/PS output
  3457. In previous versions of cairo, painting with an image-based source
  3458. surface pattern to the PDF or PS backends would cause many kinds
  3459. of incorrect results. One of the most common problems was that an
  3460. image would be repeated many times even when the user had
  3461. explicitly requested no repetition with CAIRO_EXTEND_NONE. These
  3462. bugs have now been fixed.
  3463. • Eliminate errors from CAIRO_EXTEND_REFLECT and CAIRO_EXTEND_PAD
  3464. In the 1.2 version of cairo any use of CAIRO_EXTEND_REFLECT or
  3465. CAIRO_EXTEND_PAD with a surface-based pattern resulted in an
  3466. error, (cairo would stop rendering). This bug has now been
  3467. fixed.
  3468. Now, CAIRO_EXTEND_REFLECT should work properly with surface
  3469. patterns.
  3470. CAIRO_EXTEND_PAD is still not working correctly, but it will now
  3471. simply behave as CAIRO_EXTEND_NONE rather than triggering the
  3472. error.
  3473. New rewrite of quartz backend (still experimental)
  3474. --------------------------------------------------
  3475. Cairo's quartz backend has been entirely rewritten and is now much
  3476. more efficient. This backend is still marked as experimental, not
  3477. supported, but it is now much closer to becoming an officially
  3478. supported backend. (For people that used the experimental nquartz
  3479. backend in previous snapshots, that implementation has now been
  3480. renamed from "nquartz" to "quartz" and has replaced the old quartz
  3481. backend.)
  3482. Documentation improvements
  3483. --------------------------
  3484. We have added documentation for several functions and types that
  3485. were previously undocumented, and improved documentation on other
  3486. ones. As of this release, there remain only two undocumented
  3487. symbols: cairo_filter_t and cairo_operator_t.
  3488. Other bug fixes
  3489. ---------------
  3490. • cairo-svg: Fix bug that was preventing text from appearing in many
  3491. viewers
  3492. • cairo-ft: Return correct metrics when hinting is off
  3493. • Cairo 1.3.14 deadlocks in cairo_scaled_font_glyph_extents or
  3494. _cairo_ft_unscaled_font_lock_face
  3495. https://bugs.freedesktop.org/show_bug.cgi?id=10035
  3496. • cairo crashes in cairo_create_similar if nil surface returned by
  3497. other->backend->create_similar
  3498. https://bugs.freedesktop.org/show_bug.cgi?id=9844
  3499. • evolution crash in _cairo_gstate_backend_to_user()
  3500. https://bugs.freedesktop.org/show_bug.cgi?id=9906
  3501. • Fix memory leak in rectilinear stroking code
  3502. Things not in this release
  3503. --------------------------
  3504. • Solid-surface-pattern cache: This patch had been applied during
  3505. the 1.3.x series, but it was reverted due to some inter-thread
  3506. problems it caused. The patch is interesting since it made a big
  3507. benefit for text rendering performance---so we'll work to bring a
  3508. corrected version of this patch back as soon as possible.
  3509. Snapshot 1.3.14 (2006-02-13 Carl Worth <cworth@cworth.org>)
  3510. ===========================================================
  3511. This is the seventh development snapshot in the 1.3 series, (and there
  3512. likely won't be many more before the 1.4.0 release). It comes just
  3513. over 3 weeks after the 1.3.12 snapshot.
  3514. Since we're so close to the 1.4.0 release, there are not a lot of new
  3515. features nor even a lot of new performance improvements in this
  3516. snapshot. Instead, there are a great number of bug fixes. Some are
  3517. long-standing bugs that we're glad to say goodbye to, and several are
  3518. fixes for regressions that were introduced as part of the optimization
  3519. efforts during the 1.3.x series.
  3520. PDF text selection fixed
  3521. ------------------------
  3522. The inability to correctly select text in cairo-generated PDF has been
  3523. a defect ever since the initial support for the PDF backend in the
  3524. cairo 1.2.0 release. With the 1.3.14 snapshot, in most situations, and
  3525. with most PDF viewer applications, the PDF generated by cairo will
  3526. allow text to be correctly selected for copy-and-paste, (as well as
  3527. searching).
  3528. We're very excited about this new functionality, (and very grateful to
  3529. Adrian Johnson, Behdad Esfahbod, and others that have put a lot of
  3530. work into this lately). Please test this new ability and give feedback
  3531. on the cairo@cairographics.org list.
  3532. Many thread-safety issues fixed
  3533. -------------------------------
  3534. We've discovered that no release of cairo has ever provided safe text
  3535. rendering from a multi-threaded application. With the 1.3.14 snapshot
  3536. a huge number of the bugs in this area have been fixed, and multiple
  3537. application dvelopers have now reported success at writing
  3538. multi-threaded applications with cairo.
  3539. Other fixes
  3540. -----------
  3541. Fixed a bug that was causing glyph spacing to be 32 times larger than
  3542. desired when using cairo-win32.
  3543. Fixed a regression in the rendering of linear gradients that had been
  3544. present since the 1.3.8 snapshot.
  3545. Fixed several problems in cairo-atsui that were leading to assertion
  3546. failures when rendering text.
  3547. Fix corrupted results when rendering a transformed source image
  3548. surface to an xlib surface. This was a regression that had been
  3549. present since the 1.3.2 snapshot.
  3550. Fixed PDF output to prevent problems printing from some versions of
  3551. Acrobat Reader, (a single glyph was being substituted for every
  3552. glyph).
  3553. And many other fixes as well, (see the logs for details).
  3554. Snapshot 1.3.12 (2007-01-20 Carl Worth <cworth@cworth.org>)
  3555. ===========================================================
  3556. The relentless march toward the cairo 1.4 release continues, (even if
  3557. slightly late out of the starting blocks in 2007). This is the sixth
  3558. development snapshot in the 1.3 series. It comes 4 weeks after the
  3559. 1.3.10 snapshot.
  3560. Performance
  3561. -----------
  3562. As usual, this snapshot has some fun performance improvements to show
  3563. off:
  3564. image-rgba long-lines-uncropped-100 470.08 -> 4.95: 94.91x speedup
  3565. ███████████████████████████████████████████████
  3566. image-rgb long-lines-uncropped-100 461.60 -> 4.96: 93.02x speedup
  3567. ██████████████████████████████████████████████
  3568. This 100x improvement, (and yes, that's 100x, not 100%), in the image
  3569. backend occurs when drawing large shapes where only a fraction of the
  3570. shape actually appears in the final result, (the rest being outside
  3571. the bounds of the destination surface). Many applications should see
  3572. speedups here, and the actual amount of speedup depends on the ratio
  3573. of non-visible to visible portions of geometry.
  3574. [Note: There remains a similar performance bug when drawing mostly
  3575. non-visible objects with the xlib backend. This is due to a similar
  3576. bug in the X server itself, but we hope a future cairo snapshot will
  3577. workaround that bug to get a similar speedup with the xlib backend.]
  3578. image-rgba unaligned_clip-100 0.09 -> 0.06: 1.67x speedup
  3579. image-rgb unaligned_clip-100 0.09 -> 0.06: 1.66x speedup
  3580. This speedup is due to further MMX optimization by Soeren Sandmann for
  3581. a case commonly hit when rendering PDF files, (and thanks to Jeff
  3582. Muizelaar for writing code to extract the test case for us).
  3583. There's another MMX optimization in this snapshot (without a fancy
  3584. speedup chart) by Dan Williams which improves compositing performance
  3585. specifically for the OLPC machine.
  3586. Thanks to Adrian Johnson, cairo's PDF output is now much more
  3587. efficient in the way it encodes text output. By reducing redundant
  3588. information and adding compression to text output streams, Adrian
  3589. achieved a ~25x improvement in the efficiency of encoding text in PDF
  3590. files, (was ~45 bytes per glyph and is now ~1.6 bytes per glyph).
  3591. Bug fixes
  3592. ---------
  3593. In addition to those performance improvements, this snapshot includes
  3594. several bug fixes:
  3595. * A huge number of bug fixes for cairo-atsui text rendering, (for mac
  3596. OS X). These bugs affect font selection, glyph positioning, glyph
  3597. rendering, etc. One noteworthy bug fixes is that
  3598. cairo_select_font_face will no longer arbitrarily select bold nor
  3599. italic when not requested, (at least not when using a standard CSS2
  3600. font family name such as "serif", "sans-serif", "monospace", etc.).
  3601. All these fixes are thanks to Brian Ewins who continues to do a
  3602. great job as the new cairo-atsui maintainer.
  3603. * Fix PDF output so that images that are scaled down no longer
  3604. mysteriously repeat (Carl Worth).
  3605. * Fix segfault on Mac OS X dues to attempt to measure extents of a
  3606. zero-length string (Behdad Esfahbod).
  3607. * Fix text extents to not include the size of initial/trailing
  3608. non-inked characters (Behdad Esfahbod).
  3609. API tweaks
  3610. ----------
  3611. Three functions have had API changes to improve consistency. Note that
  3612. the API functions being changed here are all functions that were
  3613. introduced as new functions during these 1.3.x snapshots. As always,
  3614. there will not be any API changes to functions included in a major
  3615. release (1.2.x, 1.4.x, etc.) of cairo.
  3616. The changes are as follows:
  3617. * Rename of cairo_copy_clip_rectangles to cairo_copy_clip_rectangle_list.
  3618. * Change cairo_get_dash_count to return an int rather than accepting a
  3619. pointer to an int for the return value.
  3620. * Change cairo_get_dash to have a void return type rather than
  3621. returning cairo_status_t.
  3622. It's possible there will be one more round of changes to these
  3623. functions, (and perhaps cairo_get_color_stop as well), as we seek to
  3624. establish a unifying convention for returning lists of values.
  3625. Snapshot 1.3.10 (2006-12-23 Carl Worth <cworth@cworth.org>)
  3626. ===========================================================
  3627. Santa Claus is coming just a little bit early this year, and he's
  3628. bringing a shiny new cairo snapshot for all the good little boys and
  3629. girls to play with.
  3630. This is the fifth development snapshot in the 1.3 series. It comes 9
  3631. days after the 1.3.8 snapshot, and still well within our goal of
  3632. having a new snapshot every week, (though don't expect one next
  3633. week---we'll all be too stuffed with sugar plums).
  3634. Speaking of sugar plums, there's a sweet treat waiting in this cairo
  3635. snapshot---greatly improved performance for stroking rectilinear
  3636. shapes, like the ever common rectangle:
  3637. image-rgb box-outline-stroke-100 0.18 -> 0.01: 25.58x speedup
  3638. ████████████████████████▋
  3639. image-rgba box-outline-stroke-100 0.18 -> 0.01: 25.57x speedup
  3640. ████████████████████████▋
  3641. xlib-rgb box-outline-stroke-100 0.49 -> 0.06: 8.67x speedup
  3642. ███████▋
  3643. xlib-rgba box-outline-stroke-100 0.22 -> 0.04: 5.39x speedup
  3644. ████▍
  3645. In past releases of cairo, some people had noticed that using
  3646. cairo_stroke to draw rectilinear shapes could be awfully slow. Many
  3647. people had worked around this by using cairo_fill with a more complex
  3648. path and gotten a 5-15x performance benefit from that.
  3649. If you're one of those people, please rip that workaround out, as now
  3650. the more natural use of cairo_stroke should be 1.2-2x faster than the
  3651. unnatural use of cairo_fill.
  3652. And if you hadn't ever implemented that workaround, then you just
  3653. might get to see your stroked rectangles now get drawn 5-25x faster.
  3654. Beyond that performance fix, there are a handful of bug fixes in this
  3655. snapshot:
  3656. * Fix for glyph cache race condition in glitz backend (Jinghua Luo)
  3657. * Many fixes for ATSUI text rendering (Brian Ewins)
  3658. * Un-break recent optimization-triggered regression in rendering text
  3659. with a translation in the font matrix (Behdad Esfahbod)
  3660. * Fix make check to work on OPD platforms (IA64 or PPC64)
  3661. (Frederic Crozat)
  3662. * Fix a couple of character spacing issues on Windows
  3663. (Jonathan Watt)
  3664. Have fun with that, everybody, and we'll be back for more in the new
  3665. year, (with a plan to add the last of our performance improvements in
  3666. this round, fix a few bad, lingering bugs, and then finish off a nice,
  3667. stable 1.4 release before the end of January).
  3668. -Carl
  3669. Snapshot 1.3.8 (2006-12-14 Carl Worth <cworth@cworth.org>)
  3670. ==========================================================
  3671. This is the fourth development snapshot in the 1.3 series. It comes
  3672. just slightly more than one week after the 1.3.6 snapshot.
  3673. After the bug fixes in 1.3.6, we're back to our original program of
  3674. weekly snapshots, each one faster than the one from the week
  3675. before. Cairo 1.3.8 brings a 2x improvement in the speed of rendering
  3676. linear gradients (thanks to David Turner), and a significant reduction
  3677. in X traffic when rendering text (thanks to Xan Lopez and Behdad
  3678. Esfahbod), making cairo behave very much like Xft does.
  3679. A few other things in the 1.3.8 snapshot worth noting include a more
  3680. forgiving image comparator in the test suite, (using the "perceptual
  3681. diff" metric and GPL implementation by Hector Yee[*]), a bug fix for
  3682. broken linking on x86_64 (thanks to M Joonas Pihlaja) and an even
  3683. better implementation of _cairo_lround, (not faster, but supporting a
  3684. more complete input range), from Daniel Amelang.
  3685. [*] http://pdiff.sourceforge.net/
  3686. Snapshot 1.3.6 (2006-12-06 Carl Worth <cworth@cworth.org>)
  3687. ==========================================================
  3688. This is the third development snapshot in the 1.3 series. It comes two
  3689. weeks after the 1.3.4 snapshot.
  3690. We don't have fancy performance charts this week as the primary
  3691. changes in this snapshot are bug fixes. The performance work continues
  3692. and the next snapshot (planned for one week from today) should include
  3693. several improvements. The bug fixes in this snapshot include:
  3694. * Fix undesirable rounding in glyph positioning (Dan Amelang)
  3695. This bug was noticed by several users, most commonly by seeing
  3696. improper text spacing or scrambled glyphs as drawn by nautilus. For
  3697. example:
  3698. Update to cairo-1.3.4 worsen font rendering
  3699. https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=217819
  3700. * Fix reduced range of valid input coordinates to tessellator
  3701. (M Joonas Pihlaja)
  3702. This bug was causing lots of assertion failures in mozilla as
  3703. mentioned here:
  3704. CAIRO_BO_GUARD_BITS and coordinate space?
  3705. http://lists.freedesktop.org/archives/cairo/2006-December/008743.html
  3706. * Fix several regressions in new tessellator (M Joonas Pihlaja)
  3707. Joonas just had a good eye for detail here. I don't think any
  3708. external cairo users had noticed any of these bugs yet.
  3709. * Fix compilation problems of cairo "wideint" code on some platforms
  3710. (Mathieu Lacage)
  3711. * Fix failed configure due to broken grep (Dan Amelang)
  3712. This bug was reported here:
  3713. AX_C_FLOAT_WORDS_BIGENDIAN doesn't work because grep doesn't
  3714. work with binary file
  3715. https://bugs.freedesktop.org/show_bug.cgi?id=9124
  3716. * Remove the pkg-config minimum version requirement (Behdad Esfahbod)
  3717. Some systems ship with pkg-config 0.15 and there was really no good
  3718. reason for cairo to insist on having version 0.19 before it would
  3719. build.
  3720. There is also one new (but inert) feature in this snapshot. There's a
  3721. new option that can be passed to cairo's configure script:
  3722. --disable-some-floating-point
  3723. Disable certain code paths that rely heavily on double precision
  3724. floating-point calculation. This option can improve
  3725. performance on systems without a double precision floating-point
  3726. unit, but might degrade performance on those that do.
  3727. As of this snapshot, this option does not make any change to cairo,
  3728. but it is possible that future versions of cairo will respect this
  3729. option and change the implementation of various functions as
  3730. appropriate.
  3731. Snapshot 1.3.4 (2006-11-22 Carl Worth <cworth@cworth.org>)
  3732. ==========================================================
  3733. This is the second development snapshot in the 1.3 series. It comes
  3734. one week after the 1.3.2 snapshot.
  3735. This snapshot has a couple of significant performance improvements,
  3736. and also adds new support for producing multi-page SVG output, (when
  3737. targeting SVG 1.2)---thanks to Emmanuel Pacaud. The details of the
  3738. performance improvements are as follows:
  3739. 1. The long-awaited "new tessellator".
  3740. The credit for this being an improvement goes to Joonas Pihlaja. He
  3741. took my really slow code and really put it through its paces to get
  3742. the dramatic performance improvement seen below (up to 38x faster
  3743. on realistic cases, and more than 10x faster for the zrusin_another
  3744. test).
  3745. His own writeup of the work he did is quite thorough, but more than
  3746. can be quoted here. Please see his post for the interesting details:
  3747. http://lists.freedesktop.org/archives/cairo/2006-November/008483.html
  3748. (Though note that this snapshot also includes some additional,
  3749. significant improvements that were only sketched out in that
  3750. email---see "Generating fewer trapezoids").
  3751. 2. More floating-point improvements
  3752. Daniel Amelang continues to work the magic he began in the 1.3.2
  3753. snapshot. This time he short-circuits floating-point
  3754. transformations by identity matrices and applies the earlier
  3755. floating-to-fixed-point technique to the problem of rounding.
  3756. The improvements here will primarily benefit text performance, and
  3757. will benefit platforms without hardware floating-point more than
  3758. those that have it, (some text tests show 20% improvement on an x86
  3759. machine and closer to 80% improvement on arm).
  3760. The performance chart comparing 1.3.2 to 1.3.4 really speaks for
  3761. itself, (this is on an x86 laptop). This is quite a lot of progress
  3762. for one week:
  3763. xlib-rgb stroke_similar_rgba_over-256 74.99 1.45% -> 2.03 68.38%: 36.86x speedup
  3764. ███████████████████████████████████▉
  3765. xlib-rgb stroke_similar_rgba_source-256 78.23 1.43% -> 3.30 67.05%: 23.71x speedup
  3766. ██████████████████████▊
  3767. xlib-rgba tessellate-256-100 820.42 0.15% -> 35.06 2.84%: 23.40x speedup
  3768. ██████████████████████▍
  3769. image-rgba tessellate-256-100 819.55 0.32% -> 35.04 3.56%: 23.39x speedup
  3770. ██████████████████████▍
  3771. xlib-rgb stroke_image_rgba_over-256 78.10 1.43% -> 4.33 65.56%: 18.04x speedup
  3772. █████████████████
  3773. xlib-rgb stroke_image_rgba_source-256 80.11 1.63% -> 5.75 63.99%: 13.94x speedup
  3774. █████████████
  3775. xlib-rgba zrusin_another_tessellate-415 89.22 0.35% -> 8.38 5.23%: 10.65x speedup
  3776. █████████▋
  3777. image-rgba zrusin_another_tessellate-415 87.38 0.89% -> 8.37 5.22%: 10.44x speedup
  3778. █████████▍
  3779. image-rgba zrusin_another_fill-415 117.67 1.34% -> 12.88 2.77%: 9.14x speedup
  3780. ████████▏
  3781. xlib-rgba zrusin_another_fill-415 140.52 1.57% -> 15.79 2.88%: 8.90x speedup
  3782. ███████▉
  3783. image-rgba tessellate-64-100 9.68 3.42% -> 1.42 0.60%: 6.82x speedup
  3784. █████▉
  3785. xlib-rgba tessellate-64-100 9.78 4.35% -> 1.45 0.83%: 6.72x speedup
  3786. █████▊
  3787. xlib-rgb stroke_linear_rgba_over-256 46.01 2.44% -> 7.74 54.51%: 5.94x speedup
  3788. █████
  3789. xlib-rgb stroke_linear_rgba_source-256 48.09 2.15% -> 9.14 53.00%: 5.26x speedup
  3790. ████▎
  3791. xlib-rgb stroke_radial_rgba_over-256 50.96 2.34% -> 12.46 47.99%: 4.09x speedup
  3792. ███▏
  3793. xlib-rgb stroke_radial_rgba_source-256 53.06 1.57% -> 13.96 46.57%: 3.80x speedup
  3794. ██▊
  3795. image-rgba paint_similar_rgba_source-256 0.12 1.57% -> 0.08 9.92%: 1.42x speedup
  3796. image-rgba paint_image_rgba_source-256 0.12 2.49% -> 0.08 10.70%: 1.41x speedup
  3797. image-rgba world_map-800 356.28 0.46% -> 275.72 1.15%: 1.29x speedup
  3798. xlib-rgba world_map-800 456.81 0.39% -> 357.95 1.39%: 1.28x speedup
  3799. image-rgb tessellate-16-100 0.09 0.57% -> 0.07 3.43%: 1.23x speedup
  3800. image-rgba tessellate-16-100 0.09 0.06% -> 0.07 2.46%: 1.23x speedup
  3801. image-rgba text_solid_rgb_over-256 5.39 4.01% -> 4.47 0.70%: 1.21x speedup
  3802. image-rgba text_solid_rgba_over-256 5.37 0.82% -> 4.45 0.75%: 1.21x speedup
  3803. image-rgba text_image_rgb_over-64 0.78 0.10% -> 0.65 0.74%: 1.20x speedup
  3804. image-rgba text_image_rgba_over-64 0.78 0.29% -> 0.65 0.68%: 1.19x speedup
  3805. image-rgb text_solid_rgb_over-64 0.76 2.45% -> 0.63 0.81%: 1.19x speedup
  3806. image-rgba text_solid_rgba_over-64 0.76 0.33% -> 0.64 0.66%: 1.19x speedup
  3807. image-rgba text_similar_rgba_over-256 5.99 4.72% -> 5.04 1.09%: 1.19x speedup
  3808. We should point out that there is some potential for slowdown in this
  3809. snapshot. The following are the worst slowdowns reported by the cairo
  3810. performance suite when comparing 1.3.2 to 1.3.4:
  3811. image-rgba subimage_copy-256 0.01 0.87% -> 0.01 3.61%: 1.45x slowdown
  3812. xlib-rgb paint_solid_rgb_over-256 0.31 10.23% -> 0.38 0.33%: 1.26x slowdown
  3813. image-rgba box-outline-fill-100 0.01 0.30% -> 0.01 2.52%: 1.21x slowdown
  3814. image-rgba fill_solid_rgb_over-64 0.20 1.22% -> 0.22 1.59%: 1.12x slowdown
  3815. image-rgb fill_similar_rgb_over-64 0.21 1.04% -> 0.24 1.06%: 1.11x slowdown
  3816. image-rgba fill_image_rgb_over-64 0.21 1.19% -> 0.24 0.72%: 1.11x slowdown
  3817. image-rgba fill_similar_rgb_over-64 0.21 0.18% -> 0.24 0.30%: 1.11x slowdown
  3818. image-rgb fill_solid_rgba_over-64 0.22 1.66% -> 0.24 1.15%: 1.11x slowdown
  3819. image-rgb fill_image_rgb_over-64 0.21 0.14% -> 0.24 0.80%: 1.11x slowdown
  3820. image-rgba fill_image_rgba_over-64 0.22 1.34% -> 0.25 0.20%: 1.11x slowdown
  3821. image-rgba fill_solid_rgba_over-64 0.22 1.48% -> 0.24 0.95%: 1.11x slowdown
  3822. image-rgb fill_similar_rgba_over-64 0.22 1.13% -> 0.25 1.25%: 1.10x slowdown
  3823. The 45% slowdown for subimage_copy is an extreme case. It's unlikely
  3824. to hit many applications unless they often use cairo_rectangle;
  3825. cairo_fill to copy a single pixel at a time. In any case, it shows a
  3826. worst-case impact of the overhead of the new tessellator. The other
  3827. slowdowns (~ 10%) are probably more realistic, and still very
  3828. concerning.
  3829. We will work to ensure that performance regressions like these are not
  3830. present from one major release of cairo to the next, (for example,
  3831. from 1.2 to 1.4).
  3832. But we're putting this 1.3.4 snapshot out there now, even with this
  3833. potential slowdown so that people can experiment with it. If you've
  3834. got complex geometry, we hope you will see some benefit from the new
  3835. tessellator. If you've got primarily simple geometry, we hope things
  3836. won't slowdown too much, but please let us know what slowdown you see,
  3837. if any, so we can calibrate our performance suite against real-world
  3838. impacts.
  3839. Thanks, and have fun with cairo!
  3840. Snapshot 1.3.2 (2006-11-14 Carl Worth <cworth@cworth.org>)
  3841. ==========================================================
  3842. This is the first development snapshot since the 1.2 stable series
  3843. branched off shortly after the 1.2.4 release in August 2006.
  3844. This snapshot includes all the bug fixes from the 1.2.6 release,
  3845. (since they originated here on the 1.3 branch first and were
  3846. cherry-picked over to 1.2). But more importantly, it contains some new
  3847. API in preparation for a future 1.4 release, and most importantly, it
  3848. contains several performance improvements.
  3849. The bug fixes will not be reviewed here, as most of them are already
  3850. described in the 1.2.6 release notes. But details for the new API and
  3851. some performance improvements are included here.
  3852. As with all snapshots, this is experimental code, and the new API
  3853. added here is still experimental and is not guaranteed to appear
  3854. unchanged in any future release of cairo.
  3855. API additions
  3856. -------------
  3857. Several new API additions are available in this release. There is a
  3858. common theme among all the additions in that they allow cairo to
  3859. advertise information about its state that it was refusing to
  3860. volunteer earlier. So this isn't groundbreaking new functionality, but
  3861. it is essential for easily achieving several tasks.
  3862. The new functions can be divided into three categories:
  3863. Getting information about the current clip region
  3864. -------------------------------------------------
  3865. cairo_clip_extents
  3866. cairo_copy_clip_rectangles
  3867. cairo_rectangle_list_destroy
  3868. Getting information about the current dash setting
  3869. --------------------------------------------------
  3870. cairo_get_dash_count
  3871. cairo_get_dash
  3872. Getting information from a pattern
  3873. ----------------------------------
  3874. cairo_pattern_get_rgba
  3875. cairo_pattern_get_surface
  3876. cairo_pattern_get_color_stop_rgba
  3877. cairo_pattern_get_color_stop_count
  3878. cairo_pattern_get_linear_points
  3879. cairo_pattern_get_radial_circles
  3880. In each of these areas, we have new API for providing a list of
  3881. uniform values from cairo. The closest thing we had to this before was
  3882. cairo_copy_path, (which is rather unique in providing a list of
  3883. non-uniform data).
  3884. The copy_clip_rectangles/rectangle_list_destroy functions follow a
  3885. style similar to that of cairo_copy_path. Meanwhile, the dash and
  3886. pattern color stop functions introduce a new style in which there is a
  3887. single call to return the number of elements available (get_dash_count
  3888. and get_color_stop_count) and then a function to be called once to get
  3889. each element (get_dash and get_color_stop_rgba).
  3890. I'm interested in hearing feedback from users of these new API
  3891. functions, particularly from people writing language bindings. One
  3892. open question is whether the clip "getter" functionality should adopt
  3893. a style similar to that of the new dash and color_stop interfaces.
  3894. API deprecation
  3895. ---------------
  3896. The CAIRO_FORMAT_RGB16_565 enum value has been deprecated. It never
  3897. worked as a format value for cairo_image_surface_create, and it wasn't
  3898. necessary for supporting 16-bit 565 X server visuals.
  3899. XCB backend changes
  3900. -------------------
  3901. The XCB backend has been updated to track the latest XCB API (which
  3902. recently had a 1.0 release).
  3903. New quartz backend
  3904. ------------------
  3905. Vladimir Vukicevic has written a new "native quartz" backend which
  3906. will eventually replace the current "image-surface wrapping" quartz
  3907. backend. For now, both backends are available, (the old one is
  3908. "quartz" and the new one is "nquartz"). But it is anticipated that the
  3909. new backend will replace the old one and take on the "quartz" name
  3910. before this backend is marked as supported in a release of cairo.
  3911. New OS/2 backend
  3912. ----------------
  3913. Doodle and Peter Weilbacher have contributed a new, experimental
  3914. backend for using cairo on OS/2 systems.
  3915. Performance improvements
  3916. ------------------------
  3917. Here are some highlights from cairo's performance suite showing
  3918. improvements from cairo 1.2.6 to cairo 1.3.2. The command used to
  3919. generate this data is:
  3920. ./cairo-perf-diff 1.2.6 HEAD
  3921. available in the perf/ directory of a recent checkout of cairo's
  3922. source, (the cairo-perf-diff script does require a git checkout and
  3923. will not work from a tar file---though ./cairo-perf can still be used
  3924. to generate a single report there and ./cairo-perf-diff-files can be
  3925. used to compare two reports).
  3926. Results are described below both for an x86 laptop (with an old Radeon
  3927. video card, recent X.org build, XAA, free software drivers), as well
  3928. as for a Nokia 770. First the x86 results with comments on each, (all
  3929. times are reported in milliseconds).
  3930. Copying subsets of an image surface to an xlib surface (much faster)
  3931. --------------------------------------------------------------------
  3932. xlib-rgba subimage_copy-512 10.50 -> : 53.97x speedup
  3933. █████████████████████████████████████████████████████
  3934. Thanks to Christopher (Monty) Montgomery for this big performance
  3935. improvement. Any application which has a large image surface and is
  3936. copying small pieces of it at a time to an xlib surface, (imagine an
  3937. application that loads a single image containing all the "sprites" for
  3938. that application), will benefit from this fix. The larger the ratio of
  3939. the image surface to the portion being copied, the larger the benefit.
  3940. Floating-point conversion (3x faster)
  3941. -------------------------------------
  3942. xlib-rgba pattern_create_radial-16 27.75 -> 3.93 : 2.94x speedup
  3943. ██
  3944. image-rgb pattern_create_radial-16 26.06 -> 3.74 : 2.90x speedup
  3945. █▉
  3946. Thanks to Daniel Amelang, (and others who had contributed the idea
  3947. earlier), for this nice improvement in the speed of converting
  3948. floating-point values to fixed-point.
  3949. Text rendering (1.3 - 2x faster)
  3950. ------------------------------
  3951. xlib-rgba text_image_rgba_source-256 319.73 -> 62.40 : 2.13x speedup
  3952. █▏
  3953. image-rgb text_solid_rgba_over-64 2.85 -> 0.88 : 1.35x speedup
  3954. I don't think we've ever set out to improve text performance
  3955. specifically, but we did it a bit anyway. I believe the extra
  3956. improvement in the xlib backend is due to Monty's image copying fix
  3957. above, and the rest is due to the floating-point conversion speedup.
  3958. Thin stroke improvements (1.5x faster)
  3959. ---------------------------------------------
  3960. image-rgb world_map-800 1641.09 -> 414.77 : 1.65x speedup
  3961. xlib-rgba world_map-800 1939.66 -> 529.94 : 1.52x speedup
  3962. The most modest stuff to announce in this release is the 50%
  3963. improvement I made in the world_map case. This is in improvement that
  3964. should help basically anything that is doing strokes with many
  3965. straight line segments, (and the thinner the better, since that makes
  3966. tessellation dominate rasterization). The fixes here are to use a
  3967. custom quadrilateral tessellator rather than the generic tessellator
  3968. for straight line segments and the miter joins.
  3969. Performance results from the Nokia 770
  3970. --------------------------------------
  3971. xlib-rgba subimage_copy-512 55.88 -> 2.04 : 27.34x speedup
  3972. ██████████████████████████▍
  3973. xlib-rgb text_image_rgb_over-256 1487.58 -> 294.43 : 5.05x speedup
  3974. ████
  3975. image-rgb pattern_create_radial-16 187.13 -> 91.86 : 2.04x speedup
  3976. xlib-rgba world_map-800 21261.41 -> 15628.02 : 1.36x speedup
  3977. Here we see that the subimage_copy improvement was only about half as
  3978. large as the corresponding improvement on my laptop, (27x faster
  3979. compared to 54x) and the floating-point conversion fix also was quite
  3980. as significant, (2x compared to 3x). Oddly the improvement to text
  3981. rendering performance was more than twice as good (5x compared to
  3982. 2x). I don't know what the reason for that is, but I don't think it's
  3983. anything anybody should complain about.
  3984. Release 1.2.6 (2006-11-02 Behdad Esfahbod <behdad@behdad.org>)
  3985. ==============================================================
  3986. This is the third bug fix release in the 1.2 series, coming less than
  3987. two months after the 1.2.4 release made on August 18.
  3988. The 1.2.4 release turned out to be a pretty solid one, except for a crasher
  3989. bug when forwarding an X connection where the client and the server have
  3990. varying byte orders, eg. from a PPC to an i686. Other than that, various
  3991. other small bugs have been fixed.
  3992. Various improvements have been made in the testing infrastructure to prevent
  3993. false positives, and to make sure the generated cairo shared object behaves as
  3994. expected in terms of exported symbols and relocations.
  3995. There were a total of 89 changes since 1.2.4. The following list the most
  3996. important ones:
  3997. Common fixes
  3998. ------------
  3999. - Avoid unsigned loop control variable to eliminate infinite,
  4000. memory-scribbling loop. (#7593)
  4001. - Fix cairo_image_surface_create to report INVALID_FORMAT errors.
  4002. Previously the detected error was being lost and a nil surface was
  4003. returned that erroneously reported CAIRO_STATUS_NO_MEMORY.
  4004. - Change _cairo_color_compute_shorts to not rely on any particular
  4005. floating-point epsilon value. (#7497)
  4006. - Fix infinite-join test case (bug #8379)
  4007. - Pass correct surface to create_similar in _cairo_clip_init_deep_copy().
  4008. PS/PDF fixes
  4009. ------------
  4010. - Fix Type 1 embedding in PDF.
  4011. - Correct the value of /LastChar in the PDF Type 1 font dictionary.
  4012. - Improve error checking in TrueType subsetting.
  4013. - Compute right index when looking up left side bearing. (bug #8180)
  4014. - Correct an unsigned to signed conversion problem in truetype subsetting
  4015. bbox.
  4016. - Type1 subsetting: Don't put .notdef in Encoding when there are 256 glyphs.
  4017. - Add cairo version to PS header / PDF document info dictionary.
  4018. - Set CTM before path construction.
  4019. Win32 fixes
  4020. -----------
  4021. - Get correct unhinted outlines on win32. (bug 7603)
  4022. - Make cairo as a win32 static library possible.
  4023. - Use CAIRO_FORMAT_RGB24 for BITSPIXEL==32 surfaces too.
  4024. Build system fixes
  4025. ------------------
  4026. - Define WINVER if it's not defined. (bug 6456)
  4027. - Fix the AMD64 final link by removing SLIM from pixman.
  4028. - Misc win32 compilation fixes.
  4029. - Add Sun Pro C definition of pixman_private.
  4030. - Use pixman_private consistently as prefix not suffix.
  4031. - Added three tests check-plt.sh, check-def.sh, and check-header.sh that check
  4032. that the shared object, the .def file, and the public headers agree about
  4033. the exported symbols.
  4034. - Require pkg-config 0.19. (#8686)
  4035. Release 1.2.4 (2006-08-18 Carl Worth <cworth@cworth.org>)
  4036. =========================================================
  4037. This is the second bug fix release in the 1.2 series, coming less than
  4038. two weeks after the 1.2.2 release made on August 8.
  4039. The big motivation for a quick release was that there were a log of
  4040. build system snags that people ran into with the 1.2.2 release. But,
  4041. by the time we got those all done, we found that we had a bunch of
  4042. fixes for cairo's rendering as well. So there's a lot of goodness in
  4043. here for such a short time period.
  4044. Rendering fixes
  4045. ---------------
  4046. Fix image surfaces to not be clipped when used as a source (Vladimir Vukicevic)
  4047. http://gitweb.freedesktop.org/?p=cairo;a=commit;h=72e25648c4c4bc82ddd938aa4e05887a293f0d8b
  4048. Fix a couple of corner cases in dashing degenerate paths (Jeff Muizelaar)
  4049. http://gitweb.freedesktop.org/?p=cairo;a=commit;h=fbb1758ba8384650157b2bbbc93d161b0c2a05f0
  4050. Fix support for type1 fonts on win32 (Adrian Johnson)
  4051. http://gitweb.freedesktop.org/?p=cairo;a=commit;h=da1019c9138695cb838a54f8b871bbfd0e8996d7
  4052. Fix assertion failure when rotating bitmap fonts (Carl Worth)
  4053. http://gitweb.freedesktop.org/?p=cairo;a=commit;h=0bfa6d4f33b8ddb5dc55bbe419c15df4af856ff9
  4054. Fix assertion failure when calling cairo_text_path with bitmap fonts (Carl Worth)
  4055. http://gitweb.freedesktop.org/?p=cairo;a=commit;h=9878a033531e6b96b5f27e69e10e90dee7440cd9
  4056. Fix mis-handling of cairo_close_path in some situations (Tim Rowley, Carl Worth)
  4057. http://gitweb.freedesktop.org/?p=cairo;a=commit;h=53f74e59faf1af78f2f0741ccf1f23aa5dad4efc
  4058. Respect font_matrix translation in _cairo_gstate_glyph_path (Behdad Esfahbod)
  4059. http://gitweb.freedesktop.org/?p=cairo;a=commit;h=f183b835b111d23e838889178aa8106ec84663b3
  4060. Fix vertical metrics adjustment to work with non-identity shapes (Behdad Esfahbod)
  4061. http://gitweb.freedesktop.org/?p=cairo;a=commit;h=b7bc263842a798d657a95e539e1693372448837f
  4062. [PS] Set correct ImageMatrix in _cairo_ps_surface_emit_bitmap_glyph_data (Behdad Esfahbod)
  4063. http://gitweb.freedesktop.org/?p=cairo;a=commit;h=d47388ad759b0a1a0869655a87d9b5eb6ae2445d
  4064. Build system fixes
  4065. ------------------
  4066. Fix xlib detection to prefer pkg-config to avoid false libXt dependency (Behdad Esfahbod)
  4067. http://gitweb.freedesktop.org/?p=cairo;a=commit;h=0e78e7144353703cbd28aae6a67cd9ca261f1d68
  4068. Fix typos causing win32 build problem with PS,PDF, and SVG backends (Behdad Esfahbod)
  4069. http://gitweb.freedesktop.org/?p=cairo;a=commit;h=aea83b908d020e26732753830bb3056e6702a774
  4070. Fix configure cache to not use stale results (Behdad Esfahbod)
  4071. http://gitweb.freedesktop.org/?p=cairo;a=commit;h=6d0e3260444a2d5b6fb0cb223ac79f1c0e7b3a6e
  4072. Fix to not pass unsupported warning options to the compiler (Jens Granseuer)
  4073. http://gitweb.freedesktop.org/?p=cairo;a=commit;h=97524a8fdb899de1ae4a3e920fb7bda6d76c5571
  4074. Fix to allow env. variables such as png_REQUIRES to override configure detection (Jens Granseuer)
  4075. http://gitweb.freedesktop.org/?p=cairo;a=commit;h=abd16e47d6331bd3811c908e524b4dcb6bd23bf0
  4076. Fix test suite to not use an old system cairo when converting svg2png (Behdad Esfahbod)
  4077. http://gitweb.freedesktop.org/?p=cairo;a=commit;h=6122cc85c8f71b1ba2df3ab86907768edebe1781
  4078. Fix test suite to not require signal.h to be present (Behdad Esfahbod)
  4079. http://gitweb.freedesktop.org/?p=cairo;a=commit;h=6f8cf53b1e1ccdbe1ab6a275656b19c6e5120e40
  4080. Code cleanups
  4081. -------------
  4082. Many useful warnings cleanups from sparse, valgrind, and careful eyes
  4083. (Kjartan Maraas, Pavel Roskin)
  4084. Release 1.2.2 (2006-08-08 Carl Worth <cworth@cworth.org>)
  4085. =========================================================
  4086. This is the first bug fix release in the 1.2 series since the original
  4087. 1.2.0 release made six weeks ago.
  4088. There were some very serious bugs in the 1.2.0 release, (see below),
  4089. so everybody is encouraged to upgrade from 1.2.0 to 1.2.2. The 1.2.2
  4090. release maintains source and binary compatibility with 1.2.0 and does
  4091. not make any API additions.
  4092. Fix crashes with BGR X servers
  4093. ------------------------------
  4094. With cairo 1.2.0 many people reported problems with all cairo-using
  4095. programs, (including all GTK+ programs with GTK+ >= 2.8) immediately
  4096. crashing with a complaint about an unsupported image format. This bug
  4097. affected X servers that do not provide the Render extension and that
  4098. provide a visual with BGR rather than RGB channel order.
  4099. report: https://bugs.freedesktop.org/show_bug.cgi?id=7294
  4100. fix: http://gitweb.freedesktop.org/?p=cairo;a=commit;h=9ae66174e774b57f16ad791452ed44efc2770a59
  4101. Fix the "disappearing text" bug
  4102. -------------------------------
  4103. With cairo 1.2.0 many people reported that text would disappear from
  4104. applications, sometimes reappearing with mouse motion or
  4105. selection. The text would disappear after the first space in a string
  4106. of text. This bug was caused by an underlying bug in (very common) X
  4107. servers, and only affected text rendered without antialiasing, (either
  4108. a bitmap font or a vector font with antialiasing disabled). The bug
  4109. was also exacerbated by a KDE migration bug that caused antialiasing
  4110. to be disabled more than desired.
  4111. report: https://bugs.freedesktop.org/show_bug.cgi?id=7494
  4112. fix: http://gitweb.freedesktop.org/?p=cairo;a=commit;h=456cdb3058f3b416109a9600167cd8842300ae14
  4113. see also:
  4114. Xorg: https://bugs.freedesktop.org/show_bug.cgi?id=7681
  4115. KDE: http://qa.mandriva.com/show_bug.cgi?id=23990
  4116. Fix broken image fallback scaling (aka. "broken printing")
  4117. ----------------------------------------------------------
  4118. The various "print" backends, (pdf, ps, and svg), sometimes fallback
  4119. to using image-based rendering for some operations. In cairo 1.2.0
  4120. these image fallbacks were scaled improperly. Applications using cairo
  4121. can influence the resolution of the image fallbacks with
  4122. cairo_surface_set_fallback_resolution. With the bug, any value other
  4123. than 72.0 would lead to incorrect results, (larger values would lead
  4124. to increasingly shrunken output).
  4125. report: https://bugs.freedesktop.org/show_bug.cgi?id=7533
  4126. fix: http://gitweb.freedesktop.org/?p=cairo;a=commit;h=1feb4291cf7813494355459bb547eec604c54ffb
  4127. Fix inadvertent semantic change of font matrix translation (Behdad Esfahbod)
  4128. ----------------------------------------------------------------------------
  4129. The 1.2.0 release introduced an inadvertent change to how the
  4130. translation components of a font matrix are interpreted. In the 1.0
  4131. series, font matrix translation could be used to offset the glyph
  4132. origin, (though glyph metrics were reported incorrectly in
  4133. 1.0). However in 1.2.0, the translation was applied to the advance
  4134. values between each glyph. The 1.2.0 behavior is fairly useless in
  4135. practice, and it was not intentional to introduce a semantic
  4136. change. With 1.2.2 we return to the 1.0 semantics, with a much better
  4137. implementation that provides correct glyph metrics.
  4138. fix: http://gitweb.freedesktop.org/?p=cairo;a=commit;h=84840e6bba6e72aa88fad7a0ee929e8955ba9051
  4139. Fix create_similar to preserve fallback resolution and font options (Behdad Esfahbod)
  4140. -------------------------------------------------------------------------------------
  4141. There has been a long-standing issue with cairo_surface_create_similar
  4142. such that font options and other settings from the original
  4143. destination surface would not be preserved to the intermediate
  4144. "similar" surface. This could result in incorrect rendering
  4145. (particularly with respect to text hinting/antialiasing) with
  4146. fallbacks, for example.
  4147. report: https://bugs.freedesktop.org/show_bug.cgi?id=4106
  4148. fixes: http://gitweb.freedesktop.org/?p=cairo;a=commit;h=9fcb3c32c1f16fe6ab913e27eb54d18b7d9a06b0
  4149. http://gitweb.freedesktop.org/?p=cairo;a=commit;h=bdb4e1edadb78a2118ff70b28163f8bd4317f1ec
  4150. xlib: Fix text performance regression from 1.0 to 1.2.0 (Vladimir Vukicevic)
  4151. ----------------------------------------------------------------------------
  4152. Several people noticed that upgrading from cairo 1.0 to cairo 1.2.0
  4153. caused a significant performance regression when using the xlib
  4154. backend. This performance regression was particularly noticeable when
  4155. doing lots of text rendering and when using a high-latency connection
  4156. to the X server, (such as a remote X server over an ssh
  4157. connection). The slowdown was identified and fixed in 1.2.2.
  4158. report: https://bugs.freedesktop.org/show_bug.cgi?id=7514
  4159. fix: http://gitweb.freedesktop.org/?p=cairo;a=commit;h=b7191885c88068dad57d68ced69a752d1162b12c
  4160. PDF: Eliminate dependency on FreeType library dependency (Adrian Johnson)
  4161. -------------------------------------------------------------------------
  4162. The cairo 1.2 series adds a supported pdf backend to cairo. In cairo
  4163. 1.2.0 this backend required the freetype library, which was an
  4164. undesirable dependency on systems such as win32, (cairo is designed to
  4165. always prefer the "native" font system). As of cairo 1.2.2 the
  4166. freetype library is not required to use the pdf backend on the win32
  4167. platform.
  4168. report: https://bugs.freedesktop.org/show_bug.cgi?id=7538
  4169. fix: http://gitweb.freedesktop.org/?p=cairo;a=commit;h=a0989f427be87c60415963dd6822b3c5c3781691
  4170. PDF: Fix broken output on amd64 (Adrian Johnson)
  4171. ------------------------------------------------
  4172. report: http://bugzilla.gnome.org/show_bug.cgi?id=349826
  4173. fix: http://gitweb.freedesktop.org/?p=cairo;a=commit;h=f4b12e497b7ac282b2f6831b8fb68deebc412e60
  4174. PS: Fix broken output for truetype fonts > 64k (Adrian Johnson)
  4175. ---------------------------------------------------------------
  4176. fix: http://gitweb.freedesktop.org/?p=cairo;a=commit;h=067d97eb1793a6b0d0dddfbd0b54117844511a94
  4177. PDF: Fix so that dashing doesn't get stuck on (Kent Worsnop)
  4178. ------------------------------------------------------------
  4179. Kent notices that with the PDF backend in cairo 1.2.0 as soon as a
  4180. stroke was performed with dashing, all subsequent strokes would also
  4181. be dashed. There was no way to turn dashing off again.
  4182. fix: http://gitweb.freedesktop.org/?p=cairo;a=commit;h=778c4730a86296bf0a71080cf7008d7291792256
  4183. Fix memory leaks in failure paths in gradient creation (Alfred Peng)
  4184. --------------------------------------------------------------------
  4185. fix: http://gitweb.freedesktop.org/?p=cairo;a=commit;h=db06681b487873788b51a6766894fc619eb8d8f2
  4186. Fix memory leak in _cairo_surface_show_glyphs (Chris Wilson)
  4187. ------------------------------------------------------------
  4188. report: https://bugs.freedesktop.org/show_bug.cgi?id=7766
  4189. fix: http://gitweb.freedesktop.org/?p=cairo;a=commit;h=e2fddcccb43d06486d3680a19cfdd5a54963fcbd
  4190. Solaris: Add definition of cairo_private for some Sun compilers (Alfred Peng)
  4191. -----------------------------------------------------------------------------
  4192. report: https://bugzilla.mozilla.org/show_bug.cgi?id=341874
  4193. fix: http://gitweb.freedesktop.org/?p=cairo;a=commit;h=04757a3aa8deeff3265719ebe01b021638990ec6
  4194. Solaris: Change version number of Sun's Xorg server with buggy repeat (Brian Cameron)
  4195. -------------------------------------------------------------------------------------
  4196. report: https://bugs.freedesktop.org/show_bug.cgi?id=7483
  4197. fix: http://gitweb.freedesktop.org/?p=cairo;a=commit;h=e0ad1aa995bcec4246c0b8ab0d5a5a79871ce235
  4198. Various memory leak fixes
  4199. -------------------------
  4200. Fix memory leak in _cairo_surface_show_glyphs (bug 7766)
  4201. Fix file handle leak in failure path (bug 7616)
  4202. Fix some memory leaks in the test cases.
  4203. Fix some memory leaks in font subsetting code used in print backends.
  4204. Documentation improvements (Behdad Esfahbod)
  4205. --------------------------------------------
  4206. Added new documentation for several functions (cairo_show_page,
  4207. cairo_copy_page, cairo_in_stroke, cairo_in_fill).
  4208. Fixed some syntax errors that were preventing some existing
  4209. documentation from being published.
  4210. Fixed several minor typographical errors.
  4211. Added an index for new symbols in 1.2.
  4212. Release 1.2.0 (2006-06-27 Carl Worth <cworth@cworth.org>)
  4213. =========================================================
  4214. This is the culmination of the work that has gone on within the 1.1
  4215. branch of cairo.
  4216. There has been one API addition since the cairo 1.1.10 snapshot:
  4217. cairo_xlib_surface_get_width
  4218. cairo_xlib_surface_get_height
  4219. There's also a new feature without any API change:
  4220. Dots can now be drawn by using CAIRO_LINE_CAP_ROUND with
  4221. degenerate sub-paths, (cairo_move_to() followed by either
  4222. cairo_close_path() or a cairo_line_to() to the same location).
  4223. And at least the following bugs have been fixed:
  4224. 6759 fontconfig option AntiAlias doesn't work in cairo 1.1.2
  4225. 6955 Some characters aren't displayed when using xlib (cache u...
  4226. 7268 positive device_offset values don't work as source
  4227. * PDF emit_glyph function needs to support bitmapped glyphs
  4228. * PS emit_glyph function needs to support bitmapped glyphs
  4229. * SVG emit_glyph function needs to support bitmapped glyphs
  4230. * PDF: minefield page one is falling back unnecessarily
  4231. * PS/PDF: Fix broken placement for vertical glyphs
  4232. * PS: Fix to not draw BUTT-capped zero-length dash segments
  4233. * Do device offset before float->fixed conversion
  4234. http://bugzilla.gnome.org/show_bug.cgi?id=332266
  4235. * PS: Fix source surfaces with transformations
  4236. * PS: Fix to not draw BUTT-capped degnerate sub-paths
  4237. * PS: Don't walk off end of array when printing "~>"
  4238. * Fix some memory leaks in the test suite rig
  4239. * SVG: Fix memory leak when using cairo_mask
  4240. * Fix EXTEND_REFLECT and EXTEND_PAD to not crash (though these are
  4241. still not yet fully implemented for surface patterns).
  4242. This has been a tremendous effort by everyone, and I'm proud to have
  4243. been a part of it. Congratulations to all contributors to cairo!
  4244. Snapshot 1.1.10 (2006-06-16 Carl Worth <cworth@cworth.org>)
  4245. ===========================================================
  4246. This is the fifth in a series of snapshots working toward the 1.2
  4247. release of cairo.
  4248. The primary motivation for this snapshot is to fix a long-standing bug
  4249. that had long been silent, but as of the 1.1.8 snapshot started
  4250. causing crashes when run against 16-bit depth X servers, (often Xvnc
  4251. or Xnest). The fix for this adds a new CAIRO_FORMAT_RGB16_565 to the
  4252. API.
  4253. This snapshot also includes a rewrite of cairo's SVG backend to
  4254. eliminate the dependency on libxml2. With this in place, cairo 1.2
  4255. will not depend on any libraries that cairo 1.0 did not.
  4256. As usual, there are also a few fixes for minor bugs.
  4257. Snapshot 1.1.8 (2006-06-14 Carl Worth <cworth@cworth.org>)
  4258. ==========================================================
  4259. This is the fourth in a series of snapshots working toward the 1.2
  4260. release of cairo. At this point, all major features of the 1.2 release
  4261. are in place, leaving just a few bug fixes left.
  4262. In particular, there well be no additional API changes between this
  4263. 1.1.8 snapshot and the 1.2 release.
  4264. The announcement for 1.1.6 mentioned several API changes being
  4265. considered. Only one of these changes was actually implemented
  4266. (set_dpi -> fallback_resolution). This change does introduce one
  4267. source-level incompatibility with respect to previous 1.1.x snapshots,
  4268. so see below for details.
  4269. Here is an abbreviated summary of changes since the 1.1.6 snapshot:
  4270. ** API Change **
  4271. ----------------
  4272. According to the plan mentioned in the 1.1.6 notes, one source-level
  4273. incompatible change has been implemented. The following three
  4274. functions have been removed from cairo's API:
  4275. cairo_pdf_surface_set_dpi
  4276. cairo_ps_surface_set_dpi
  4277. cairo_svg_surface_set_dpi
  4278. and in their place the following function has been added:
  4279. cairo_surface_set_fallback_resolution
  4280. The signature and semantics of the function remains the same, so it is
  4281. a simple matter of changing the name of the function when calling
  4282. it. As a transition mechanism, this snapshot will (on many systems)
  4283. build to include the old symbols so that code previously compiled will
  4284. still run. However, all source code using the old names must be
  4285. updated before it will compile. And the upcoming 1.2 release is not
  4286. anticipated to include the old symbols.
  4287. Finally, it should be pointed out that the old symbols never existed
  4288. in the supported API of any stable release of cairo. (In the stable
  4289. 1.0 releases the PDF, PS, and SVG backends were advertised as
  4290. experimental and unstable.)
  4291. And, as always, cairo continues to maintain source and binary
  4292. compatibility between major releases. So applications compiled against
  4293. supported backends in a stable release of cairo (1.0.4 say) will
  4294. continue to compile and run without modification against new major
  4295. releases (1.2.0 say) without modification.
  4296. API additions
  4297. -------------
  4298. The following new functions have been added to cairo's API:
  4299. cairo_surface_get_content
  4300. cairo_debug_reset_static_data
  4301. cairo_image_surface_get_data
  4302. cairo_image_surface_get_format
  4303. cairo_image_surface_get_stride
  4304. cairo_win32_font_face_create_for_hfont
  4305. New, backend-specific pkg-config files
  4306. --------------------------------------
  4307. In addition to the original cairo.pc file, cairo will also now install
  4308. a pkg-config files for each configured backend, (for example
  4309. cairo-pdf.pc, cairo-svg.pc, cairo-xlib.pc, cairo-win32.pc, etc.) this
  4310. also includes optional font backends (such as cairo-ft.pc) and the
  4311. optional png functionality (cairo-png.pc).
  4312. These new pkg-config files should be very convenient for allowing
  4313. cairo-using code to easily check for the existing of optional
  4314. functionality in cairo without having to write complex rules to grub
  4315. through cairo header files or the compiled library looking for
  4316. symbols.
  4317. Printing backend (PS, PDF, and SVG)
  4318. -----------------------------------
  4319. Improving the quality of the "printing" backends has been a priority
  4320. of the development between cairo 1.1.6 and cairo 1.1.8.
  4321. The big improvement here is in the area of text output. Previously, at
  4322. best, text was output as paths without taking advantage of any font
  4323. support available in the output file format.
  4324. Now, at the minimum text paths will be shared by using type3 fonts
  4325. (for PS and PDF---and similarly, defs for SVG). Also, if possible,
  4326. type3 and truetype fonts will be embedded in PostScript and PDF
  4327. output. There are still some known bugs with this, (for example,
  4328. selecting text in a cairo-generated PDF file with an embedded truetype
  4329. font does not work). So there will be some more changes in this area
  4330. before cairo 1.2, but do try test this feature out as it exists so
  4331. far.
  4332. Many thanks to Kristian Høgsberg for the truetype and type1 font
  4333. embedding.
  4334. win32 backend
  4335. -------------
  4336. Performance improvements by preferring GDI over pixman rendering when possible.
  4337. Fixes for text rendering.
  4338. xlib backend
  4339. ------------
  4340. Fix potentially big performance bug by making xlib's create_similar
  4341. try harder to create a pixmap of a depth matching that of the screen.
  4342. Bug fixes
  4343. ---------
  4344. Among various other fixes, the following bugs listed in bugzilla have
  4345. been fixed:
  4346. Bug 2488: Patch to fix pixman samping location bug (#2488).
  4347. https://bugs.freedesktop.org/show_bug.cgi?id=2488
  4348. Bug 4196: undef MIN an MAX before defining to avoid duplicate definition
  4349. https://bugs.freedesktop.org/show_bug.cgi?id=4196
  4350. Bug 4723: configure.in: Fix m4 quoting when examining pkg-config version
  4351. https://bugs.freedesktop.org/show_bug.cgi?id=4723
  4352. Bug 4882: Flag Sun's X server has having buggy_repeat.
  4353. https://bugs.freedesktop.org/show_bug.cgi?id=4882
  4354. Bug 5306: test/pdf2png: Add missing include of stdio.h
  4355. https://bugs.freedesktop.org/show_bug.cgi?id=5306
  4356. Bug 7075: Fix make clean to remove cairo.def
  4357. https://bugs.freedesktop.org/show_bug.cgi?id=7075
  4358. (Many thanks to Behdad Esfahbod for helping us track down and fix many
  4359. of these.)
  4360. Snapshot 1.1.6 (2006-05-04 Carl Worth <cworth@cworth.org>)
  4361. ==========================================================
  4362. This is the third in a series of snapshots working toward the imminent
  4363. 1.2 release of cairo. For a list of items still needing work on the
  4364. cairo 1.2 roadmap, please see:
  4365. http://cairographics.org/ROADMAP
  4366. As can be seen in that list, there are no longer any API additions
  4367. left on the roadmap. Instead, there is a feature (PDF type 3 fonts) a
  4368. performance optimization (X server gradients) and a list of bug
  4369. fixes. This gives us a fair amount of freedom to cut the 1.2 release
  4370. at almost any point by deciding to defer remaining bug fixes to
  4371. subsequent maintenance releases such as 1.2.2 and 1.2.4.
  4372. Before we will do that, we must first be wiling to commit to all the
  4373. new API additions. As a heads-up, there are a couple of potential API
  4374. changes being considered. (Note that these are changes to new API
  4375. introduced during 1.1 so these will not introduce API
  4376. incompatibilities compared to the stable 1.0 series). The changes
  4377. being considered are:
  4378. cairo_get_group_target: may acquire x and y offset return
  4379. parameters. May also be eliminated in favor of
  4380. cairo_get_target assuming its role
  4381. cairo_pdf_surface_set_dpi:
  4382. cairo_ps_surface_set_dpi:
  4383. cairo_svg_surface_set_dpi: These functions may be removed in favor
  4384. of a new cairo_surface_set_fallback_resolution
  4385. Additionally there is the possibility of a slight change in the
  4386. semantics of cairo_set_line_width. We believe the current behavior of the sequence:
  4387. cairo_set_line_width; ... change CTM ...; cairo_stroke;
  4388. is buggy. It is currently behaving the same as:
  4389. ... change CTM ...; cairo_set_line_width; cairo_stroke;
  4390. We are considering fixing this bug before 1.2 with the hope that
  4391. nobody is already relying on the buggy behavior described here. Do
  4392. shout if you suspect you might be in that position.
  4393. The items included in this snapshot (since the 1.1.4 snapshot) are
  4394. described below.
  4395. API additions
  4396. -------------
  4397. The long-awaited group-rendering support is now available with the
  4398. following function calls:
  4399. cairo_push_group
  4400. cairo_push_group_with_content
  4401. cairo_pop_group
  4402. cairo_pop_group_to_source
  4403. cairo_get_group_target
  4404. This API provides a much more convenient mechanism for doing rendering
  4405. to an intermediate surface without the need to manually create a
  4406. temporary cairo_surface_t and a temporary cairo_t and clean them up
  4407. afterwards.
  4408. Add the following missing get function to complement
  4409. cairo_surface_set_device_offset:
  4410. cairo_surface_get_device_offset
  4411. PDF backend (API addition)
  4412. --------------------------
  4413. The PDF backend now provides for per-page size changes, (similar to
  4414. what the PostScript backend got in the 1.1.4 snapshot). The new API
  4415. is:
  4416. cairo_pdf_surface_set_size
  4417. Xlib backend (API additions)
  4418. ----------------------------
  4419. The following functions have been added to allow the extraction of
  4420. Xlib surface:
  4421. cairo_xlib_surface_get_display
  4422. cairo_xlib_surface_get_drawable
  4423. cairo_xlib_surface_get_screen
  4424. cairo_xlib_surface_get_visual
  4425. cairo_xlib_surface_get_depth
  4426. XCB backend (experimental)
  4427. --------------------------
  4428. Update backend so that it now compiles with the recent XCB 0.9 release.
  4429. Bug fixes and memory leak cleanup
  4430. ---------------------------------
  4431. Various little things, nothing too significant though.
  4432. Snapshot 1.1.4 (2006-05-03 Carl Worth <cworth@cworth.org>)
  4433. ==========================================================
  4434. This is the second in a series of snapshots working toward the
  4435. upcoming 1.2 release of cairo. For a list of items still needing work
  4436. on the cairo 1.2 roadmap, please see:
  4437. http://cairographics.org/ROADMAP
  4438. The items included in this snapshot (since the 1.1.2 snapshot) are
  4439. described below.
  4440. PostScript backend: new printing-oriented API
  4441. ---------------------------------------------
  4442. We anticipate that with cairo 1.2, toolkits will begin to use cairo
  4443. for printing on systems that use PostScript as the spool format. To
  4444. support this use case, we have added 4 new function calls that are
  4445. specific to the PostScript backend:
  4446. cairo_ps_surface_set_size
  4447. cairo_ps_surface_dsc_comment
  4448. cairo_ps_surface_dsc_begin_setup
  4449. cairo_ps_surface_dsc_begin_page_setup
  4450. These functions allow variation of the page size/orientation from one
  4451. page to the next in the PostScript output. They also allow the toolkit
  4452. to provide per-document and per-page printer control options in a
  4453. device-independent way, (for example, by using PPD options and
  4454. emitting them as DSC comments into the PostScript output). This should
  4455. allow toolkits to provide very fine-grained control of many options
  4456. available in printers, (media size, media type, tray selection, etc.).
  4457. SVG backend: builds by default, version control
  4458. -----------------------------------------------
  4459. The SVG backend continues to see major improvements. It is expected
  4460. that the SVG backend will be a supported backend in the 1.2
  4461. release. This backend will now be built by default if its dependencies
  4462. (freetype and libxml2) are met.
  4463. Additionally, the SVG backend now has flexibility with regard to what
  4464. version of SVG it targets. It will target SVG 1.1 by default, which
  4465. will require image fallbacks for some of the "fancier" cairo
  4466. compositing operators. Or with the following new function calls:
  4467. cairo_svg_surface_restrict_to_version
  4468. cairo_svg_get_versions
  4469. cairo_svg_version_to_string
  4470. it can be made to target SVG 1.2 in which there is native support for
  4471. these compositing operators.
  4472. Bug fixes
  4473. ---------
  4474. At least the following bugs have been fixed since the 1.1.2 snapshot:
  4475. crash at XRenderAddGlyphs
  4476. https://bugs.freedesktop.org/show_bug.cgi?id=4705
  4477. Can't build cairo-1.1.2 on opensolaris due to " void function cannot return value"
  4478. https://bugs.freedesktop.org/show_bug.cgi?id=6792
  4479. Missing out-of-memory check at gfx/cairo/cairo/src/cairo-atsui-font.c:185
  4480. https://bugzilla.mozilla.org/show_bug.cgi?id=336129
  4481. A couple of memory leaks.
  4482. Snapshot 1.1.2 (2006-04-25 Carl Worth <cworth@cworth.org>)
  4483. ==========================================================
  4484. This is the first in a series of snapshots working toward the upcoming
  4485. 1.2 release of cairo. (Subsequent snapshot will use successive even
  4486. numbers for the third digit, 1.1.4, 1.1.6, etc.) This snapshot is
  4487. backwards-compatible with the 1.0 series---it makes a few API
  4488. additions but does not remove any API.
  4489. PostScript and PDF backends are no longer "experimental"
  4490. --------------------------------------------------------
  4491. The major theme of the 1.2 release is improved PostScript and PDF
  4492. backends for cairo. Unlike the 1.0 series, in the 1.2 series these
  4493. backends will not be marked as experimental and will be enabled by
  4494. default. We encourage people to test this snapshot and the PS/PDF
  4495. backends in particular as much as possible.
  4496. The PostScript and PDF output is not yet ideal.
  4497. * One major problem with the PostScript output is that image
  4498. fallbacks are used more often than strictly necessary, and the
  4499. image fallbacks are at a lower resolution than desired, (the
  4500. cairo_ps_surface_set_dpi call is ignored).
  4501. * The major drawback of the current PDF backend implementation is
  4502. its text support. Every glyph is represented by a filled path in
  4503. the PDF file. The causes file sizes to be much larger and
  4504. rendering to be much slower than desired.
  4505. It is anticipated that both of these shortcomings will see some
  4506. improvements before the final 1.2 release.
  4507. In spite of those shortcomings, we hope that the PS and PDF backends
  4508. will yield faithful results for pretty much any cairo operations you
  4509. can throw at them. Please let us know if you are getting obviously
  4510. "different" results from the PS/PDF backends than from the image or
  4511. xlib backends.
  4512. Other new experimental backends
  4513. -------------------------------
  4514. This snapshot includes three new backends that did not exist in the
  4515. 1.0 series:
  4516. * beos backend
  4517. * directfb backend
  4518. * svg backend
  4519. These are all currently marked "experimental" and are disabled by
  4520. default. But the SVG backend in particular has seen a lot of recent
  4521. development and is very close to passing the entire cairo test
  4522. suite. It is possible that this backend will become a fully supported
  4523. backend by the time of the cairo 1.2 release.
  4524. Public API additions
  4525. --------------------
  4526. There have been a few new API functions added to cairo, including:
  4527. New get_type functions for querying sub-types of object:
  4528. cairo_surface_get_type
  4529. cairo_pattern_get_type
  4530. cairo_font_face_get_type
  4531. cairo_scaled_font_get_type
  4532. More convenience in working with cairo_scaled_font_t with new getter
  4533. functions:
  4534. cairo_scaled_font_get_font_face
  4535. cairo_scaled_font_get_font_matrix
  4536. cairo_scaled_font_get_ctm
  4537. cairo_scaled_font_get_font_options
  4538. As well as a convenience function for setting a scaled font into a
  4539. cairo context:
  4540. cairo_set_scaled_font
  4541. and a function to allow text extents to be queried directly from a
  4542. scaled font, (without requiring a cairo_surface_t or a cairo_t):
  4543. cairo_scaled_font_text_extents
  4544. These new scaled font functions were motivated by the needs of the
  4545. pango library.
  4546. Finally, a new path-construction function was added which clears the
  4547. current point in preparation for a new sub path. This makes cairo_arc
  4548. easier to use in some situations:
  4549. cairo_new_sub_path
  4550. Before the 1.2 release is final we do still plan a few more API
  4551. additions specifically motivated by the needs of Mozilla/Firefox.
  4552. Optimizations and bug fixes
  4553. ---------------------------
  4554. Shortly after the 1.0 maintenance series branched off the mainline
  4555. there was a major rework of the cairo font internals. This should
  4556. provide some good performance benefits, but it's also another area
  4557. people should look at closely for potential regressions.
  4558. There has not yet been any widespread, systematic optimization of
  4559. cairo, but various performance improvements have been made, (and some
  4560. of them are fairly significant). So if some things seem faster than
  4561. 1.0 then things are good. If there are any performance regressions
  4562. compared to 1.0 then there is a real problem and we would like to hear
  4563. about that.
  4564. There has been a huge number of bug fixes---too many to mention in
  4565. detail. Again, things should be better, and never worse compared to
  4566. 1.0. Please let us know if your testing shows otherwise.
  4567. Release 1.0.2 (2005-10-03 Carl Worth <cworth@cworth.org>)
  4568. =========================================================
  4569. For each bug number XXXX below, see:
  4570. https://bugs.freedesktop.org/show_bug.cgi?id=XXXX
  4571. for more details.
  4572. General bug fixes
  4573. -----------------
  4574. * 4408 - Add support for dashing of stroked curves
  4575. (Carl Worth)
  4576. * 4409 - Fix dashing so that each dash is capped on both ends
  4577. (Carl Worth)
  4578. * 4414 - Prevent SIGILL failures (proper use of -mmmx and -msse flags)
  4579. (Sebastien Bacher, Billy Biggs)
  4580. * 4299 - Fix crashes with text display in multi-threaded program
  4581. (Alexey Shabalin, Carl Worth)
  4582. * 4401 - Do not use sincos function since it is buggy on some platforms)
  4583. (Tim Mooney, Carl Worth)
  4584. * 4245 - Fix several bugs in the test suite exposed by amd64 systems
  4585. (Seemant Kulleen, Carl Worth)
  4586. * 4321 - Add missing byteswapping on GetImage/PutImage
  4587. (Sjoerd Simons, Owen Taylor)
  4588. * 4220 - Make the check for rectangular trapezoids simpler and more accurate
  4589. (Richard Stellingwerff, Owen Taylor)
  4590. * 4260 - Add missing channel-order swapping for antialised fonts
  4591. (Barbie LeVile, Owen Taylor)
  4592. * 4283 - Fix compilation failure with aggressive inlining (gcc -O3)
  4593. (Marco Manfredini, Owen Taylor)
  4594. * 4208 - Fix some warnings from sparse
  4595. (Kjartan Maraas, Billy Biggs)
  4596. * 4269 - Fix to not crash when compiled with -fomit-frame-pointer
  4597. (Ronald Wahl, Owen Taylor)
  4598. * 4263 - Improve performance for vertical gradients
  4599. (Richard Stellingwerff, Owen Taylor)
  4600. * 4231
  4601. * 4298 - Accommodate gentoo and Mandriva versions in X server vendor string check
  4602. (Billy Biggs, Frederic Crozat, Owen Taylor)
  4603. win32-specific fixes
  4604. --------------------
  4605. * 4599 - Fix "missing wedges" on some stroked paths (win32)
  4606. (Tim Rowley, Jonathan Watt, Bertram Felgenhauer, Carl Worth, Keith Packard)
  4607. * 4612 - Fix disappearing text if first character out of surface (win32)
  4608. (Tim Rowley)
  4609. * 4602 - Fix shutdown of cairo from failing intermediate, size-0 bitmaps (win32)
  4610. Aka. the "white rectangles" bug from mozilla-svg testing
  4611. (Tim Rowley)
  4612. * Various portability improvements for win32
  4613. (Hans Breuer, Owen Taylor, Carl Worth)
  4614. * 4593 - Fix font sizes to match user expectations (win32)
  4615. (Tor Lillqvist, Owen Taylor)
  4616. * 3927 - Fix to report metrics of size 0 for glyph-not-available (win32)
  4617. (Hans Breuer, Owen Taylor, Tor Lillqvist)
  4618. * Add locking primitives for win32
  4619. (Hans Breuer)
  4620. xlib-specific fixes
  4621. -------------------
  4622. * Fix crash from size-0 pixmap due to empty clip region (xlib)
  4623. (Radek Doulík, Carl Worth)
  4624. Release 1.0.0 (2005-08-24 Carl Worth <cworth@cworth.org>)
  4625. =========================================================
  4626. Experimental backends
  4627. ---------------------
  4628. * The Glitz, PS, PDF, Quartz, and XCB backends have been declared
  4629. experimental, and are not part of the API guarantees that accompany
  4630. this release. They are not built by default, even when the required
  4631. libraries are available, and must be enabled explicitly with
  4632. --enable-ps, --enable-pdf, --enable-quartz or --enable-xcb.
  4633. It is very painful for us to be pushing out a major release without
  4634. these backends enabled. There has been a tremendous amount of work
  4635. put into each one and all are quite functional to some
  4636. extent. However, each also has some limitations. And none of these
  4637. backends have been tested to the level of completeness and
  4638. correctness that we expect from cairo backends.
  4639. We do encourage people to experiment with these backends and report
  4640. success, failure, or means of improving them.
  4641. Operator behavior
  4642. -----------------
  4643. * Prior to 0.9.0 the SOURCE, CLEAR and a number of other operators
  4644. behaved in an inconsistent and buggy fashion and could affect areas
  4645. outside the clip mask. In 0.9.0, these six "unbounded" operators
  4646. were fixed to consistently clear areas outside the shape but within
  4647. the clip mask. This is useful behavior for an operator such as IN,
  4648. but not what was expected for SOURCE and CLEAR. So, in this release
  4649. the behavior of SOURCE and CLEAR has been changed again. They now
  4650. affect areas only within both the source and shape. We can write
  4651. the new operators as:
  4652. SOURCE: dest' = (mask IN clip) ? source : dest
  4653. CLEAR: dest' = (mask IN clip) ? 0 : dest
  4654. Behavior and API changes
  4655. ------------------------
  4656. * Setting the filter on a gradient pattern would change the
  4657. interpolation between color stops away from the normal linear
  4658. interpolation. This dubious behavior has been removed.
  4659. * The CAIRO_CONTENT_VALID() and CAIRO_FORMAT_VALID() macros --
  4660. implementation details that leaked into cairo.h -- have been moved
  4661. into an internal header.
  4662. * The cairo_show_text function now advances the current point
  4663. according to the total advance values of the string.
  4664. API additions
  4665. -------------
  4666. * cairo_set_dash can now detect error and can set
  4667. CAIRO_STATUS_INVALID_DASH.
  4668. Features
  4669. --------
  4670. * When compiled against recent versions of fontconfig and FreeType,
  4671. artificial bold fonts can now be turned on from fonts.conf using
  4672. the FC_EMBOLDEN fontconfig key.
  4673. Optimization
  4674. ------------
  4675. * The compositing code from the 'xserver' code tree has now been
  4676. completely merged into libpixman. This includes MMX optimization of
  4677. common operations.
  4678. * The image transformation code in libpixman has been improved and
  4679. now performs significantly faster.
  4680. Bug fixes
  4681. ---------
  4682. * Several crashes related to corruption in the font caches have been
  4683. fixed.
  4684. * All test cases now match pixel-for-pixel on x86 and PPC; this
  4685. required fixing bugs in the compositing, stroking, and pattern
  4686. rendering code.
  4687. * Negative dash offsets have been fixed to work correctly.
  4688. * The stroking of paths with mutiple subpaths has now been fixed to
  4689. apply caps to all subpaths rather than just the last one.
  4690. * Many build fixes for better portability on various systems.
  4691. * Lots of other bug fixes, but we're too tired to describe them in
  4692. more detail here.
  4693. Release 0.9.2 (2005-08-13 Carl Worth <cworth@cworth.org>)
  4694. =========================================================
  4695. Release numbering
  4696. -----------------
  4697. * You will notice that this release jumped from 0.9.0 to 0.9.2. We've
  4698. decided to use an odd micro version number (eg. 0.9.1) to indicate
  4699. in-progress development between releases. As soon as 0.9.2 is
  4700. tagged, the version will be incremented in CVS to 0.9.3 where it
  4701. will stay until just before 0.9.4 is built, uploaded, and tagged.
  4702. So, even-micro == a released version, odd-micro == something in-between.
  4703. Libpixman dependency dropped
  4704. ----------------------------
  4705. * As of this release, the dependency on an external libpixman has
  4706. been dropped. Instead, the code from libpixman needed for cairo has
  4707. been incorporated into the cairo source tree. The motivation for
  4708. this change is that while cairo's API is stable and ready to be
  4709. maintained after the 1.0 release, libpixman's API is not, so we do
  4710. not want to expose it at this time.
  4711. Also, the incorporation of libpixman into cairo also renames all
  4712. previously-public libpixman symbols in order to avoid any conflict
  4713. with a future release of libpixman
  4714. API additions
  4715. -------------
  4716. * Macros and functions have been added so that the version of cairo
  4717. can be queried at either compile-time or at run-time. The version
  4718. is made available as both a human-readable string and as a single
  4719. integer:
  4720. CAIRO_VERSION_STRING eg. "0.9.2"
  4721. CAIRO_VERSION eg. 000902
  4722. const char*
  4723. cairo_version_string (void); /* eg. "0.9.2" */
  4724. int
  4725. cairo_version (void); /* eg. 000902 */
  4726. A macro is provided to convert a three-part component version into
  4727. the encoded single-integer form:
  4728. CAIRO_VERSION_ENCODE(X,Y,Z)
  4729. For example, the CAIRO_VERSION value of 000902 is obtained as
  4730. CAIRO_VERSION_ENCODE(0,9,2). The intent is to make version
  4731. comparisons easy, either at compile-time:
  4732. #if CAIRO_VERSION >= CAIRO_VERSION_ENCODE(0,9,2)
  4733. ...
  4734. #endif
  4735. Or at run-time:
  4736. if (cairo_version() >= CAIRO_VERSION_ENCODE(0,9,2)) { /* ... */ }
  4737. Thread safety
  4738. -------------
  4739. * This release adds pthread-based locking (when available) to make
  4740. the caches used by cairo safe for threaded programs. Some may
  4741. remember a failed experiment with this locking between the 0.5.1
  4742. and 0.5.2 snapshots, (where even single-threaded programs that
  4743. linked with -lpthread would deadlock). We believe that that problem
  4744. has been fixed, so we are looking forward to testing and reports
  4745. from users with threaded applications.
  4746. Bug fixes
  4747. ---------
  4748. * The XCB and Quartz backends failed to compiled in the 0.9.0 release
  4749. due to minor syntax errors. These have now been fixed.
  4750. * Various crashes in glitz and pixman due to size 0 glyphs have been
  4751. fixed.
  4752. Release 0.9.0 (2005-08-08 Carl Worth <cworth@cworth.org>)
  4753. =========================================================
  4754. Soname change
  4755. -------------
  4756. * In all prior snapshots, the libtool library versioning was set to
  4757. 1:0:0. As this release is intended to mark the beginning of
  4758. backwards-compatible releases, the versioning has been incremented
  4759. to 2:0:0. You will notice that the numeric extension on the
  4760. installed library filename will change similarly.
  4761. This change will also require all cairo-using applications to be
  4762. recompiled. We recognize that this may cause some frustration since
  4763. this release is backwards-compatible with 0.6.0 and in that sense
  4764. "shouldn't" require re-compilation. However, since all historical
  4765. snapshots have used the same 1:0:0 version in spite of incompatible
  4766. API changes between them, it was essential that the upcoming 1.0
  4767. release series have distinct library versioning.
  4768. All future releases will use the library versioning to properly
  4769. indicate compatibility between releases. So, any application
  4770. re-compiled now to work with the 0.9.0 will not need to be
  4771. recompiled when a compatible 1.0 release of cairo is made in the
  4772. future.
  4773. API additions
  4774. -------------
  4775. * Add new function calls to set/get the current antialiasing mode in
  4776. the graphics state:
  4777. cairo_set_antialias
  4778. cairo_get_antialias
  4779. This call accepts the same modes recently added for font options
  4780. (NONE or GRAY) but affects the rendering of geometry other than
  4781. text. The intent of this call is to enable more precise control of
  4782. which pixels are affected by each operation, for example to allow
  4783. for full-scene antialiasing for seam-free rendering. It is not
  4784. expected that non-antialiased rendering will perform better than
  4785. anti-aliased rendering.
  4786. * Three new functions were added to provide support for mixed cairo-
  4787. and non-cairo drawing to the same surface:
  4788. cairo_surface_mark_dirty
  4789. cairo_surface_mark_dirty_rectangle
  4790. cairo_surface_flush
  4791. * The return type of the several "reference" functions was change,
  4792. (API compatibly), from void to the same type as the argument. The
  4793. affected functions are:
  4794. cairo_font_face_reference
  4795. cairo_scaled_font_reference
  4796. cairo_pattern_reference
  4797. cairo_surface_reference
  4798. cairo_reference
  4799. This allows a convenient way to assign and reference in a single
  4800. statement.
  4801. Semantic changes
  4802. ----------------
  4803. * The behavior of cairo_set_source with a pattern with a non-identity
  4804. matrix was previously not well-defined. The new behavior is as
  4805. follows:
  4806. The pattern's transformation matrix will be locked to the
  4807. user space in effect at the time of cairo_set_source(). This means
  4808. that further modifications of the CTM will not affect the source
  4809. pattern.
  4810. cairo-win32
  4811. -----------
  4812. * Some portability improvements, (eg. workaround for missing stdint.h).
  4813. cairo-ft
  4814. --------
  4815. * Updated to allow compilation with older versions of freetype.
  4816. Bug fixes
  4817. ---------
  4818. * Fix the unbounded operators to actually produce a correct result,
  4819. (previously the results were artificially restricted to the
  4820. bounding box of whatever shape was being drawn rather than
  4821. extending out infinitely). The fixed operators are:
  4822. CAIRO_OPERATOR_CLEAR
  4823. CAIRO_OPERATOR_SOURCE
  4824. CAIRO_OPERATOR_OUT
  4825. CAIRO_OPERATOR_IN
  4826. CAIRO_OPERATOR_DEST_IN
  4827. CAIRO_OPERATOR_DEST_ATOP
  4828. * Fix cairo_mask and cairo_mask_surface to transform the mask by the
  4829. current transformation matrix (CTM).
  4830. * Fix cairo_set_source to lock the CTM used to transform the pattern.
  4831. * Workaround for X server Render bug involving repeating patterns
  4832. with a general transformation matrix.
  4833. * cairo_get_font_face fixed to return a "nil" font face object rather
  4834. than NULL on error.
  4835. * cairo_set_font_face fixed to not crash if given a NULL font face,
  4836. (which is the documented interface for restoring the default font
  4837. face).
  4838. * Fix xlib glyphset caching to not try to free a NULL glyph.
  4839. Snapshot 0.6.0 (2005-07-28 Carl Worth <cworth@cworth.org>)
  4840. ==========================================================
  4841. API changes
  4842. -----------
  4843. * The prototypes of the following functions have changed:
  4844. cairo_xlib_surface_create_with_xrender_format
  4845. cairo_xlib_surface_create_for_bitmap
  4846. A Screen* parameter has been added to each. This allows the cairo
  4847. xlib backend to work correctly with multi-head X servers.
  4848. * The following function has been modified:
  4849. cairo_scaled_font_create
  4850. to accept a cairo_font_options_t*. See below fore more details.
  4851. * All opaque, reference-counted cairo objects have now been moved to a
  4852. standard error-handling scheme. The new objects to receive this
  4853. treatment are cairo_font_face_t, cairo_scaled_font_t, and
  4854. cairo_surface_t. (Previous snapshots already provided this scheme
  4855. for cairo_t, cairo_path_t, and cairo_pattern_t.)
  4856. This changes two functions to have a return type of void rather than
  4857. cairo_status_t:
  4858. cairo_scaled_font_extent
  4859. cairo_surface_finish
  4860. And significantly, none of the create functions for any of the
  4861. objects listed above will return NULL. The pointer returned from any
  4862. function will now always be a valid pointer and should always be
  4863. passed to the corresponding destroy function when finished
  4864. The simplest strategy for porting code is to switch from:
  4865. object = cairo_<object>_create ();
  4866. if (object == NULL)
  4867. goto BAILOUT;
  4868. /* act on object */
  4869. cairo_<object>_destroy (object);
  4870. to:
  4871. object = cairo_<object>_create ();
  4872. if (cairo_<object>_status (object))
  4873. goto BAILOUT;
  4874. /* act on object */
  4875. cairo_<object>_destroy (object);
  4876. But significantly, it is not required to check for an error status
  4877. before the "act on object" portions of the code above. All
  4878. operations on an object with an error status are, by definition,
  4879. no-ops without side effect. So new code might be written in an
  4880. easier-to-read style of:
  4881. object = cairo_<object>_create ();
  4882. /* act on object */
  4883. cairo_<object>_destroy (object);
  4884. with cairo_<object>_status checks placed only at strategic
  4885. locations. For example, passing an error object to another object,
  4886. (eg. cairo_set_source with an in-error pattern), will propagate the
  4887. error to the subsequent object (eg. the cairo_t). This means that
  4888. error checking can often be deferred even beyond the destruction of
  4889. a temporary object.
  4890. API additions
  4891. -------------
  4892. * New functions for checking the status of objects that have been
  4893. switched to the common error-handling scheme:
  4894. cairo_font_face_status
  4895. cairo_scaled_font_status
  4896. cairo_surface_status
  4897. * The _cairo_error function which was added in 0.5.1 has now been made
  4898. much more useful. In 0.5.1 only errors on cairo_t objects passed
  4899. through _cairo_error. Now, an error on any object should pass
  4900. through _cairo_error making it much more reliable as a debugging
  4901. mechanism for finding when an error first occurs.
  4902. * Added new font options support with a myriad of functions:
  4903. cairo_font_options_create
  4904. cairo_font_options_copy
  4905. cairo_font_options_destroy
  4906. cairo_font_options_status
  4907. cairo_font_options_merge
  4908. cairo_font_options_equal
  4909. cairo_font_options_hash
  4910. cairo_font_options_set_antialias
  4911. cairo_font_options_get_antialias
  4912. cairo_font_options_set_subpixel_order
  4913. cairo_font_options_get_subpixel_order
  4914. cairo_font_options_set_hint_style
  4915. cairo_font_options_get_hint_style
  4916. cairo_font_options_set_hint_metrics
  4917. cairo_font_options_get_hint_metrics
  4918. cairo_surface_get_font_options
  4919. cairo_ft_font_options_substitute
  4920. cairo_set_font_options
  4921. cairo_get_font_options
  4922. This new font options support allows the application to have much
  4923. more fine-grained control over how fonts are rendered.
  4924. Significantly, it also allows surface backends to have some
  4925. influence over the process. For example, the xlib backend now
  4926. queries existing Xft properties to set font option defaults.
  4927. * New function:
  4928. cairo_xlib_surface_set_drawable
  4929. which allows the target drawable for an xlib cairo_surface_t to be
  4930. changed to another with the same format, screen, and display. This
  4931. is necessary in certain double-buffering techniques.
  4932. New features
  4933. ------------
  4934. * Sub-pixel text antialiasing is now supported.
  4935. Bug fixes
  4936. ---------
  4937. * Fixed assertion failure in cairo_surface_create_similar when
  4938. application commits an error by passing a cairo_format_t rather than
  4939. a cairo_content_t.
  4940. * Avoid division by zero in various places (cairo-ft).
  4941. * Fix infinite loop when using non-default visuals (cairo-xlib).
  4942. * Eliminate segfault in cairo_image_surface_create_from_png_stream.
  4943. * Prevent errant sign-extension of masks on 64-bit architectures
  4944. (cairo-xlib and cairo-xcb).
  4945. * Other miscellaneous fixes.
  4946. Snapshot 0.5.2 (2005-07-18 Carl Worth <cworth@cworth.org>)
  4947. ==========================================================
  4948. API changes
  4949. -----------
  4950. * New functions for creating patterns of a single color:
  4951. cairo_pattern_create_rgb
  4952. cairo_pattern_create_rgba
  4953. * Change cairo_surface_create_similar to accept a new type of
  4954. cairo_content_t rather than cairo_format_t:
  4955. typedef enum _cairo_content {
  4956. CAIRO_CONTENT_COLOR = 0x1000,
  4957. CAIRO_CONTENT_ALPHA = 0x2000,
  4958. CAIRO_CONTENT_COLOR_ALPHA = 0x3000
  4959. } cairo_content_t;
  4960. * Add new CAIRO_FORMAT_VALID and CAIRO_CONTENT_VALID macros.
  4961. * Remove unused status value:
  4962. CAIRO_STATUS_NO_TARGET_SURFACE
  4963. * Add new status values:
  4964. CAIRO_STATUS_INVALID_STATUS
  4965. * Require libpixman >= 0.1.5 (for necessary bug fixes)
  4966. Bug fixes
  4967. ---------
  4968. * Fix cairo_surface_write_to_png for RGB24 images.
  4969. * Fix broken metrics and rendering for bitmap fonts. Add mostly
  4970. useless bitmap glyph transformation.
  4971. * Fix glyph caches to not eject entries that might be immediately
  4972. needed, (fixing intermittent crashes when rendering text).
  4973. * Fix all memory leaks found by running "make check-valgrind".
  4974. ATSUI backend changes
  4975. ---------------------
  4976. * Allow building against < 10.3 SDK.
  4977. * Prevent crash on empty strings.
  4978. Glitz backend changes
  4979. ---------------------
  4980. * Require glitz >= 0.4.4.
  4981. * Use frame buffer objects instead of pbuffers for accelerated
  4982. offscreen drawing.
  4983. * Minor improvement to gradient pattern creation.
  4984. PostScript backend fixes
  4985. ------------------------
  4986. * Rewrite of the PS backend to generate more interesting output that
  4987. the old big-image implementation.
  4988. Win32 backend fixes
  4989. -------------------
  4990. * Implement glyph path support.
  4991. * Fix swap of blue and green values in the fill_rectangles path.
  4992. Xlib backend fixes
  4993. ------------------
  4994. * Add optimization to use XCopyArea rather than XRenderComposite when
  4995. transforming only with an integer translation, and using SOURCE
  4996. operator or OVER with a source pattern without alpha.
  4997. Snapshot 0.5.1 (2005-06-20 Carl Worth <cworth@cworth.org>)
  4998. ==========================================================
  4999. API changes
  5000. -----------
  5001. * Removed cairo_status_string(cairo_t*) and add
  5002. cairo_status_to_string(cairo_status_t) in its place. Code using
  5003. cairo_status_string can be ported forward as follows:
  5004. cairo_status (cr);
  5005. ->
  5006. cairo_status_to_string (cairo_status (cr));
  5007. * Removed the BAD_NESTING restriction which means that two different
  5008. cairo_t objects can now interleave drawing to the same
  5009. cairo_surface_t without causing an error.
  5010. * The following functions which previously had a return type of
  5011. cairo_status_t now have a return type of void:
  5012. cairo_pattern_add_color_stop_rgba
  5013. cairo_pattern_set_matrix
  5014. cairo_pattern_get_matrix
  5015. cairo_pattern_set_extend
  5016. cairo_pattern_set_filter
  5017. See discussion of cairo_pattern_status below for more details.
  5018. API additions
  5019. -------------
  5020. * Improved error handling:
  5021. cairo_status_t
  5022. cairo_pattern_status (cairo_pattern_t *pattern);
  5023. This snapshot expands the status-based error handling scheme from
  5024. cairo_t to cairo_path_t and cairo_pattern_t. It also expands the
  5025. scheme so that object-creating functions, (cairo_create,
  5026. cairo_pattern_create_*, cairo_copy_path_*), are now guaranteed to
  5027. not return NULL. Instead, in the case of out-of-memory these
  5028. functions will return a static object with
  5029. status==CAIRO_STATUS_NO_MEMORY. The status can be checked with the
  5030. functions cairo_status and cairo_pattern_status, or by direct
  5031. inspection of the new status field in cairo_path_t.
  5032. Please note that some objects, including cairo_surface_t and all of
  5033. the font-related objects have not been converted to this
  5034. error-handling scheme.
  5035. * In addition to the above changes, a new private function has been added:
  5036. _cairo_error
  5037. This function can be used to set a breakpoint in a debugger to make
  5038. it easier to find programming error in cairo-using code. (Currently,
  5039. _cairo_error is called when any error is detected within a cairo_t
  5040. context, but is not called for non-cairo_t errors such as for
  5041. cairo_path_t and cairo_pattern_t).
  5042. * Fixed cairo_path_data_t so that its enum is visible to C++ code, (as
  5043. cairo_path_data_type_t).
  5044. Performance improvements
  5045. ------------------------
  5046. * Made a minor performance improvement for clipping, (restrict clip
  5047. surface to the new intersected bounds).
  5048. * Optimize rendering of a solid source pattern with a pixel-aligned
  5049. rectangular path to use backend clipping rather than rasterization
  5050. and backend compositing.
  5051. * Optimize cairo_paint_with_alpha to defer to cairo_paint when alpha
  5052. is 1.0.
  5053. Bug fixes
  5054. ---------
  5055. * Fixed memory leak in cairo_copy_path.
  5056. * A build fix for non-srcdir builds.
  5057. PDF backend fixes
  5058. -----------------
  5059. * New support for path-based clipping.
  5060. * Fix for text rotated to angles other than multiples of π/2.
  5061. Win32 backend fixes
  5062. -------------------
  5063. * Fix for text extents.
  5064. Xlib backend
  5065. ------------
  5066. * Implemented a complex workaround for X server bug[*] related to
  5067. Render-based compositing with untransformed, repeating source
  5068. pictures. The workaround uses core Xlib when possible for
  5069. performance, (ie. with CAIRO_OPERATOR_SOURCE or CAIRO_OPERATOR_OVER
  5070. with an opaque source surface), and falls back to the pixman
  5071. image-based compositing otherwise.
  5072. [*] https://bugs.freedesktop.org/show_bug.cgi?id=3566
  5073. * Various bug fixes, particularly in the fallback paths.
  5074. Snapshot 0.5.0 (2005-05-17 Carl Worth <cworth@cworth.org>)
  5075. ==========================================================
  5076. This is a pretty big, and fairly significant snapshot. It represents
  5077. between 2 and 3 months of solid work from a lot of people on improving
  5078. the API as much as possible. I'd like to express my appreciation and
  5079. congratulations to everyone who has worked on the big API Shakeup,
  5080. (whether in email battles over names, or fixing my silly bugs).
  5081. This snapshot will require some effort on the part of users, since
  5082. there are a _lot_ of API changes (ie. no cairo program ever written is
  5083. safe --- they're all broken now in at least one way). But, in spite of
  5084. that, we do encourage everyone to move their code to this snapshot as
  5085. soon as possible. And we're doing everything we can think of to make
  5086. the transition as smooth as possible.
  5087. The idea behind 0.5 is that we've tried to make every good API change
  5088. we could want now, and get them all done with. That is, between now
  5089. and the 1.0 release of cairo, we expect very few new API changes,
  5090. (though some will certainly sneak in). We will have some significant
  5091. additions, but the pain of moving code from cairo 0.4 to cairo 0.5
  5092. should be a one time experience, and things should be much smoother as
  5093. we continue to move toward cairo 1.0.
  5094. And with so many changes coming out for the first time in this 0.5
  5095. release, we really do need a lot of people trying this out to make
  5096. sure the ideas are solid before we freeze the API in preparation for
  5097. the 1.0 release.
  5098. OK, enough introduction. Here is a (not-quite-complete) description of
  5099. the API removals, changes and additions in this snapshot, (compared to
  5100. 0.4.0)
  5101. API removals
  5102. ============
  5103. The following public functions have been removed:
  5104. - cairo_set_target_*
  5105. This is a big change. See the description of cairo_create in
  5106. the API changes section for how to deal with this.
  5107. - cairo_set_alpha
  5108. Alpha blending hasn't gone away; there's just a much more
  5109. unified rendering model now. Almost all uses of
  5110. cairo_set_alpha will be trivially replaced with
  5111. cairo_set_source_rgba and a few others will be replaced just
  5112. as easily with cairo_paint_with_alpha.
  5113. - cairo_show_surface
  5114. Another useful function that we realized was muddling up the
  5115. rendering model. The replacement is quite easy:
  5116. cairo_set_source_surface and cairo_paint.
  5117. - cairo_matrix_create
  5118. - cairo_matrix_destroy
  5119. - cairo_matrix_copy
  5120. - cairo_matrix_get_affine
  5121. These functions supported an opaque cairo_matrix_t. We now
  5122. have an exposed cairo_matrix_t structure, so these can be
  5123. dropped.
  5124. - cairo_surface_set_repeat
  5125. - cairo_surface_set_matrix
  5126. - cairo_surface_set_filter
  5127. These properties don't belong on surfaces. If you were using
  5128. them, you'll just want to instead use
  5129. cairo_pattern_create_for_surface and then set these properties
  5130. on the pattern.
  5131. - cairo_copy
  5132. This was a confusing function and hopefully nobody will miss
  5133. it. But if you really don't find cairo_save/restore adequate,
  5134. let us know and we have another idea for a potential
  5135. replacement.
  5136. And while we're on the subject of removals, we carefully tightened up
  5137. the cairo header files so they no longer gratuitously include header
  5138. files that are not strictly necessary, (stdio.h, stdint.h, pixman.h,
  5139. Xrender.h, etc. and their dependencies). This may lead to some
  5140. surprising errors, so keep your eyes open for that.
  5141. API changes
  5142. ===========
  5143. Here are some of the API changes that have occurred:
  5144. ~ cairo_create(void) -> cairo_create(cairo_surface_t *)
  5145. This is the big change that breaks every program. The ability
  5146. to re-target a cairo_t was not particularly useful, but it did
  5147. introduce a lot of muddy semantic questions. To eliminate
  5148. that, cairo_create now requires its target surface to be
  5149. passed in at creation time. This isn't too hard to cope with
  5150. as the typical first operation after cairo_create was often
  5151. cairo_set_target_foo. So the order of those two swap and the
  5152. application instead has cairo_foo_surface_create, then
  5153. cairo_create.
  5154. ~ cairo_current_* -> cairo_get_*
  5155. We had a strange mixture of cairo_get and cairo_current
  5156. functions. They've all been standardized on cairo_get, (though
  5157. note one is cairo_get_current_point).
  5158. ~ CAIRO_OPERATOR_SRC -> CAIRO_OPERATOR_SOURCE
  5159. ~ CAIRO_OPERATOR_OVER_REVERSE -> CAIRO_OPERATOR_DEST_OVER
  5160. Many of the cairo_operator_t symbolic values were renamed to
  5161. reduce the amount of abbreviation. The confusing "OP_REVERSE"
  5162. naming was also changed to use "DEST_OP" instead which is
  5163. easier to read and has wider acceptance in other
  5164. libraries/languages.
  5165. ~ cairo_set_pattern -> cairo_set_source
  5166. ~ cairo_set_rgb_color -> cairo_set_source_rgb
  5167. All of the various functions that changed the source
  5168. color/pattern were unified to use cairo_set_source names to
  5169. make the relation more clear.
  5170. ~ cairo_transform_point -> cairo_user_to_device
  5171. ~ cairo_transform_distance -> cairo_user_to_device_distance
  5172. ~ cairo_inverse_transform_point -> cairo_device_to_user
  5173. ~ cairo_inverse_transform_distance -> cairo_device_to_user_distance
  5174. These names just seemed a lot more clear.
  5175. ~ cairo_init_clip -> cairo_reset_clip
  5176. ~ cairo_concat_matrix -> cairo_transform
  5177. More abbreviation elimination
  5178. ~ cairo_current_path -> cairo_copy_path
  5179. ~ cairo_current_path_flat -> cairo_copy_path_flat
  5180. The former mechanism for examining the current path was a
  5181. function that required 3 or 4 callbacks. This was more
  5182. complexity than warranted in most situations. The new
  5183. cairo_copy_path function copies the current path into an
  5184. exposed data structure, and the documentation provides a
  5185. convenient idiom for navigating the path data.
  5186. API additions
  5187. -------------
  5188. + cairo_paint
  5189. A generalized version of the painting operators cairo_stroke
  5190. and cairo_fill. The cairo_paint call applies the source paint
  5191. everywhere within the current clip region. Very useful for
  5192. clearing a surface to a solid color, or painting an image,
  5193. (see cairo_set_source_surface).
  5194. + cairo_paint_with_alpha
  5195. Like cairo_paint but applying some alpha to the source,
  5196. (making the source paint translucent, eg. to blend an image on
  5197. top of another).
  5198. + cairo_mask
  5199. A more generalized version of cairo_paint_with_alpha which
  5200. allows a pattern to specify the amount of translucence at each
  5201. point rather than using a constant value everywhere.
  5202. + cairo_mask_surface
  5203. A convenience function on cairo_mask for when the mask pattern
  5204. is already contained within a surface.
  5205. + cairo_surface_set_user_data
  5206. + cairo_surface_get_user_data
  5207. + cairo_font_face_set_user_data
  5208. + cairo_font_face_get_user_data
  5209. Associate arbitrary data with a surface or font face for later
  5210. retrieval. Get notified when a surface or font face object is
  5211. destroyed.
  5212. + cairo_surface_finish
  5213. Allows the user to instruct cairo to finish all of its
  5214. operations for a given surface. This provides a safe point for
  5215. doing things such as flushing and closing files that the
  5216. surface may have had open for writing.
  5217. + cairo_fill_preserve
  5218. + cairo_stroke_preserve
  5219. + cairo_clip_preserve
  5220. One interesting change in cairo is that the path is no longer
  5221. part of the graphics state managed by
  5222. cairo_save/restore. This allows functions to construct paths
  5223. without interfering with the graphics state. But it prevents
  5224. the traditional idiom for fill-and-stroke:
  5225. cairo_save; cairo_fill; cairo_restore; cairo_stroke
  5226. Instead we know have alternate versions cairo cairo_fill,
  5227. cairo_stroke, and cairo_clip that preserve the current path
  5228. rather than consuming it. So the idiom now becomes simply:
  5229. cairo_fill_preserve; cairo_stroke
  5230. + cairo_surface_write_to_png
  5231. + cairo_surface_write_to_png_stream
  5232. In place of a single PNG backend, now a surface created
  5233. through any backend (except PDF currently) can be written out
  5234. to a PNG image.
  5235. + cairo_image_surface_create_from_png
  5236. + cairo_image_surface_create_from_png_stream
  5237. And its just as easy to load a PNG image into a surface as well.
  5238. + cairo_append_path
  5239. With the new, exposed path data structure, it's now possible
  5240. to append bulk path data to the current path, (rather than
  5241. issuing a long sequence of cairo_move_to/line_to/curve_to
  5242. function calls).
  5243. Xlib and XCB backends
  5244. ---------------------
  5245. Any cairo_format_t and Colormap arguments have been dropped from
  5246. cairo_xlib_surface_create. There are also two new
  5247. cairo_xlib|xcb_surface_create functions:
  5248. cairo_xlib|xcb_surface_create_for_bitmap
  5249. (Particular for creating A1 surfaces)
  5250. cairo_xlib|xcb_surface_create_with_xrender_format
  5251. (For any other surface types, not described by a Visual*)
  5252. All of these surface create functions now accept width and height. In
  5253. addition, there are new cairo_xlib|xcb_surface_set_size functions
  5254. which must be called each time a window that is underlying a surface
  5255. changes size.
  5256. Print backends (PS and PDF)
  5257. ---------------------------
  5258. The old FILE* based interfaces have been eliminated. In their place we
  5259. have two different functions. One accepts a simple const char
  5260. *filename. The other is a more general function which accepts a
  5261. callback write function and a void* closure. This should allow the
  5262. flexibility needed to hook up with various stream object in many
  5263. languages.
  5264. In addition, when specifying the surface size during construction, the
  5265. units are now device-space units (ie. points) rather than inches. This
  5266. provides consistency with all the other surface types and also makes
  5267. it much easier to reason about the size of the surface when drawing to
  5268. it with the default identity matrix.
  5269. Finally, the DPI parameters, which are only needed to control the
  5270. quality of fallbacks, have been made optional. Nothing is required
  5271. during surface_create (300 DPI is assumed) and
  5272. cairo_ps|pdf_surface_set_dpi can be used to set alternate values if
  5273. needed.
  5274. Font system
  5275. -----------
  5276. Owen very graciously listened to feedback after the big font rework he
  5277. had done for 0.4, and came up with way to improve it even more. In 0.4
  5278. there was a cairo_font_t that was always pre-scaled. Now, there is an
  5279. unscaled cairo_font_face_t which is easier to construct, (eg. no
  5280. scaling matrix required) and work with, (it can be scaled and
  5281. transformed after being set on the graphics state). And the font size
  5282. manipulation functions are much easier. You can set an explicit size
  5283. and read/modify/write the font matrix with:
  5284. cairo_set_font_size
  5285. cairo_get_font_matrix
  5286. cairo_set_font_matrix
  5287. (Previously you could only multiply in a scale factor or a matrix.) A
  5288. pleasant side effect is that we can (and do) now have a default font
  5289. size that is reasonable, as opposed to the old default height of one
  5290. device-space unit which was useless until scaled.
  5291. Of course, the old pre-scaled font had allowed some performance
  5292. benefits when getting many metrics for a font. Those benefits are
  5293. still made available through the new cairo_scaled_font_t. And a
  5294. cairo_font_face_t can be "promoted" to a cairo_scaled_font_t by
  5295. suppling a font_matrix and the desired CTM.
  5296. Quartz backend
  5297. --------------
  5298. Tim Rowley put in the work to bring the Quartz backend back after it
  5299. had been disabled in the 0.4.0 snapshot. He was not able to bring back
  5300. the function that allows one to create a cairo_font_t from an ATSUI
  5301. style:
  5302. cairo_font_t *
  5303. cairo_atsui_font_create (ATSUStyle style);
  5304. because he didn't have a test case for it. If you care about this
  5305. function, please provide a fairly minimal test and we'll try to bring
  5306. it back in an upcoming snapshot.
  5307. Snapshot 0.4.0 (2005-03-08 Carl Worth <cworth@cworth.org>)
  5308. ==========================================================
  5309. New documentation
  5310. -----------------
  5311. Owen Taylor has converted cairo's documentation system to gtk-doc and
  5312. has begun some long-needed work on the documentation, which can now be
  5313. viewed online here:
  5314. http://cairographics.org/manual/
  5315. New backend: win32
  5316. ------------------
  5317. This is the first snapshot to include a functional win32 backend,
  5318. (thanks to Owen Taylor). The interface is as follows:
  5319. #include <cairo-win32.h>
  5320. void
  5321. cairo_set_target_win32 (cairo_t *cr,
  5322. HDC hdc);
  5323. cairo_surface_t *
  5324. cairo_win32_surface_create (HDC hdc);
  5325. cairo_font_t *
  5326. cairo_win32_font_create_for_logfontw (LOGFONTW *logfont,
  5327. cairo_matrix_t *scale);
  5328. cairo_status_t
  5329. cairo_win32_font_select_font (cairo_font_t *font,
  5330. HDC hdc);
  5331. void
  5332. cairo_win32_font_done_font (cairo_font_t *font);
  5333. double
  5334. cairo_win32_font_get_scale_factor (cairo_font_t *font);
  5335. And see also the documentation at:
  5336. http://cairographics.org/manual/cairo-Microsoft-Windows-Backend.html
  5337. Disabled backend: quartz
  5338. ------------------------
  5339. Unfortunately, the quartz backend code is currently out of date with
  5340. respect to some recent backend interface changes. So, the quartz
  5341. backend is disabled in this snapshot.
  5342. If the quartz backend is brought up-to-date before the next snapshot,
  5343. we would be glad to make a 0.4.1 snapshot that re-enables it, (we do
  5344. not expect many more big backend interface changes).
  5345. API Changes
  5346. -----------
  5347. The font system has been revamped, (as Owen Taylor's work with
  5348. integrating pango and cairo gave us the first serious usage of the
  5349. non-toy font API).
  5350. One fundamental, user-visible change is that the cairo_font_t object
  5351. now represents a font that is scaled to a particular device
  5352. resolution. Further changes are described below.
  5353. cairo.h
  5354. -------
  5355. Removed cairo_font_set_transform and cairo_font_current_transform.
  5356. Added cairo_font_extents and cairo_font_glyph_extents. See
  5357. documentation for details:
  5358. http://cairographics.org/manual/cairo-cairo-t.html#cairo-font-extents
  5359. cairo-ft.h
  5360. ----------
  5361. The cairo_ft_font API changed considerably. Please see the
  5362. documentation for details:
  5363. http://cairographics.org/manual/cairo-FreeType-Fonts.html
  5364. Performance
  5365. -----------
  5366. Make the fast-path clipping (pixel-aligned rectangles) faster.
  5367. Add optimization for applying a constant alpha to a pattern.
  5368. Optimize gradients that are horizontal or vertical in device space.
  5369. Xlib: When RENDER is not available, use image surfaces for
  5370. intermediate surfaces rather than xlib surfaces.
  5371. Backend-specific changes
  5372. ------------------------
  5373. Glitz
  5374. -----
  5375. Major update to glitz backend. The output quality should now be just
  5376. as good as the image and xlib backends.
  5377. Track changes to glitz 0.4.0.
  5378. PDF
  5379. ---
  5380. Various improvements to produce more conformant output.
  5381. Internals
  5382. ---------
  5383. David Reveman contributed a large re-work of the cairo_pattern_t
  5384. implementation, providing cleaner code and more optimization
  5385. opportunities.
  5386. Backend interface changes
  5387. -------------------------
  5388. Rework backend interface to accept patterns, not surfaces for source
  5389. and mask.
  5390. Remove set_matrix, set_filter, and set_repeat functions.
  5391. More sophisticated backend interface for image fallbacks,
  5392. ({acquire,release}_{source,dest}_image() and clone_similar).
  5393. Bug fixes
  5394. ---------
  5395. Only install header files for backends that have been compiled.
  5396. Fixed some rounding errors leading to incorrectly placed glyphs.
  5397. Many other minor fixes.
  5398. Snapshot 0.3.0 (2005-01-21 Carl Worth <cworth@cworth.org>)
  5399. ==========================================================
  5400. Major API changes
  5401. -----------------
  5402. 1) The public header files will no longer be directly installed into
  5403. the system include directory. They will now be installed in a
  5404. subdirectory named "cairo", (eg. in /usr/include/cairo rather than
  5405. in /usr/include).
  5406. As always, the easiest way for applications to discover the
  5407. location of the header file is to let pkg-config generate the
  5408. necessary -I CFLAGS and -L/-l LDFLAGS. For example:
  5409. cc `pkg-config --cflags --libs cairo` -o foo foo.c
  5410. IMPORTANT: Users with old versions of cairo installed will need to
  5411. manually remove cairo.h and cairo-features.h from the
  5412. system include directories in order to prevent the old
  5413. headers from being used in preference to the new ones.
  5414. 2) The backend-specific portions of the old monolithic cairo.h have
  5415. been split out into individual public header files. The new files
  5416. are:
  5417. cairo-atsui.h
  5418. cairo-ft.h
  5419. cairo-glitz.h
  5420. cairo-pdf.h
  5421. cairo-png.h
  5422. cairo-ps.h
  5423. cairo-quartz.h
  5424. cairo-xcb.h
  5425. cairo-xlib.h
  5426. Applications will need to be modified to explicitly include the new
  5427. header files where appropriate.
  5428. 3) There are two new graphics backends in this snapshot, a PDF
  5429. backend, and a Quartz backend. There is also one new font backend,
  5430. ATSUI.
  5431. PDF backend
  5432. -----------
  5433. Kristian Høgsberg has contributed a new backend to allow cairo-based
  5434. applications to generate PDF output. The interface for creating a PDF
  5435. surface is similar to that of the PS backend, as can be seen in
  5436. cairo-pdf.h:
  5437. void
  5438. cairo_set_target_pdf (cairo_t *cr,
  5439. FILE *file,
  5440. double width_inches,
  5441. double height_inches,
  5442. double x_pixels_per_inch,
  5443. double y_pixels_per_inch);
  5444. cairo_surface_t *
  5445. cairo_pdf_surface_create (FILE *file,
  5446. double width_inches,
  5447. double height_inches,
  5448. double x_pixels_per_inch,
  5449. double y_pixels_per_inch);
  5450. Once a PDF surface has been created, applications can draw to it as
  5451. any other cairo surface.
  5452. This code is still a bit rough around the edges, and does not yet
  5453. support clipping, surface patterns, or transparent gradients. Text
  5454. only works with TrueType fonts at this point and only black text is
  5455. supported. Also, the size of the generated PDF files is currently
  5456. quite big.
  5457. Kristian is still actively developing this backend, so watch this
  5458. space for future progress.
  5459. Quartz backend
  5460. --------------
  5461. Calum Robinson has contributed a new backend to allow cairo
  5462. applications to target native Mac OS X windows through the Quartz
  5463. API. Geoff Norton integrated this backend into the current
  5464. configure-based build system, while Calum also provided Xcode build
  5465. support in the separate "macosx" module available in CVS.
  5466. The new interface, available in cairo-quartz.h, is as follows:
  5467. void
  5468. cairo_set_target_quartz_context (cairo_t *cr,
  5469. CGContextRef context,
  5470. int width,
  5471. int height);
  5472. cairo_surface_t *
  5473. cairo_quartz_surface_create (CGContextRef context,
  5474. int width,
  5475. int height);
  5476. There is an example program available in CVS in cairo-demo/quartz. It
  5477. is a port of Keith Packard's fdclock program originally written for
  5478. the xlib backend. A screenshot of this program running on Mac OS X is
  5479. available here:
  5480. http://cairographics.org/~cworth/images/fdclock-quartz.png
  5481. ATSUI font backend
  5482. ------------------
  5483. This new font backend complements the Quartz backend by allowing
  5484. applications to use native font selection on Mac OS X. The interface
  5485. is a single new function:
  5486. cairo_font_t *
  5487. cairo_atsui_font_create (ATSUStyle style);
  5488. Minor API changes
  5489. -----------------
  5490. Prototype for non-existent function "cairo_ft_font_destroy" removed.
  5491. Now depends on libpixman 0.1.2 or newer, (0.1.3 is being released
  5492. concurrently and has some useful performance improvements).
  5493. Default paint color is now opaque black, (was opaque white). Default
  5494. background color is transparent (as before).
  5495. Renamed "struct cairo" to "struct _cairo" to free up the word "cairo"
  5496. from the C++ identifier name space.
  5497. Functions returning multiple return values through provided pointers,
  5498. (cairo_matrix_get_affine, cairo_current_point, and
  5499. cairo_current_color_rgb), will now accept NULL for values the user
  5500. wants to ignore.
  5501. CAIRO_HAS_FREETYPE_FONT has now been renamed to CAIRO_HAS_FT_FONT.
  5502. Performance improvements
  5503. ------------------------
  5504. Alexander Larsson provided some fantastic performance improvements
  5505. yielding a 10000% performance improvement in his application, (when
  5506. also including his performance work in libpixman-0.1.3). These include
  5507. * Fixed handling of cache misses.
  5508. * Creating intermediate clip surfaces at the minimal size required.
  5509. * Eliminating roundtrips when creating intermediate Xlib surfaces.
  5510. Implementation
  5511. --------------
  5512. Major re-work of font metrics system by Keith Packard. Font metrics
  5513. should now be much more reliable.
  5514. Glitz backend
  5515. -------------
  5516. Updated for glitz-0.3.0.
  5517. Bug fixes in reference counting.
  5518. Test suite
  5519. ----------
  5520. New tests for cache crashing, rotating text, improper filling of
  5521. complex polygons, and leaky rasterization.
  5522. Bug fixes
  5523. ---------
  5524. Fixed assertion failure when selecting the same font multiple times in
  5525. sequence.
  5526. Fixed reference counting so cache_destroy functions work.
  5527. Remove unintended copyright statement from files generated with
  5528. PostScript backend.
  5529. Fixed to eliminate new warnings from gcc 3.4 and gcc 4.
  5530. Snapshot 0.2.0 (2004-10-27 Carl Worth <cworth@cworth.org>)
  5531. ===========================================================
  5532. New license: LGPL/MPL
  5533. ---------------------
  5534. The most significant news with this release is that the license of
  5535. cairo has changed. It is now dual-licensed under the LGPL and the
  5536. MPL. For details see the COPYING file as well as COPYING-LGPL-2.1 and
  5537. COPYING-MPL-1.1.
  5538. I express my thanks to everyone involved in the license change process
  5539. for their patience and support!
  5540. New font and glyph internals
  5541. ----------------------------
  5542. Graydon Hoare has put a tremendous amount of work into new internals
  5543. for handling fonts and glyphs, including caches where appropriate.
  5544. This work has no impact on the user-level API, but should result in
  5545. great performance improvements for applications using text.
  5546. New test suite
  5547. --------------
  5548. This snapshot of cairo includes a (small) test suite in
  5549. cairo/test. The tests can be run with "make check". The test suite was
  5550. designed to make it very easy to add new tests, and we hope to see
  5551. many contributions here. As you find bugs, please try adding a minimal
  5552. test case to the suite, and submit it with the bug report to the
  5553. cairo@cairographics.org mailing list. This will make it much easier
  5554. for us to track progress in fixing bugs.
  5555. New name for glitz backend
  5556. --------------------------
  5557. The gl backend has now been renamed to the glitz backend. This means
  5558. that the following names have changed:
  5559. CAIRO_HAS_GL_SURFACE -> CAIRO_HAS_GLITZ_SURFACE
  5560. cairo_set_target_gl -> cairo_set_target_glitz
  5561. cairo_gl_surface_create -> cairo_glitz_surface_create
  5562. This change obviously breaks backwards compatibility for applications
  5563. using the old gl backend.
  5564. Up-to-date with latest glitz snapshots
  5565. --------------------------------------
  5566. This snapshot of cairo is now up to date with the latest glitz
  5567. snapshot, (currently 0.2.3). We know that the latest cairo and glitz
  5568. snapshots have been incompatible for a very long time. We've finally
  5569. fixed that now and we're determined to not let that happen again.
  5570. Revert some tessellation regression bugs
  5571. ----------------------------------------
  5572. People that have been seeing some tessellation bugs, (eg. leaked
  5573. fills), in the CVS version of cairo may have better luck with this
  5574. release. A change since the last snapshot was identified to trigger
  5575. some of these bugs and was reverted before making the snapshot. The
  5576. behavior should be the same as the previous (0.1.23) snapshot.
  5577. Miscellaneous changes
  5578. ---------------------
  5579. Changed CAIRO_FILTER_DEFAULT to CAIRO_FILTER_BEST to make gradients
  5580. easier.
  5581. Track XCB API change regarding iterators.
  5582. Various bug fixes
  5583. -----------------
  5584. Fix calculation of required number of vertices for pen.
  5585. Fix to avoid zero-dimensioned pixmaps.
  5586. Fix broken sort of pen vertices.
  5587. Fix bug when cairo_show_text called with a NULL string.
  5588. Fix clipping bugs.
  5589. Fix bug in computing image length with XCB.
  5590. Fix infinite loop bug in cairo_arc.
  5591. Fix memory management interactions with libpixman.
  5592. Snapshot 0.1.23 (2004-05-11 Carl Worth <cworth@isi.edu>)
  5593. ========================================================
  5594. Fixes for gcc 3.4
  5595. -----------------
  5596. Fix prototype mismatches so that cairo can be built by gcc 3.4.
  5597. Updates to track glitz
  5598. ----------------------
  5599. Various fixes to support the latest glitz snapshot (0.1.2).
  5600. Gradient updates
  5601. ----------------
  5602. Radial gradients now support both inner and outer circles.
  5603. Transformed linear gradients are now properly handled.
  5604. Fixes for extend type reflect.
  5605. Glitz updates
  5606. -------------
  5607. Converted shading routines to use fixed point values and introduced a
  5608. shading operator structure for more efficient shading calculations.
  5609. Support compositing with mask surface when mask is solid or
  5610. multi-texturing is available.
  5611. PNG backend cleanups
  5612. --------------------
  5613. Fix output to properly compensate for pre-multiplied alpha format in cairo.
  5614. Add support for A8 and A1 image formats.
  5615. Bug fixes
  5616. ---------
  5617. Avoid crash or infinite loop on null strings and degeneratively short
  5618. splines.
  5619. New? bugs in cairo_clip
  5620. -----------------------
  5621. There are some fairly serious bugs in cairo_clip. It is sometimes
  5622. causing an incorrect result. And even when it does work, it is
  5623. sometimes so slow as to be unusable. Some of these bugs may not be
  5624. new, (indeed cairo_clip has only ever had a braindead-slow
  5625. implementation), but I think they're worth mentioning here.
  5626. Snapshot 0.1.22 (2004-04-16 Carl Worth <cworth@isi.edu>)
  5627. ========================================================
  5628. Cairo was updated to track the changes in libpixman, and now depends
  5629. on libpixman version 0.1.1.
  5630. Snapshot 0.1.21 (2004-04-09 David Reveman <c99drn@cs.umu.se>)
  5631. =============================================================
  5632. New OpenGL backend
  5633. ------------------
  5634. The OpenGL backend provides hardware accelerated output for
  5635. X11 and OS X. The significant new functions are:
  5636. cairo_set_target_gl
  5637. cairo_gl_surface_create
  5638. Automatic detection of available backends
  5639. -----------------------------------------
  5640. The configure script now automatically detect what backends are
  5641. available, (use ./configure --disable-`backend' to prevent
  5642. compilation of specific backends).
  5643. Snapshot 0.1.20 (2004-04-06 Carl Worth <cworth@isi.edu>)
  5644. ========================================================
  5645. New pattern API
  5646. ---------------
  5647. David Reveman has contributed a new pattern API which enable linear
  5648. and radial gradient patterns in addition to the original surface-based
  5649. patterns. The significant new top-level functions are:
  5650. cairo_pattern_create_linear
  5651. cairo_pattern_create_radial
  5652. cairo_pattern_create_for_surface
  5653. cairo_pattern_add_color_stop
  5654. cairo_set_pattern
  5655. Any code using the old cairo_set_pattern, (which accepted a
  5656. cairo_surface_t rather than a cairo_pattern_t), will need to be
  5657. updated.
  5658. Update to XCB backend
  5659. ---------------------
  5660. The XCB backend is now enabled by default, (use ./configure
  5661. --disable-xcb to turn it off).
  5662. Faster clipping
  5663. ---------------
  5664. Graydon Hoare has added optimizations that make cairo_clip much faster
  5665. when the path is a pixel-aligned, rectangular region.
  5666. Bug fixes.
  5667. Snapshot 0.1.19 (2004-02-24 Carl Worth <cworth@isi.edu>)
  5668. ========================================================
  5669. New PNG backend
  5670. ---------------
  5671. Olivier Andrieu contributed a new PNG backend. It builds on the
  5672. existing image backend to make it easy to render "directly" to a
  5673. .png file. The user never needs to deal with the actual image
  5674. buffer. The significant new functions are:
  5675. cairo_set_target_png
  5676. cairo_png_surface_create
  5677. The PNG backend is not enabled by default so that by default there is
  5678. not a new dependency on libpng. Use ./configure --enable-png to enable
  5679. this backend.
  5680. Snapshot 0.1.18 (2004-02-17 Carl Worth <cworth@isi.edu>)
  5681. ========================================================
  5682. Path query functionality
  5683. ------------------------
  5684. It's now possible to query the current path. The two new functions
  5685. are:
  5686. cairo_current_path
  5687. cairo_current_path_flat
  5688. Each function accepts a number of callback functions that will be
  5689. called for each element in the path (move_to, line_to, curve_to,
  5690. close_path). The cairo_current_path_flat function does not accept a
  5691. curve_to callback. Instead, all curved portions of the path will be
  5692. converted to line segments, (within the current tolerance value). This
  5693. can be handy for doing things like text-on-path without having to
  5694. manually interpolate Bézier splines.
  5695. New XCB backend
  5696. ---------------
  5697. Jamey Sharp has contributed a second X backend that uses the new, lean
  5698. XCB library rather than Xlib. It cannot currently be compiled at the
  5699. same time as the Xlib backend. See ./configure --enable-xcb.
  5700. Build fixes for cygwin.
  5701. Bug fixes.
  5702. Snapshot 0.1.17 (2003-12-16 Carl Worth <cworth@isi.edu>)
  5703. ========================================================
  5704. Better text support
  5705. -------------------
  5706. This snapshot provides much better text support by implementing the
  5707. following four functions:
  5708. cairo_text_extents
  5709. cairo_glyph_extents
  5710. cairo_text_path
  5711. cairo_glyph_path
  5712. The text/glyph_extents functions can be used to determine the bounding
  5713. box (and advance) for text as if drawn by show_text/glyphs.
  5714. The text/glyph_path objects functions place text shapes on the current
  5715. path, where they can be subsequently manipulated. For example,
  5716. following these functions with cairo_stroke allows outline text to be
  5717. drawn. Calling cairo_clip allows clipping to a text-shaped region.
  5718. Combined dependencies
  5719. ---------------------
  5720. The cairo core now depends only on the libpixman library. This single
  5721. library replaces the three previous libraries libic, libpixregion, and
  5722. slim. Thanks to Dave Beckett <dave.beckett@bristol.ac.uk> for all of
  5723. the heavy lifting with this renaming effort.
  5724. Conditional compilation of backends
  5725. -----------------------------------
  5726. Cairo now allows optional backends to be disabled at compile time. The
  5727. following options may now be passed to the configure script:
  5728. --disable-xlib
  5729. --disable-ps
  5730. Note that the first option is a change from the old --without-x option
  5731. which will no longer have any effect.
  5732. OS X supported - several byte-order issues resolved
  5733. ---------------------------------------------------
  5734. Cairo has now been successfully compiled under OS X. Testing revealed
  5735. that there were some byte-order problems in the PostScript backend and
  5736. the PNG generation in the demos. These have now been resolved.
  5737. 2003-10
  5738. =======
  5739. Graydon Hoare <graydon@redhat.com> implemented the first real text
  5740. support using Freetype/fontconfig, (previous versions of cairo used
  5741. Xft and could only draw text when using an X backend).
  5742. 2003-09
  5743. =======
  5744. Graydon Hoare <graydon@redhat.com> added the first real support for
  5745. running cairo with a non-render-aware X server.
  5746. Jamey Sharp <jamey@minilop.net> virtualized the backend font and
  5747. surface interfaces in September, 2003.
  5748. 2003-06
  5749. =======
  5750. Xr is renamed cairo to avoid confusion since it no longer had a strict
  5751. dependence on X.
  5752. 2003-05
  5753. =======
  5754. A new image surface backend is added to Xr. Keith Packard
  5755. <keithp@keithp.com> wrote the image compositing code in libic that is
  5756. used for the image_surface backend. This code was originally written
  5757. as the software fallback for the render extension within the X
  5758. server.
  5759. 2002-06
  5760. =======
  5761. Carl Worth <cworth@isi.edu> wrote the first lines of Xr, after Keith
  5762. Packard <keithp@keithp.com> proposed the plan for a stateful drawing
  5763. library in C providing a PostScript-like rendering model.
  5764. LocalWords: mutex BeOS extraordinaire distro's URL lcd bool tarball