#include <config.h>
#include <stdlib.h>
#include "mdvi.h"
#include "private.h"
Go to the source code of this file.
|
void | vf_free_macros (DviFont *) |
|
int | font_reopen (DviFont *font) |
|
static int | load_font_file (DviParams *params, DviFont *font) |
|
void | font_drop_one (DviFontRef *ref) |
|
void | font_drop_chain (DviFontRef *head) |
|
int | font_free_unused (DviDevice *dev) |
|
DviFontRef * | font_reference (DviParams *params, Int32 id, const char *name, Int32 sum, int hdpi, int vdpi, Int32 scale) |
|
void | font_transform_glyph (DviOrientation orient, DviGlyph *g) |
|
static int | load_one_glyph (DviContext *dvi, DviFont *font, int code) |
|
DviFontChar * | font_get_glyph (DviContext *dvi, DviFont *font, int code) |
|
void | font_reset_one_glyph (DviDevice *dev, DviFontChar *ch, int what) |
|
void | font_reset_font_glyphs (DviDevice *dev, DviFont *font, int what) |
|
void | font_reset_chain_glyphs (DviDevice *dev, DviFontRef *head, int what) |
|
static int | compare_refs (const void *p1, const void *p2) |
|
void | font_finish_definitions (DviContext *dvi) |
|
DviFontRef * | font_find_flat (DviContext *dvi, Int32 id) |
|
DviFontRef * | font_find_mapped (DviContext *dvi, Int32 id) |
|
#define finfo search.info |
#define TYPENAME |
( |
|
font) | |
((font)->finfo ? (font)->finfo->name : "none") |
static int compare_refs |
( |
const void * |
p1, |
|
|
const void * |
p2 |
|
) |
| |
|
static |
Definition at line 104 of file font.c.
108 for(; (ptr = head); ) {
Definition at line 73 of file font.c.
84 if(--font->
links == 0) {
Definition at line 465 of file font.c.
473 if(dvi->
fonts == NULL) {
478 for(count = 0, ref = dvi->
fonts; ref; ref = ref->
next)
Definition at line 114 of file font.c.
140 if(font->finfo->freedata)
141 font->finfo->freedata(font);
Definition at line 346 of file font.c.
360 if(font->
chars == NULL) {
371 font->finfo->getglyph == NULL ||
392 font->finfo->shrink1(dvi, font, ch, &ch->
grey);
394 font->finfo->shrink0(dvi, font, ch, &ch->
shrunk);
Definition at line 155 of file font.c.
172 && font->
hdpi == hdpi
173 && font->
vdpi == vdpi
174 && font->
scale == scale)
192 for(subfont_ref = font->
subfonts; subfont_ref; subfont_ref = subfont_ref->
next) {
Definition at line 35 of file font.c.
38 fseek(font->
in, (
long)0, SEEK_SET);
39 else if((font->
in = fopen(font->
filename,
"rb")) == NULL) {
Definition at line 452 of file font.c.
456 for(ref = head; ref; ref = ref->
next)
Definition at line 423 of file font.c.
441 if(font->finfo->getglyph == NULL)
444 for(ch = font->
chars, i = font->
loc; i <= font->hic; ch++, i++) {
448 if((what & MDVI_FONTSEL_GLYPH) && font->finfo->reset)
449 font->finfo->reset(font);
Definition at line 48 of file font.c.
60 status = font->finfo->load(params, font);
69 font->
fontname, status < 0 ?
"Error" :
"Ok"));
Definition at line 270 of file font.c.
281 if(font->finfo->getglyph == NULL) {
286 status = font->finfo->getglyph(&dvi->
params, font, code);
295 "%s: new %s bitmap for character %d:\n",
304 if(!font->finfo->scalable && font->
hdpi != font->
vdpi) {
311 if(ch->
width && ch->
height && (hs > 1 || vs > 1)) {
316 "%s: scaling glyph %d to resolution %dx%d\n",
325 font->finfo->shrink0(dvi, font, ch, &glyph);
char* _mdvi_fallback_font |