Commit graph

2473 commits

Author SHA1 Message Date
Behdad Esfahbod
aea83b908d Fix typos in configure.in for PS/PDF/SVG backends 2006-08-10 12:47:47 -04:00
Behdad Esfahbod
dc8da1ca06 Save configure cache after checking all backends
This makes sure that backend enabling results are cached even
if a later test in configure fails.
2006-08-10 12:47:11 -04:00
Behdad Esfahbod
6d0e326044 Don't link to -lm unconditionally in cairo.pc
Reuse $LIBM results.
2006-08-10 12:45:35 -04:00
Behdad Esfahbod
24374ad613 Implement configure cache versioning for backend enabling results
such that removing config.cache is not needed as frequently as it
is currently.  We just detect and stale the cache results for our
own backends.  If the user installs missing libraries, they still
need to remove the cache manually.

Note that everytime a change is made to configure.in and may change
the results of at least one CAIRO_BACKEND_ENABLE call, the
cairo_cache_version number should be increased.
2006-08-10 12:44:35 -04:00
Carl Worth
c3c706873e ROADMAP: Remove 1.2.2 stuff now that that release is out the door 2006-08-08 16:56:20 -07:00
Carl Worth
27842ff06f NEWS: Fix some misspellings 2006-08-08 16:51:48 -07:00
Carl Worth
c96e1b6d8f README: Update backend list.
PDF, PS, and SVG are no longer experimental. And DirectFB and BeOS now exist as well.
2006-08-08 16:32:26 -07:00
Carl Worth
38b42c5025 Increment CAIRO_VERSION to 1.2.3 after making the 1.2.2 release 2006-08-08 16:23:07 -07:00
Carl Worth
ac1c748868 Update version to 1.2.2 and libtool version to 11:1:9. 2006-08-08 16:06:57 -07:00
Carl Worth
6b3e674211 NEWS: Add notes for cairo 1.2.2 2006-08-08 16:04:54 -07:00
Carl Worth
5b2c84549f RELEASING: Add --stat option to recommended git-log command 2006-08-08 14:30:20 -07:00
Carl Worth
e3c7840d22 Fix EXTRA_DIST so that 'make distcheck' works again 2006-08-08 14:29:29 -07:00
Carl Worth
d5d529c0f3 gtk-doc template file churn 2006-08-08 14:28:48 -07:00
Carl Worth
ca99478d43 Fix some memory leaks in a few of the tests. 2006-08-08 12:48:56 -07:00
Carl Worth
d6e204b9d5 Add a variation of an existing valgrind suppression 2006-08-08 12:48:20 -07:00
Behdad Esfahbod
16c18aea52 [PDF] Fix leak: free glyphs 2006-08-08 15:30:56 -04:00
Behdad Esfahbod
ac4922bd07 [TrueType] Zero out padding memory in generated TrueType subset
to make the output deterministic and fix valgrind errors.
2006-08-08 15:27:21 -04:00
Behdad Esfahbod
356e646dc6 [FreeType] Unset and set to FC_RGBA_NONE the FC_RGBA attribute on pattern
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 14:04:51 -04:00
Alfred Peng
db06681b48 Fix leaks in failure paths in pixman gradient creation 2006-08-08 10:58:42 -07:00
Behdad Esfahbod
6ff531c182 [TrueType] Add comment block describing why we only use int16_t 2006-08-08 13:13:18 -04:00
Behdad Esfahbod
23f3888618 [TrueType] More leak fixes 2006-08-08 07:39:31 -04:00
Behdad Esfahbod
519bd3d3e9 [TrueType] Fix leaks. 2006-08-08 07:30:46 -04:00
Behdad Esfahbod
501e5cc883 Restructure subpixel_order handling such that the code doesn't look suspicious!
Shouldn't make /any/ difference at all in any case.
2006-08-08 06:12:13 -04:00
Behdad Esfahbod
89fc22de87 [fontconfig] Set FC_RGBA_NONE on the pattern if we don't want subpixel.
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-08 06:09:23 -04:00
Behdad Esfahbod
1f854fcf32 Set antialiasing to gray in default font options for PS/PDF/SVG
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-08 06:09:23 -04:00
Carl Worth
2d483e0785 test-paginated: Fix memory leak within _test_paginated_surface_create_for_data 2006-08-08 02:24:48 -07:00
Carl Worth
cb5edb6c35 Eliminate warning due to the test suite's private 'FLATTENEND' format value 2006-08-08 01:39:12 -07:00
Behdad Esfahbod
f089a07679 Fix misplaced volatile keyword 2006-08-08 04:36:13 -04:00
Carl Worth
9d542a29cb Disable warning options that are not available in gcc 3.3.5 at least.
We'll want to turn these back on eventually with a nice conditional check on the
appropriate version of gcc.
2006-08-08 01:30:40 -07:00
Carl Worth
c3b912d7db Eliminate most compiler warnings from the test suite 2006-08-08 01:16:49 -07:00
Carl Worth
c7d11ad2b4 Remove stale SVG-specific reference images for pixman-rotate test 2006-08-08 00:43:09 -07:00
Carl Worth
401f0ce3c4 Merge branch 'surface-font-options' into cairo 2006-08-08 00:19:51 -07:00
Behdad Esfahbod
77fd0efa9a Fix few remaining compiler warnings, revealed by -O3 2006-08-08 02:58:50 -04:00
Carl Worth
02b54ca620 Improve docs for cairo_surface_create_similar() 2006-08-07 23:47:46 -07:00
Behdad Esfahbod
9136c21770 Update reference images, mostly PDF and SVG
Also replace some SVG ref images for rgb24 and argb32 with a single
one where the two have been similar.
2006-08-07 23:47:31 -07:00
Behdad Esfahbod
56791ab31d Make "make html" not trigger test reruns
"make index.html" can still be used to force up-to-date test results,
causing test reruns if necessary.
2006-08-08 02:46:38 -04:00
Behdad Esfahbod
caba7f6bda Document a few more functions
cairo_show_page
	cairo_copy_page
	cairo_in_stroke
	cairo_in_fill
