36 lines
1.1 KiB
Nim
36 lines
1.1 KiB
Nim
#
|
|
# Translation of cairo-ft.h
|
|
# by Jeffrey Pohlmeyer
|
|
# updated to version 1.4 by Luiz Américo Pereira Câmara 2007
|
|
#
|
|
|
|
import
|
|
cairo, freetypeh
|
|
|
|
include "cairo_pragma.nim"
|
|
#todo: properly define FcPattern:
|
|
#It will require translate FontConfig header
|
|
|
|
#*
|
|
#typedef struct _XftPattern {
|
|
# int num;
|
|
# int size;
|
|
# XftPatternElt *elts;
|
|
# } XftPattern;
|
|
# typedef FcPattern XftPattern;
|
|
#
|
|
|
|
type
|
|
FcPattern* = Pointer
|
|
PFcPattern* = ptr FcPattern
|
|
|
|
proc ft_font_face_create_for_pattern*(pattern: PFcPattern): PFontFace{.libcairo,
|
|
importc: "cairo_ft_font_face_create_for_pattern".}
|
|
proc ft_font_options_substitute*(options: PFontOptions, pattern: PFcPattern){.
|
|
libcairo, importc: "cairo_ft_font_options_substitute".}
|
|
proc ft_font_face_create_for_ft_face*(face: TFT_Face, load_flags: int32): PFontFace{.libcairo,
|
|
importc: "cairo_ft_font_face_create_for_ft_face".}
|
|
proc ft_scaled_font_lock_face*(scaled_font: PScaledFont): TFT_Face{.libcairo,
|
|
importc: "cairo_ft_scaled_font_lock_face".}
|
|
proc ft_scaled_font_unlock_face*(scaled_font: PScaledFont){.libcairo,
|
|
importc: "cairo_ft_scaled_font_unlock_face".}
|