add_library(gvplugin_gd SHARED
# Source files
gdioctx_wrapper.h
+ gdgen_text.h
gvdevice_gd.c
gvloadimage_gd.c
gvplugin_gd.c
endif
endif
-noinst_HEADERS = gdioctx_wrapper.h
+noinst_HEADERS = gdioctx_wrapper.h gdgen_text.h
libgvplugin_gd_C_la_SOURCES = \
gvplugin_gd.c \
gvrender_gd.c \
--- /dev/null
+#pragma once
+
+#include <common/geom.h>
+#include <gd.h>
+
+void gdgen_text(gdImagePtr im, pointf spf, pointf epf, int fontcolor,
+ double fontsize, int fontdpi, double fontangle, char *fontname,
+ char *str);
copy $(SolutionDir)windows\dependencies\libraries\x86\bin\pixman-1.dll $(OutDir)pixman-1.dll</Command>
</PostBuildEvent>
</ItemDefinitionGroup>
+ <ItemGroup>
+ <ClInclude Include="gdgen_text.h" />
+ </ItemGroup>
<ItemGroup>
<ClCompile Include="gvdevice_gd.c" />
<ClCompile Include="gvloadimage_gd.c" />
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
</Filter>
</ItemGroup>
+ <ItemGroup>
+ <ClInclude Include="gdgen_text.h" />
+ </ItemGroup>
<ItemGroup>
<ClCompile Include="gvdevice_gd.c">
<Filter>Source Files</Filter>
#include "config.h"
#include "gdioctx_wrapper.h"
-
+#include "gdgen_text.h"
#include <stdbool.h>
#include <stdlib.h>
#include <stdint.h>
#include "config.h"
-
+#include "gdgen_text.h"
#include <stdlib.h>
#include <stddef.h>
#include <string.h>
gvputs(job, "] }\n");
}
-extern void gdgen_text(gdImagePtr im, pointf spf, pointf epf, int fontcolor, double fontsize, int fontdpi, double fontangle, char *fontname, char *str);
-
static void vrml_textspan(GVJ_t *job, pointf p, textspan_t * span)
{
obj_state_t *obj = job->obj;