summaryrefslogtreecommitdiff
path: root/rufl_substitution_lookup.c
diff options
context:
space:
mode:
Diffstat (limited to 'rufl_substitution_lookup.c')
-rw-r--r--rufl_substitution_lookup.c32
1 files changed, 0 insertions, 32 deletions
diff --git a/rufl_substitution_lookup.c b/rufl_substitution_lookup.c
deleted file mode 100644
index fba76aa..0000000
--- a/rufl_substitution_lookup.c
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * This file is part of RUfl
- * Licensed under the MIT License,
- * http://www.opensource.org/licenses/mit-license
- * Copyright 2005 James Bursa <james@semichrome.net>
- */
-
-#include "rufl_internal.h"
-
-
-/**
- * Look up a character in the substitution table.
- *
- * \param c character to look up
- * \return font number containing the character, or NOT_AVAILABLE
- */
-
-unsigned int rufl_substitution_lookup(unsigned int c)
-{
- unsigned int block = c >> 8;
-
- if (256 < block)
- return NOT_AVAILABLE;
-
- if (rufl_substitution_table->index[block] == BLOCK_NONE_AVAILABLE)
- return NOT_AVAILABLE;
- else {
- return rufl_substitution_table->block
- [rufl_substitution_table->index[block]]
- [c & 255];
- }
-}