Skip to main content

Hi all,

What's the easiest way for an MF cobol program to check a font is present on a Windows (7, 10) PC or Windows Server (2008/2012).  My environment is Visual Studio 15, Visual COBOL v3 - compiling to native windows .exe i.e. not .net. 

Thanks,

Linden

Hi all,

What's the easiest way for an MF cobol program to check a font is present on a Windows (7, 10) PC or Windows Server (2008/2012).  My environment is Visual Studio 15, Visual COBOL v3 - compiling to native windows .exe i.e. not .net. 

Thanks,

Linden

Linden,

What you will need to do to return the installed fonts is make calls to the relevant Windows APIs such as EnumFontFamiliesEx

Gael

Hi all,

What's the easiest way for an MF cobol program to check a font is present on a Windows (7, 10) PC or Windows Server (2008/2012).  My environment is Visual Studio 15, Visual COBOL v3 - compiling to native windows .exe i.e. not .net. 

Thanks,

Linden

ok thanks Gael. I guess I was hoping there would be a simpler way of just asking if a particular font was valid or not but sounds like I need to do it the hard way!