#include <config.h>
#include "mdvi.h"
#include <kpathsea/tex-file.h>
#include <kpathsea/tex-glyph.h>
Go to the source code of this file.
|
static void | init_font_classes (void) |
|
int | mdvi_get_font_classes (void) |
|
char ** | mdvi_list_font_class (int klass) |
|
int | mdvi_register_font_type (DviFontInfo *info, int klass) |
|
int | mdvi_unregister_font_type (const char *name, int klass) |
|
static char * | lookup_font (DviFontClass *ptr, const char *name, Ushort *h, Ushort *v) |
|
char * | mdvi_lookup_font (DviFontSearch *search) |
|
DviFont * | mdvi_add_font (const char *name, Int32 sum, int hdpi, int vdpi, Int32 scale) |
|
int | mdvi_font_retry (DviParams *params, DviFont *font) |
|
#define HAVE_PROTOTYPES 1 |
static void init_font_classes |
( |
void |
) | |
|
|
static |
Definition at line 169 of file fontsrch.c.
180 kpse_glyph_file_type type;
182 filename = kpse_find_glyph(
name,
Max(*h, *v),
185 if(filename && type.source == kpse_glyph_source_fallback) {
DviFont* mdvi_add_font |
( |
const char * |
name, |
|
|
Int32 |
sum, |
|
|
int |
hdpi, |
|
|
int |
vdpi, |
|
|
Int32 |
scale |
|
) |
| |
int mdvi_get_font_classes |
( |
void |
) | |
|
char** mdvi_list_font_class |
( |
int |
klass) | |
|
Definition at line 86 of file fontsrch.c.
99 for(i = 0; i < n; fc = fc->
next, i++) {
Definition at line 199 of file fontsrch.c.
205 char *filename = NULL;
212 if(search->
curr == NULL) {
230 for(k = kid; !filename && k <
MAX_CLASS-1; k++) {
237 k, name, hdpi, vdpi, ptr->
info.
name));
246 if(filename != NULL) {
258 mdvi_warning(
"font `%s' at %dx%d not found, trying `%s' instead\n",
270 if(kid == MAX_CLASS-1) {
278 mdvi_warning(
"font `%s' not found, trying metric files instead\n",
292 if(filename != NULL) {
296 search->
id = MAX_CLASS - 1;
306 mdvi_warning(
"metric file for `%s' not found, trying `%s' instead\n",
int mdvi_register_font_type |
( |
DviFontInfo * |
info, |
|
|
int |
klass |
|
) |
| |
int mdvi_unregister_font_type |
( |
const char * |
name, |
|
|
int |
klass |
|
) |
| |
Definition at line 133 of file fontsrch.c.
147 }
else if(klass < 0) {
158 if(fc == NULL || fc->
links)