Commit graph

1395 commits

Author SHA1 Message Date
Carl Worth
f05248faef Add missing break statements to switch. 2004-01-24 01:46:20 +00:00
Thomas Hunger
6d465f4e43 added and updated documentation concerning text handling 2004-01-23 14:13:20 +00:00
Richard Worth
077fcb36da Add '-no-undefined' to end of libpixman_la_LDFLAGS tp enable building shared libary under cygwin.
Remove all 'extern ' and ' __external_linkage' (macro for __declspec(dllexport) and __declspec(dllimport)) from function declarations. These are no longer needed for cygwin.
2004-01-22 21:05:08 +00:00
Richard Worth
5c490d2160 Add '-no-undefined' to end of libcairo_la_LDFLAGS to enable building shared library under cygwin.
Remove all 'extern ' and ' __external_linkage' (macro for __declspec(dllexport) and __declspec(dllimport)) from function declarations. These are no longer needed for cygwin.
Changed type of _line_segs_intersect_ceil from 'static cairo_fixed_t' to 'static int' to match definition. This was necessary to compile under cygwin.
2004-01-22 20:47:24 +00:00
Carl Worth
22792e2e7a Remove trailing commas from enum, (some compilers like to complain about this). 2003-12-17 13:17:13 +00:00
Carl Worth
decf8b395c Remove trailing commas from enums, (some compilers like to complain about them). 2003-12-17 12:59:37 +00:00
Dave Beckett
2eb2408ca7 Replace requiring libpixregion, libic with libpixman. 2003-12-16 09:42:19 +00:00
Carl Worth
75a7541cf1 Fix typo 2003-12-16 08:29:01 +00:00
Carl Worth
aa7c663ea8 Add more notes culled from the ChangeLog. 2003-12-16 08:27:17 +00:00
Carl Worth
a194d9ecd4 Begin maintaining NEWS file. Add notes on 0.1.17. 2003-12-16 08:06:49 +00:00
Carl Worth
fb93261e37 Bump version to 0.1.17 for new functions: cairo_text_extents, cairo_glyph_extents, cairo_text_path, cairo_glyph_path.
Re-enable cairo_text_path and cairo_glyph_path.
Add missing transformation.
Initial implementation of glyph_path.
2003-12-16 07:20:20 +00:00
Carl Worth
bf40046a4e Move all current_point state fields from cairo_gstate_t to cairo_path_t.
Add current_point state. (_cairo_path_current_point): New function. (_cairo_path_rel_move_to): (_cairo_path_rel_line_to): (_cairo_path_rel_curve_to): New functions.
Eliminate current_point state. (_cairo_gstate_show_text): (_cairo_gstate_text_path): Use new _cairo_path_current_point.
2003-12-16 07:10:48 +00:00
Carl Worth
b5983fab84 A couple of changes missed in the last batch of commits (reordering so that path is final argument). 2003-12-16 06:58:10 +00:00
Carl Worth
368b4d269b Change cairo_font_backend_t to use a void * for the abstract font. Put create, copy, and destroy as the first functions in the list. Fix text_path and glyph_path so that the path to be returned is the last argument. Add x,y arguments to text_path.
Compute x,y now needed by cairo_font_text_path. (_cairo_gstate_glyph_path): Track change in cairo_font_text/glyph_path (path argument is now last).
Switch to new macro-based mechanism for including freetype headers. (cairo_ft_font_face): (cairo_ft_font_pattern): Minor cleanup. (_cairo_ft_font_copy): (_cairo_ft_font_destroy): (_utf8_to_glyphs): (_cairo_ft_font_font_extents): (_cairo_ft_font_glyph_extents): (_cairo_ft_font_text_extents): (_cairo_ft_font_show_glyphs): (_cairo_ft_font_show_text): Track changes to cairo_font_backend_t interface.
Track changes to cairo_font_backend_t interface.
2003-12-16 06:50:37 +00:00
Carl Worth
c18a81e252 Change instances of Cairo to cairo where necessary. Add note about broken dashing on splines. 2003-12-16 06:15:53 +00:00
Carl Worth
dea75c8333 Rename cairo_text_exextents_t fields: left_side_bearing -> x_bearing ascent -> y_bearing right_side_bearing (replaced by) width descent (replaced by) height 2003-12-15 19:00:15 +00:00
Carl Worth
39bb4f1d99 Need to divide out the scale factor to return user-space extents. (_cairo_gstate_glyph_extents): Don't transform glyph locations as they're not relevant to extents.
Clean up implementation. (_cairo_ft_font_glyph_extents): Initial implementation. Thanks to John Ellson <ellson@research.att.com> for most of the work on this function. (_cairo_ft_font_show_text): Clean to use num_glyphs not nglyphs.
Re-enable cairo_text/glyph_extents.
2003-12-15 18:26:51 +00:00
Carl Worth
9d4fe7e369 Move this function from cairo_ft_font.c (_get_scale_factors). 2003-12-15 18:02:03 +00:00
Carl Worth
0095dcb49d Fix minor errors in fixed/floating-point conversion. 2003-12-15 17:26:25 +00:00
Carl Worth
1cd1330aa3 font->show_glyphs no longer accepts an offset point.
_utf8_to_glyphs now accepts a point by which each glyph should be offset. (cairo_ft_font_backend): Remove evil void * casts on function pointers.
Fix to not require a current point.
Move initialization of current device-space point from setup_text_rendering_context to _cairo_gstate_show_text. (_cairo_gstate_show_glyphs): Fix to not reference current point.
2003-12-15 14:20:56 +00:00
Dave Beckett
8b00a61e8b Add compatibility defines FONTCONFIG_LIBS, X_LIBS, XRENDER_LIBS to keep automake happy - they look like automake variable names. 2003-12-12 16:00:19 +00:00
Dave Beckett
b694e4d1ff (libpixman_la_SOURCES): slim_export.h slim_import.h gone. 2003-12-12 15:11:23 +00:00
Dave Beckett
d9febe2fb4 src/Makefile.am: Remove LIBPIXMAN_CFLAGS/LIBS cruft. 2003-12-12 15:10:12 +00:00
Dave Beckett
09abb6df40 Remove LIBPIXMAN_CFLAGS/LIBS cruft. 2003-12-12 15:09:55 +00:00
Carl Worth
2309a8b98a Add comment about building in a font.
Check for NULL return value from cairo_ft_font_create.
2003-12-12 12:00:50 +00:00
Carl Worth
e232072c12 Add conditionals for ps_surface functions, etc.
Get rid of AC_PATH_XTRA. Instead, find X includes/libraries only via pkg-config xrender. Switch option from --without-x to --disable-xlib Add option --disable-ps
Add -lz only if ps_surface backend is compiled.
2003-12-12 11:44:16 +00:00
Carl Worth
a02d8aaa59 Add missing definitions from slim_import.h. 2003-12-12 11:02:07 +00:00
Carl Worth
47000a1737 Updated .cvsignore 2003-12-12 10:51:21 +00:00
Carl Worth
0278468fc1 Fold contents of slim_export/import.h directly into this file to avoid dependence on external slim package.
Use quote-based include now that slim_internal is an internal file.
Follow convention of other files for multi-inclusion guard (_IC_INT_H_)
Remove cruft.
2003-12-12 10:47:59 +00:00
Carl Worth
849c780a63 Rename surface->ic_image to surface->pixman_image.
Rename functions and indentifiers with ic_ in the name that were missed by the recent renaming. Fix indentation problems left by the recent renaming.
Shift everything over from libic/libpixregion/slim to libpixman. Many thanks to Dave Beckett <dave.beckett@bristol.ac.uk> for all of the heavy lifting with this renaming effort.
2003-12-11 13:04:39 +00:00
Carl Worth
5b38b14ff2 Directly fold in slim stuff rather than depending on it from an external package.
Switch from libic to libpixman.
Include pixman.h not ic.h. (__external_linkage): Directly fold in slim stuff rather than depending on it from an external package.
Look for libpixman instead of libic and slim.
2003-12-11 12:43:58 +00:00
Andrew Chant
18ae004832 cairo_select_font: _cairo_font_create: _cairo_gstate_select_font: cairo_ft_font_create: change char * family to const char * family 2003-12-11 11:12:59 +00:00
Carl Worth
c2696a7d8d Replace mysterious image->depth == 32 ? 24 : image->depth with simply image->depth. 2003-12-11 10:01:10 +00:00
Carl Worth
6cd6ac5a05 Add xrender to cairo.pc Renders line if needed. 2003-12-11 09:35:07 +00:00
Carl Worth
b95d2066a5 Fix to use shifts and masks for endianness-correct PS image generation. Rename bgr to rgb now that the byte order issues are clear. 2003-12-11 07:03:41 +00:00
Dave Beckett
9da5af44f4 Correct some more renames where the order of the renaming caused later renames to fail due to earlier prefixes failing. 2003-12-10 15:42:01 +00:00
Dave Beckett
b24029f4d0 fixes for wrong order of renames 2003-12-10 15:41:14 +00:00
Dave Beckett
af1ab1a9f2 Correct some more renames where the order of the renaming caused later renames to fail due to earlier prefixes failing. 2003-12-10 15:39:45 +00:00
Dave Beckett
4409b9fff9 Add rename fixes 2003-12-10 15:27:11 +00:00
Dave Beckett
22b133453d Correct over-eager renames of the form pixman_thing_tName into pixman_thing_name. It was inevitable really this would happen! 2003-12-10 15:25:38 +00:00
Dave Beckett
4ecffdf8b9 Correct over-eager renames of the form pixman_thing_tName into pixman_thing_name. It was inevitable really this would happen! 2003-12-10 15:23:11 +00:00
Dave Beckett
0070bd372c Added helper script for updating names in source. 2003-12-10 14:28:55 +00:00
Dave Beckett
c2d04cfb0b Rename exported Ic* and PixRegion* functions, types, enums to be prefixed pixman (or PIXMAN for enum values) 2003-12-10 14:26:22 +00:00
Dave Beckett
94988dbe09 Rename exported Ic* and PixRegion* functions, types, enums to be prefixed pixman (or PIXMAN for enum values) 2003-12-10 14:20:05 +00:00
Dave Beckett
e39e756403 libpixman is the pixel manipulation library 2003-12-10 14:04:15 +00:00
Dave Beckett
2841a71842 libpixman is the pixel manipulation library 2003-12-10 13:29:40 +00:00
Dave Beckett
05bcf7a4b5 Initial version with the following changes to do the merging:
Change ic.h/pixregion.h headers inclusions to be pixman.h
Removed ic.h, merged into pixman.h
Merged pixregion.h (former name and CVS history of this file) and ic.h (now CVS deleted here).
Updated for libpixregion,libic to libpixman source merges. Added -I$(srcdir) so we get internal headers from here even when srcdir != builddir.
Updated for libpixregion,libic to libpixman package name, dependencies.
Merge of libic, slim AUTHORS, COPYING, README
Initial repository copy of libpixregion, libic, slim CVS.
Constructed a merged ChangeLog below via emacs VC mode (which rocks!)
2003-12-09 16:10:29 +00:00
Dave Beckett
7ba9ad2973 Change ic.h/pixregion.h headers inclusions to be pixman.h 2003-12-09 16:09:33 +00:00
Dave Beckett
b76a5ccf7f Removed ic.h, merged into pixman.h 2003-12-09 16:08:36 +00:00
Dave Beckett
08e0943c9f Merged pixregion.h (former name and CVS history of this file) and ic.h (now CVS deleted here). 2003-12-09 16:08:16 +00:00