ReactOS 0.4.17-dev-970-gcf0f1a6
unixlib.h
Go to the documentation of this file.
1/*
2 * PROJECT: ReactOS dwrite DLL
3 * LICENSE: MIT (https://spdx.org/licenses/MIT)
4 * PURPOSE: ReactOS emulation layer for dwrite unixlib calls
5 * COPYRIGHT: Copyright 2026 Mikhail Tyukin <mishakeys20@gmail.com>
6 */
7
8#pragma once
9
10#include "dwrite_private.h"
11
12#define __wine_init_unix_call() 0
13#define dlclose(x) 0
14#define dlsym() 0
15
16// Define freetype functions
17#define pFT_Activate_Size FT_Activate_Size
18#define pFT_Done_Face FT_Done_Face
19#define pFT_Done_FreeType FT_Done_FreeType
20#define pFT_Done_Glyph FT_Done_Glyph
21#define pFT_Done_Size FT_Done_Size
22#define pFT_Get_First_Char FT_Get_First_Char
23#define pFT_Get_Glyph FT_Get_Glyph
24#define pFT_Get_Kerning FT_Get_Kerning
25#define pFT_Get_Sfnt_Table FT_Get_Sfnt_Table
26#define pFT_Glyph_Copy FT_Glyph_Copy
27#define pFT_Glyph_Get_CBox FT_Glyph_Get_CBox
28#define pFT_Glyph_Transform FT_Glyph_Transform
29#define pFT_Init_FreeType FT_Init_FreeType
30#define pFT_Library_Version FT_Library_Version
31#define pFT_Load_Glyph FT_Load_Glyph
32#define pFT_Matrix_Multiply FT_Matrix_Multiply
33#define pFT_MulDiv FT_MulDiv
34#define pFT_New_Memory_Face FT_New_Memory_Face
35#define pFT_New_Size FT_New_Size
36#define pFT_Outline_Copy FT_Outline_Copy
37#define pFT_Outline_Decompose FT_Outline_Decompose
38#define pFT_Outline_Done FT_Outline_Done
39#define pFT_Outline_Embolden FT_Outline_Embolden
40#define pFT_Outline_Get_Bitmap FT_Outline_Get_Bitmap
41#define pFT_Outline_New FT_Outline_New
42#define pFT_Outline_Transform FT_Outline_Transform
43#define pFT_Outline_Translate FT_Outline_Translate
44#define pFT_Set_Pixel_Sizes FT_Set_Pixel_Sizes
45
46typedef NTSTATUS (*unixlib_entry_t)( void *args );
47
48// Defined in freetype.c
51
53{
55}
56
58{
60}
61
63{
65}
66
68{
70}
71
73{
75}
76
78{
80}
81
83{
85}
86
88{
90}
91
93{
95}
96
98{
100}
101
102// Forward wine unix call to real freetype library
103#undef WINE_UNIX_CALL
104#define WINE_UNIX_CALL(code,args) __reactos_call_ ## code(args)
static int __reactos_call_unix_process_attach(PVOID args)
Definition: unixlib.h:52
static int __reactos_call_unix_get_glyph_bitmap(PVOID args)
Definition: unixlib.h:92
const unixlib_entry_t __wine_unix_call_funcs[]
Definition: freetype.c:814
static int __reactos_call_unix_get_glyph_count(PVOID args)
Definition: unixlib.h:77
const unixlib_entry_t __wine_unix_call_wow64_funcs[]
static int __reactos_call_unix_create_font_object(PVOID args)
Definition: unixlib.h:62
static int __reactos_call_unix_get_glyph_bbox(PVOID args)
Definition: unixlib.h:87
static int __reactos_call_unix_get_glyph_outline(PVOID args)
Definition: unixlib.h:72
NTSTATUS(* unixlib_entry_t)(void *args)
Definition: unixlib.h:46
static int __reactos_call_unix_get_design_glyph_metrics(PVOID args)
Definition: unixlib.h:97
static int __reactos_call_unix_release_font_object(PVOID args)
Definition: unixlib.h:67
static int __reactos_call_unix_get_glyph_advance(PVOID args)
Definition: unixlib.h:82
static int __reactos_call_unix_process_detach(PVOID args)
Definition: unixlib.h:57
#define NTSTATUS
Definition: precomp.h:19
#define args
Definition: format.c:66
Definition: match.c:390