2 * FreeRDP: A Remote Desktop Protocol Implementation
4 * Copyright 2014 Marc-Andre Moreau <marcandre.moreau@gmail.com>
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
10 * http://www.apache.org/licenses/LICENSE-2.0
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
19 #ifndef FREERDP_SHADOW_SERVER_FONT_H
20 #define FREERDP_SHADOW_SERVER_FONT_H
22 #include <freerdp/server/shadow.h>
24 #include <winpr/crt.h>
25 #include <winpr/synch.h>
26 #include <winpr/image.h>
28 struct rdp_shadow_glyph
39 typedef struct rdp_shadow_glyph rdpShadowGlyph;
41 struct rdp_shadow_font
49 rdpShadowGlyph* glyphs;
56 int shadow_font_draw_text(rdpShadowSurface* surface, int nXDst, int nYDst, rdpShadowFont* font, const char* text);
57 int shadow_font_draw_glyph(rdpShadowSurface* surface, int nXDst, int nYDst, rdpShadowFont* font, rdpShadowGlyph* glyph);
59 rdpShadowFont* shadow_font_new(const char* path, const char* file);
60 void shadow_font_free(rdpShadowFont* font);
66 #endif /* FREERDP_SHADOW_SERVER_FONT_H */