<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
Dear Tex-K Mailing List:<BR>
&nbsp;<BR>
I'm currently writing an open-source&nbsp;DVI previewer that will suit my own eccentric needs.&nbsp; It's going really well.&nbsp; I wanted to incorporate KPathSea functions into it, because I've heard such great things about that library, but I'm a little confused:<BR>
&nbsp;<BR>
How does one find the format of a given fontname that one reads from a DVI file?&nbsp; Do I have to set up my own hash table in my program that matches font names to file formats? <BR>
&nbsp;<BR>
For instance, I'm testing my previewer on a DVI file that uses the pcrr7t font file.&nbsp; Now, after running a "find . -name pcrr7t.*" in the fonts directory I concluded it was a Virtual Font file, but does KPathSea have a special function that will search some file database file or config file which matches font file names (as retrieved from DVI files) with their format type?&nbsp; I guess I could always do a manual search in the ls-R file in /var/lib/texmf, but then I wouldn't need to run kpse_find_{format}.&nbsp; I guess I could also run a find command as a system call, but then my program wouldn't be portable for Windows, and would perhaps be slightly less efficient.&nbsp; &nbsp; <BR>
&nbsp;<BR>
Any help would be appreciated!<BR>
&nbsp;<BR>
-Daniel Wyckoff<BR><br /><hr />See how Windows connects the people, information, and fun that are part of your life. <a href='http://clk.atdmt.com/MRT/go/msnnkwxp1020093175mrt/direct/01/' target='_new'>See Now</a></body>
</html>