⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme-win32

📁 flash播放支持库软件
💻
字号:
cairo win32 build by Maarten Breddels - dmon@xs4all.nl
-no official release! :-)

Problems:
-clipping is still buggy, might crash
-(fonts are drawn with freetype.) Instead of the FcPattern arguments,
this version uses a string(char*) argument, which is an absolute pathname
or a relative pathname minus the .ttf ext to the windows font dir.
	for the bold verdana font:
		cairo_select_font (cr, "verdanab", 0, 0);
	or
		cairo_select_font (cr, "g:\\windows\\fonts\\verdanab.ttf", 0, 0);
It's not a perfect solution, but it works for now :)

Build with:
Microsoft visual c++ 6.0
without optimization (otherwise libpixman or cairo produces weird colors)
linked with (debug) multithreaded DLL run time libraries
-freetype-2.1.8
-zlib1.2.1
-libpng1.2.5

Cairo surfaces:
3 surfaces(see include\cairo-features.h)
-CAIRO_HAS_PS_SURFACE
-CAIRO_HAS_WIN32_SURFACE
-CAIRO_HAS_PNG_SURFACE
-No glitz yet :)

How to use:
-get freetype (i used freetype-2.1.8) and add it's include dir to your
include path
-include cairo.h and link with cairo.lib when you want to use the cairo.dll,
-include cairo.h and link with cairostatic.lib, libpixman.lib, freetype.lib,
zlib.lib and libpng.lib(so you don't need any dll's)
-for debug builds, link with cairo_d.lib cairostatic_d.lib etc..
-you might want to set the run time libraries to (debug) multithreaded DLL
(see project settings c++ tab)

Added:
-void cairo_set_target_win32(cairo_t	*cr, char * title, int width, int height)
-cairo_surface_t * cairo_win32_surface_create (char* title, int width, int height);
-These are really simple win32 surface backends, which i use for testing only,
it creates a plain win32 window, on which the cairo image is blitted.
'cairo_show_page(ctx);' enters the event loop.

Files:
-All files that end with _d are debug versions.
include\cairo-features.h
include\cairo.h
include\pixman.h
include\stdint.h		- needed by pixman.h (visual c env doesn't provide
							this header)
lib\cairo.dll
lib\cairo.lib			-import lib for cairo.dll)
lib\cairostatic.lib		- static cairo library, needs to link with all other
							.libs too(freetype/zlib/libpng/libpixman))
lib\cairostatic_d.lib
lib\cairo_d.dll
lib\cairo_d.lib
lib\freetype.lib
lib\freetype_d.lib
lib\libpixman.lib
lib\libpixman_d.lib
lib\libpng.lib
lib\libpng_d.lib
lib\zlib.lib
lib\zlib_d.lib

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -