summaryrefslogtreecommitdiff
path: root/fonts/hershey/parse.h
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /fonts/hershey/parse.h
Initial commit
Diffstat (limited to 'fonts/hershey/parse.h')
-rw-r--r--fonts/hershey/parse.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/fonts/hershey/parse.h b/fonts/hershey/parse.h
new file mode 100644
index 0000000000..86cf96a191
--- /dev/null
+++ b/fonts/hershey/parse.h
@@ -0,0 +1,25 @@
+/*
+** The information is specified in one line per char like this:
+** '\033',2501,hoff=2,voff=1,hratio=10/14,vratio=10/14
+** The first parameter is in C char constant syntax, the
+** second is an unsigned integer.
+** hoff and voff are added to the numerator in the above
+** coordinates.
+** hratio and vratio control the size of the characters in
+** the generated font.
+**
+** Named parameters not specified default to the global
+** values which are (re)set by lines without the first two
+** parameters.
+*/
+
+typedef struct charinfo {
+ int asciiindex; /* '\0' to '\377' */
+ int hersheyindex; /* Hershey index number */
+ char *hoff,*voff; /* offset to add to origin */
+ char *hratio, *vratio; /* conversion from Hershey to mf */
+} charinfo;
+
+extern charinfo global, perchar;
+
+extern int parsespecs();