2006-08-08 02:24:16 -04:00
Carl Worth
789785cd35 Document CAIRO_FORMAT_RGB16_565 as deprecated. 2006-08-07 23:13:09 -07:00
Behdad Esfahbod
fdc805a529 More doc syntax update 2006-08-07 22:28:59 -04:00
Behdad Esfahbod
bbc9a1290a Update doc syntax
Annoying, but a function doc should have a body, not only "Returns", or
gtk-doc will not pick it up.
2006-08-07 22:27:15 -04:00
Behdad Esfahbod
fef0251d15 Add cairo-truetype-subset-private.h to list of ignored headers 2006-08-07 22:15:15 -04:00
Behdad Esfahbod
c2ea56e5e0 Add test truetype-tables that checks sizeof truetype tables 2006-08-07 21:37:16 -04:00
Behdad Esfahbod
50be7951c9 Split the TrueType table definitions into a private header file
such that we can test the struct sizes in a test.
2006-08-07 21:23:08 -04:00
Behdad Esfahbod
ec895202e0 Remove the __attribute__ ((packed)) and the need for it
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-07 21:13:48 -04:00
Carl Worth
20c3ff96de Fix some signed/unsigned comparison warnings that cropped up during the warnings-cleanup branch 2006-08-07 15:22:49 -07:00
Carl Worth
959b85e98c Merge branch 'warnings-cleanup' into cairo
Conflicts:

	src/cairo-font-subset.c
2006-08-07 15:06:47 -07:00
Behdad Esfahbod
f1c70a0139 Mark x86_64 subsetting as fixed in ROADMAP. 2006-08-07 17:32:02 -04:00
Carl Worth
7ee94c0285 Squelch an annoying -Wswitch-enum warning by not using switch 2006-08-07 14:30:06 -07:00
Carl Worth
43b579d757 Add -Wswitch-enum compiler flag and fix all trivial warnings 2006-08-07 14:30:06 -07:00
Behdad Esfahbod
d1f9bef30e Add -Wunsafe-loop-optimizations compiler flag and fix all warnings 2006-08-07 14:24:32 -07:00