the ‘face name’ is not necessarily the same as the file name, although if the Windows 7 font folder in the control panel shows your font as ‘Myfont regular’ than it looks like your face name is indeed MyFont.
Normally in windows programs (at least in C/C++ and probably in other languages) you ask for a font by face name rather than by file name (and you don’t include the automatically added ‘regular’ bit - you just don’t ask for bold or italic). However in C++, when you call the Windows CreateFont() or CreateFontIndirect() API to load a font, you have to specify a whole host of parameters in addition to the face name, and (perversely perhaps) some of them are given higher priority than the actual face name, so it is as well to specify not only the face name but also other font parameters to match your font correctly. In some cases it can take a bit of experimentation!
David
Thank you
You did not answer my question directly but certainly gave me a GREAT direction.
FYI - I am using an older version if iText to create pdf documents.
Strangely, in the create font call, they use the file name. This definitely works but when I open the pdf in AI CS6, it does not see the font file.
Now with your info, I am suspecting I am missing somethng in iText.
Will look tomorrow.