FreeRDP
rdtk_font.c File Reference
#include <errno.h>
#include <winpr/wtypes.h>
#include <winpr/crt.h>
#include <winpr/path.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, int nXDst, int nYDst, rdtkFont *font, const char *text)
 
int rdtk_font_text_draw_size (rdtkFont *font, int *width, int *height, const char *text)
 
static char * rdtk_font_load_descriptor_file (const char *filename, int *pSize)
 
static int rdtk_font_convert_descriptor_code_to_utf8 (const char *str, BYTE *utf8)
 
static int rdtk_font_parse_descriptor_buffer (rdtkFont *font, BYTE *buffer, int 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, BYTE *imageData, int imageSize, BYTE *descriptorData, int descriptorSize)
 
void rdtk_font_free (rdtkFont *font)
 
int rdtk_font_engine_init (rdtkEngine *engine)
 
int rdtk_font_engine_uninit (rdtkEngine *engine)
 

Function Documentation

static rdtkFont* rdtk_embedded_font_new ( rdtkEngine *  engine,
BYTE imageData,
int  imageSize,
BYTE descriptorData,
int  descriptorSize 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static int rdtk_font_convert_descriptor_code_to_utf8 ( const char *  str,
BYTE utf8 
)
static

Here is the caller graph for this function:

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:

int rdtk_font_draw_text ( rdtkSurface *  surface,
int  nXDst,
int  nYDst,
rdtkFont *  font,
const char *  text 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int rdtk_font_engine_init ( rdtkEngine *  engine)

Here is the call graph for this function:

Here is the caller graph for this function:

int rdtk_font_engine_uninit ( rdtkEngine *  engine)

Here is the call graph for this function:

Here is the caller graph for this function:

void rdtk_font_free ( rdtkFont *  font)

Here is the call graph for this function:

Here is the caller graph for this function:

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:

static char* rdtk_font_load_descriptor_file ( const char *  filename,
int *  pSize 
)
static

Here is the caller graph for this function:

rdtkFont* rdtk_font_new ( rdtkEngine *  engine,
const char *  path,
const char *  file 
)

Here is the call graph for this function:

static int rdtk_font_parse_descriptor_buffer ( rdtkFont *  font,
BYTE buffer,
int  size 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

int rdtk_font_text_draw_size ( rdtkFont *  font,
int *  width,
int *  height,
const char *  text 
)

Here is the caller graph for this function: