FreeRDP
|
#include <rdtk/config.h>
#include <errno.h>
#include <winpr/config.h>
#include <winpr/wtypes.h>
#include <winpr/crt.h>
#include <winpr/assert.h>
#include <winpr/path.h>
#include <winpr/file.h>
#include <winpr/print.h>
#include "rdtk_engine.h"
#include "rdtk_resources.h"
#include "rdtk_surface.h"
#include "rdtk_font.h"
Macros | |
#define | FILE_EXT "bmp" |
Functions | |
static int | rdtk_font_draw_glyph (rdtkSurface *surface, int nXDst, int nYDst, rdtkFont *font, rdtkGlyph *glyph) |
int | rdtk_font_draw_text (rdtkSurface *surface, uint16_t nXDst, uint16_t nYDst, rdtkFont *font, const char *text) |
int | rdtk_font_text_draw_size (rdtkFont *font, uint16_t *width, uint16_t *height, const char *text) |
static char * | rdtk_font_load_descriptor_file (const char *filename, size_t *pSize) |
static int | rdtk_font_convert_descriptor_code_to_utf8 (const char *str, uint8_t *utf8) |
static int | rdtk_font_parse_descriptor_buffer (rdtkFont *font, uint8_t *buffer, size_t size) |
static int | rdtk_font_load_descriptor (rdtkFont *font, const char *filename) |
rdtkFont * | rdtk_font_new (rdtkEngine *engine, const char *path, const char *file) |
static rdtkFont * | rdtk_embedded_font_new (rdtkEngine *engine, const uint8_t *imageData, size_t imageSize, const uint8_t *descriptorData, size_t descriptorSize) |
void | rdtk_font_free (rdtkFont *font) |
int | rdtk_font_engine_init (rdtkEngine *engine) |
int | rdtk_font_engine_uninit (rdtkEngine *engine) |
#define FILE_EXT "bmp" |
RdTk: Remote Desktop Toolkit
Copyright 2014 Marc-Andre Moreau marca ndre .more au@g mail. com
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
|
static |
|
static |
|
static |
int rdtk_font_draw_text | ( | rdtkSurface * | surface, |
uint16_t | nXDst, | ||
uint16_t | nYDst, | ||
rdtkFont * | font, | ||
const char * | text | ||
) |
int rdtk_font_engine_init | ( | rdtkEngine * | engine | ) |
int rdtk_font_engine_uninit | ( | rdtkEngine * | engine | ) |
void rdtk_font_free | ( | rdtkFont * | font | ) |
|
static |
|
static |
rdtkFont* rdtk_font_new | ( | rdtkEngine * | engine, |
const char * | path, | ||
const char * | file | ||
) |
|
static |
int rdtk_font_text_draw_size | ( | rdtkFont * | font, |
uint16_t * | width, | ||
uint16_t * | height, | ||
const char * | text | ||
) |