summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2006-08-18Merge branch 'jrmuizel-stroking-fixes' into cairoCarl Worth1-0/+3
Conflicts: test/dash-caps-joins-ps-argb32-ref.png test/degenerate-path-ps-argb32-ref.png test/degenerate-path.c
2006-08-18Don't set current point to (0,0) in close_path.Carl Worth1-6/+0
The setting of current point to (0,0) is actually harmless, but it definitely looks like a bug, (since after close_path the current point is really the last move point). We don't keep track of last move point here, nor do we even need to. So we can be consistent with _cairo_path_fixed_close_path by not adjusting current point at all, (the subsequent move_to coming right behind the close_path will fix up the current point).
2006-08-18Fix close-path failure by adding explicit move_to after close_path.Carl Worth2-4/+19
Besides the bug fix, this is a user-visible change since the new move_to element after the close_path element can be seen in the results of cairo_copy_path, so we document that here. We are also careful to fix up _cairo_path_fixed_line_to to defer to _cairo_path_fixed_move_to to avoid letting the last_move_point state get stale. This avoids introducing the second bug that is also tested by the close-path test case.
2006-08-17[PNG] Include png.h after cairoint.h to avoid macro problems (bug 7744)Behdad Esfahbod1-1/+1
2006-08-17Only use GGO_GLYPH_INDEX for truetype and opentype fonts on win32.Adrian Johnson1-9/+43
2006-08-17Add (primitive) bitmap glyph tracing to fix bug #7889Carl Worth1-2/+94
2006-08-17Fix assertion failures in bitmap-font test by coercing A8 images to A1Carl Worth5-3/+55
There are still some problems in the resulting output: PDF: Rotated font ends up being blurry in final PNG (not too important) PS and SVG: There's an incorrect offset being applied somewhere.
2006-08-15[FreeType] Use _cairo_ft_scaled_font_is_vertical where appropriateBehdad Esfahbod1-2/+2
instead of poking at the loadflags.
2006-08-15[FreeType] Fix vertical metrics adjustment to work with non-identity shapesBehdad Esfahbod1-11/+18
2006-08-15[PS] Set correct ImageMatrix in _cairo_ps_surface_emit_bitmap_glyph_dataBehdad Esfahbod1-6/+6
which should be set to device_transform_inverse, not device_transform. Moreover, no negation is needed anymore, as that has been working around the inverse matrix :-).
2006-08-15[FreeType] Fix comment about font coordinateBehdad Esfahbod1-2/+1
2006-08-15Respect font_matrix translation in _cairo_gstate_glyph_pathBehdad Esfahbod1-1/+3
2006-08-13[Type1] Synch comments in the encoding tableBehdad Esfahbod1-46/+80
2006-08-13[Type1] Use NULL instead of 0Pavel Roskin1-13/+20
Using NULL is encouraged for pointers. While fixing that, it turned out that the comments indicating the current index were wrong, so I'm fixing them too.
2006-08-13Update nil surface structs to the surface structPavel Roskin1-3/+27
Quite a few fields were missing, but all zero, so didn't matter practically, but comments were out of synch.
2006-08-10Remove the ft_load_sfnt_table check from PS/PDF/SVG backendsBehdad Esfahbod1-0/+3
and make sure that _cairo_ft_load_truetype_table returns UNSUPPORTED if the version of FreeType used doesn't support FT_Load_Sfnt_Table.
2006-08-08[PDF] Fix leak: free glyphsBehdad Esfahbod1-0/+2
2006-08-08[TrueType] Zero out padding memory in generated TrueType subsetBehdad Esfahbod1-3/+5
to make the output deterministic and fix valgrind errors.
2006-08-08[FreeType] Unset and set to FC_RGBA_NONE the FC_RGBA attribute on patternBehdad Esfahbod1-1/+3
if we don't want it. This stuff is tricky, but I hope to explain: In your fontconfig configuration, you may match on "font", or on "pattern". Turning subpixel on typically looks like: <match target="font"> <test qual="all" name="rgba"> <const>unknown</const> </test> <edit name="rgba" mode="assign"><const>rgb</const></edit> </match> This works good enough, and if you set to ANTIALIAS_GRAY, this will not override that. Now one may forget to match on "font" target, or intentionally match on the pattern. That happens before cairo font options are substituted in the pattern. So, to give a hint of subpixel in your config file, you can write: <match target="pattern"> <edit name="rgba" mode="assign"><const>rgb</const></edit> </match> You don't really need to check for current values, as FcConfigSubstitute is run before merging cairo_font_options_t in. What this patch does, is to reset pattern's rgba property if the font options explicitly ask for ANTIALIAS_GRAY. This is the only place in cairo-ft-font.c that we use FcPatternDel, so I thought some explanation is needed.
2006-08-08[TrueType] Add comment block describing why we only use int16_tBehdad Esfahbod1-8/+19
2006-08-08[TrueType] More leak fixesBehdad Esfahbod1-1/+2
2006-08-08[TrueType] Fix leaks.Behdad Esfahbod1-8/+14
2006-08-08Restructure subpixel_order handling such that the code doesn't look suspicious!Behdad Esfahbod1-5/+10
Shouldn't make /any/ difference at all in any case.
2006-08-08[fontconfig] Set FC_RGBA_NONE on the pattern if we don't want subpixel.Behdad Esfahbod1-0/+2
otherwise, it looks like "I don't care" and fontconfig configuration is allowed to decide to turn subpixel on. This fixes the bug that subpixel colors where showing up in fallback images in PS/PDF/SVG backends, observed in the test fallback-resolution.
2006-08-08Set antialiasing to gray in default font options for PS/PDF/SVGBehdad Esfahbod3-3/+6
This only affects the image fallback in those backends, and avoids getting colored pixels there if user's fontconfig configuration turns subpixel on. This doesn't quite fix that problem though, more changes are needed/coming.
2006-08-08test-paginated: Fix memory leak within _test_paginated_surface_create_for_dataCarl Worth1-1/+11
2006-08-08Eliminate most compiler warnings from the test suiteCarl Worth1-1/+1
2006-08-08Merge branch 'surface-font-options' into cairoCarl Worth6-49/+106
2006-08-08Fix few remaining compiler warnings, revealed by -O3Behdad Esfahbod2-10/+9
2006-08-07Improve docs for cairo_surface_create_similar()Carl Worth1-5/+6
2006-08-08Document a few more functionsBehdad Esfahbod1-0/+42
cairo_show_page cairo_copy_page cairo_in_stroke cairo_in_fill
2006-08-07Document CAIRO_FORMAT_RGB16_565 as deprecated.Carl Worth1-3/+10
2006-08-07More doc syntax updateBehdad Esfahbod1-0/+2
2006-08-07Update doc syntaxBehdad Esfahbod4-4/+16
Annoying, but a function doc should have a body, not only "Returns", or gtk-doc will not pick it up.
2006-08-07Split the TrueType table definitions into a private header fileBehdad Esfahbod3-121/+165
such that we can test the struct sizes in a test.
2006-08-07Remove the __attribute__ ((packed)) and the need for itBehdad Esfahbod1-24/+34
as it's not portable and lack of it could seriously break the truetype subsetting code. Now, instead of using int32_t and int64_t, we use multiple int16_t items, to avoid any alignments. Fortunately, we are not using any of the fields involved, so no code changes necessary.
2006-08-07Fix some signed/unsigned comparison warnings that cropped up during the ↵Carl Worth7-18/+17
warnings-cleanup branch
2006-08-07Merge branch 'warnings-cleanup' into cairoCarl Worth19-74/+105
Conflicts: src/cairo-font-subset.c
2006-08-07Squelch an annoying -Wswitch-enum warning by not using switchCarl Worth1-8/+8
2006-08-07Add -Wswitch-enum compiler flag and fix all trivial warningsCarl Worth5-2/+32
2006-08-07Add -Wunsafe-loop-optimizations compiler flag and fix all warningsBehdad Esfahbod1-1/+1
2006-08-07Add -Wwrite-strings compiler flag and fix all warningsBehdad Esfahbod2-3/+3
2006-08-07Fix bug 7294 by adding pixman BGR formats and internal cairo BGR formats.Carl Worth3-11/+99
This approach to fixing the bug is valid since there is code in pixman for rendering to BGR images, (which is why cairo 1.0 worked with BGR X servers for example). But, since we don't want to advertise additional image formats we implement this through a new cairo_internal_format_t. This is rather fragile since we don't want to leak any internal formats nor do we ever want an internal format to be used somewhere a real format is expected, (and trigger a CAIRO_FORMAT_VALID assertion failure). More comments than code are added here to help compensate for the fragility and to give some guidance in fixing this mess in a better way in the future.
2006-08-07Make truetype subsetting work on x86_64Adrian Johnson1-97/+98
This fixes the bug reported against GTK+ here: http://bugzilla.gnome.org/show_bug.cgi?id=349826
2006-08-07Fix typos in internal documentation.Declan Naughton1-2/+2
2006-08-07Fix file handle leak in failure path (bug 7616)Carl Worth1-1/+3
2006-08-07Add definition of cairo_private for some Sun compilers.Alfred Peng1-1/+3
In addition to helping us preserve a sharp line between which symbols are part of the public API and which are private parts of the implementation, this can also help mozilla avoid clashes between its modified, internal copy of cairo and the system version of cairo. See the mozilla bug here: https://bugzilla.mozilla.org/show_bug.cgi?id=341874
2006-08-04Fix memory leak in _cairo_surface_show_glyphs (bug 7766)Chris Wilson1-0/+2
2006-08-04Add binary garbage to PDF header as recommended in section 3.4.1 of PDF ↵Dominic Lachowicz1-0/+2
Reference v1.6
2006-08-03Use base pointer to avoid compiler warning.Carl Worth1-1/+1