summaryrefslogtreecommitdiff
path: root/src/cairo-win32.h
Commit message (Collapse)AuthorAgeFilesLines
* dwrite: create C++ dwrite headerAdrian Johnson2023-01-311-11/+0
|
* DWrite font docsAdrian Johnson2022-03-051-0/+1
|
* Remove the extra API from the mozilla DWriteAdrian Johnson2022-02-271-21/+0
|
* dwrite_font param is not usedAdrian Johnson2022-02-271-1/+1
|
* Fix check doc errorsAdrian Johnson2022-02-271-4/+4
|
* Import win32 dwrite font backend fromAdrian Johnson2022-02-271-0/+31
| | | | | | | | | | https://hg.mozilla.org/mozilla-central/file/7338d7d940913147f8a1b1e8bd2b25ab255f4373/gfx/cairo/cairo/src and add to the meson build. I've omitted the cairo_surface_set_subpixel_antialiasing() API and its use in quartz and dwrite. Not sure if that is needed. It compiles. Not tested.
* win32: Add cairo API to set up a Win32 surface for an HDC with an alpha channel.Руслан Ижбулатов2015-04-131-0/+4
| | | | | Signed-off-by: Руслан Ижбулатов <lrn1986@gmail.com> Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
* Update FSF addressAndrea Canciani2010-04-271-1/+1
| | | | | | | | | | | I updated the Free Software Foundation address using the following script. for i in $(git grep Temple | cut -d: -f1 ) do sed -e 's/59 Temple Place[, -]* Suite 330, Boston, MA *02111-1307[, ]* USA/51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA/' -i "$i" done Fixes http://bugs.freedesktop.org/show_bug.cgi?id=21356
* Make sure feature macros are checked using #if, not #ifdef; add a test for itBehdad Esfahbod2008-09-201-0/+8
| | | | | This is more robust to cases where people want to assign 0 to those variables. (win32/alternate build systems, etc)
* Use #include "cairo-*." instead of #include <cairo-*.h>Behdad Esfahbod2008-06-231-1/+1
| | | | | The rule is simple: <x.h> for system / other project includes, "x.h" for local includes.
* [win32] remove ignore_operators flag from win32 printing surfaceVladimir Vukicevic2007-10-091-1/+2
| | | | | | Remove the ignore_operators fallback-avoiding workaround; if apps want that same behaviour, they'll have to implement it themselves by taking care when calling cairo_set_operator().
* [win32] Add win32 printing surfaceVladimir Vukicevic2007-09-181-0/+3
| | | | | | | | Add win32 surface intended for use with printer DCs; GDI will be used as much as possible, and the surface will be a paginated surface that supports fine-grained fallback. (Original work from Adrian Johnson; additional fixes by me.)
* [win32] Add cairo_win32_font_face_create_for_logfontw_hfontVladimir Vukicevic2007-08-281-0/+3
| | | | | | | | Patch from: Robert O'Callahan <roc@ocallahans.org> Add cairo_win32_font_face_create_for_logfontw_hfont, allow win32 scaled_fonts to rescale themselves properly to the required CTM and only use the font_face's hfont if we're sure it's appropriate.
* Remove WINVER from public header fileJonathan Watt2007-01-041-10/+0
|
* revert accidental mode changes in my previous commitJonathan Watt2006-12-151-0/+0
|
* Fix a couple of character spacing issues on WindowsU-JONATHAN-X60S\jonathan2006-12-151-0/+10
|
* [win32] correct win32 show_glyphs for non-y-aligned textStuart Parmenter2006-09-121-0/+8
| | | | Correctly calculate destination glyph coordinates for win32_show_glyphs.
* [win32] Support for DDBs, AlphaBlend fixVladimir Vukicevic2006-09-121-0/+9
| | | | | | | | | Add support for the win32 surface using DDBs for similar surfaces and the like when the orignal surface is created from a DC, or when a DDB is explicitly created. A DIB is still created if alpha is required. Also fixes a case where blitting win32 RGB24 -> ARGB32 surfaces was causing alpha to leak into the ARGB32 surface instead of being set to fully opaque.
* [win32] Allow for creating a font from a HFONTStuart Parmenter2006-05-181-0/+3
| | | | (cherry picked from 677f6c84f9beae3afd375663fed0a440007ebca2 commit)
* Win32: rename cairo_surface_create_dib to cairo_surface_create_with_dibVladimir Vukicevic2006-02-271-3/+3
| | | | | Also adds some documentation for the win32 creation functions. (cherry picked from 3a148bd620d709237d98a72f65118759bfc5a76d commit)
* Win32: expose win32 DIB (image) surface creation function, and DC getterVladimir Vukicevic2006-02-271-0/+8
| | | | | | | Adds cairo_win32_surface_create_dib() for creating a win32 DIB-backed surface with a particular format. Also exposes cairo_win32_surface_get_dc() to obtain the DC of a win32 surface. (cherry picked from 0813a1b9b6f35d786fe8cb0d4748771023956cde commit)
* Give cairo_public an empty definition by default.Carl Worth2005-09-071-5/+5
| | | | Add new cairo_public macro before every public function call prototype.
* Add an #error if cairo-foo.h is included when cairo was compiled without ↵Carl Worth2005-05-141-2/+4
| | | | support for the foo backend.
* Change definitions of everything in cairo-features.h to prefer #if over #ifdef.Carl Worth2005-05-061-1/+1
| | | | | Track #ifdef -> #if changes. Add support to automatically change all #ifdef CAIRO_HAS to #if CAIRO_HAS.
* Remove cairo_set_target_surface and all other backend-specific ↵Carl Worth2005-05-061-4/+0
| | | | | | | cairo_set_target functions. Require a cairo_surface_t* to call cairo_create. Port to use new cairo_create interface. Rewrite all tests that were using cairo_set_target_surface to instead create a temporary cairo_t, (eventually to be replaced with cairo_begin_group).
* Minor changes to header file inclusion recommended by Oleg Smolsky for ↵Carl Worth2005-04-071-0/+1
| | | | better portability to MSVC.
* src/cairo.h src/cairo-gstate.c src/cairo-font.c: Add a cairo_font_face_t ↵Owen Taylor2005-04-071-7/+6
| | | | | | | | | | | | | | | type to hold a description of a font face. Replace cairo_set_font() with cairo_set_font_face(). src/cairoint.h src/cairo-font.c src/cairo-gstate.c: Add "cairo_simple_font_face" for family/weight/slant and use it to implement font naming for the toy API. src/cairo-ft.h src/cairo-ft-font.c cairo-win32.h cairo-win32-font.c: Switch the FreeType and Win32 backends over to using cairo_font_face_t. src/cairo.h src/cairo-font.c src/cairo-ft-font.c src/cairo-win32-font.c: Pass in font matrix and CTM separately rather than as a composite scale when creating fonts; allows removing font_matrix argument to metrics functions. src/cairoint.h src/cairo-font.c src/cairo-ft-font.c src/cairo-win32-font.c: Remove cairo_font_scale_t type, just use cairo_matrix_t and ignore translations. src/cairo-ft.h src/cairo-ft-font.c: Remove cairo_ft_font_get_pattern() -- it can't work for all FreeType backend fonts and doesn't seem particularly useful. Rename cairo_font_get_extents() to cairo_font_extents() split font functions into a separate section. Fix locking order problem. Add caches for simple font faces and from cairo_font_face_t to cairo_scaled_font_t. src/cairo.h src/cairoint.h src/cairo-font.c src/cairo-win32-font.c src/cairo-ft-font.c src/cairo-gstate.c src/cairo-gstate-private.h: Rename cairo_font_t to cairo_scaled_font_t.
* Fix line endings (reported by Hans Breuer)Owen Taylor2005-02-201-71/+71
|
* src/cairo_font.c src/cairo.h doc/public/cairo-sections.txt: Add ↵Owen Taylor2005-02-021-2/+2
| | | | | | cairo_font_extents(). src/cairo_win32_font.c src/cairo-win32.h doc/public/cairo-sections.txt: Rename cairo_font_create_for_logfont() into cairo_font_create_for_logfontw() to make clear what it takes. Don't add cairo_font_create_for_logfonta() for now.
* Add some functions to select the font into a device context with the ↵Owen Taylor2005-02-021-0/+10
| | | | | | | intention to enable callers to use, e.g, Uniscribe. Use 'hdc' not 'dc' for param/variable name. Return immediately if height or width is 0.
* Mostly-functioning Win32 font backend; no glyph paths yet.Owen Taylor2005-02-011-1/+1
| | | | | | | | | | Turn on building of the Win32 font backend. src/cairo-win32-private.h src/Makefile.am: Private header for the Win32 backend. src/cairo-win32-private.h src/cairo_win32_surface.c: Internally export _cairo_win32_print_gdi_error() for use in the font code. src/cairo-win32-private.h src/cairo_win32_surface.c: Add _cairo_win32_surface_create_dib to create a DIB surface. src/cairo-win32-private.h src/cairo_win32_surface.c: Add _cairo_surface_is_win32() Check for vasnprintf. Add a simple fixed-buffer size snprintf fallback in the absence of vasnprintf.
* src/cairo_unicode.c src/cairoint.h src/Makefile.am: Add ↵Owen Taylor2005-02-011-10/+10
| | | | | | | | | | _cairo_utf8_to_utf16(), _cairo_utf8_to_ucs4() based on code from GLib. Add CAIRO_STATUS_INVALID_STRING Use _cairo_utf8_to_ucs4(). Add cairo_bool_t Add TRUE/FALSE definitions. src/cairo.[ch] src/cairoint.h src/cairo_gstate.c: switch cairo_in_stroke/cairo_in_fill and all the functions used to implement them over to cairo_bool_t.
* configure.in src/cairo-features.h.in: Add a check for the Windows platform ↵Owen Taylor2005-01-311-0/+61
and --enable-win32. Also add some (currently always off) stubs for native Win32 fonts. Make building the PDF backend conditional on having FreeType. src/Makefile.am src/cairo_win32_surface.c src/cairo_win32_font.c src/cairo-win32.h: Add a Win32 backend using GDI and software fallbacks Font code is not yet there yet, but it works with the fontconfig backend. src/cairo_gdip_font.cpp src/cairo_gdip_surface.cpp: Remove remnants of a GDI+ based backend. Prefer platform-specific font backends to the fontconfig backend.