FreeRDP
rdtk_font.c File Reference
#include <errno.h>
#include <winpr/wtypes.h>
#include <winpr/crt.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"

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)
 

Function Documentation

◆ rdtk_embedded_font_new()

static rdtkFont* rdtk_embedded_font_new ( rdtkEngine *  engine,
const uint8_t *  imageData,
size_t  imageSize,
const uint8_t *  descriptorData,
size_t  descriptorSize 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ rdtk_font_convert_descriptor_code_to_utf8()

static int rdtk_font_convert_descriptor_code_to_utf8 ( const char *  str,
uint8_t *  utf8 
)
static
Here is the caller graph for this function:

◆ rdtk_font_draw_glyph()

static int rdtk_font_draw_glyph ( rdtkSurface *  surface,
int  nXDst,
int  nYDst,
rdtkFont *  font,
rdtkGlyph *  glyph 
)
static

RdTk: Remote Desktop Toolkit

Copyright 2014 Marc-Andre Moreau marca.nosp@m.ndre.nosp@m..more.nosp@m.au@g.nosp@m.mail..nosp@m.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.

Here is the caller graph for this function:

◆ rdtk_font_draw_text()

int rdtk_font_draw_text ( rdtkSurface *  surface,
uint16_t  nXDst,
uint16_t  nYDst,
rdtkFont *  font,
const char *  text 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ rdtk_font_engine_init()

int rdtk_font_engine_init ( rdtkEngine *  engine)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ rdtk_font_engine_uninit()

int rdtk_font_engine_uninit ( rdtkEngine *  engine)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ rdtk_font_free()

void rdtk_font_free ( rdtkFont *  font)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ rdtk_font_load_descriptor()

static int rdtk_font_load_descriptor ( rdtkFont *  font,
const char *  filename 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ rdtk_font_load_descriptor_file()

static char* rdtk_font_load_descriptor_file ( const char *  filename,
size_t *  pSize 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ rdtk_font_new()

rdtkFont* rdtk_font_new ( rdtkEngine *  engine,
const char *  path,
const char *  file 
)
Here is the call graph for this function:

◆ rdtk_font_parse_descriptor_buffer()

static int rdtk_font_parse_descriptor_buffer ( rdtkFont *  font,
uint8_t *  buffer,
size_t  size 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ rdtk_font_text_draw_size()

int rdtk_font_text_draw_size ( rdtkFont *  font,
uint16_t *  width,
uint16_t *  height,
const char *  text 
)
Here is the caller graph for this function: