locked
OTF->Why it can be used in Windows 8 ,but can not be used in Windows 7 RRS feed

  • Question

  • In windows7, I use VS2012  to create a project, and use fontdialog to select a otf ,but when proceed to if (DialogResult.OK == fontDialog.ShowDialog()),like "only trueType are supported, this is not treType " error message dispalyed. But when I use window8, this error did not displayed, and can be displayed with selected open type font.

    So I want to ask you ,does it related to OS or others whether OTF can be used or not.

    The same example, I set font for a label as label1.Font = new Font("A-OTF Pretty Momo Std Bold", 12, FontStyle.Regular);

    But it can not be display as "A-OTF Pretty Momo Std Bold" in Windows7, and can be displayed as "A-OTF Pretty Momo Std Bold",  in Windows8.

    Wednesday, September 2, 2015 6:31 AM

Answers

  • An OpenType font (OTF) file contains data, in table format, that comprises either a TrueType or a PostScript outline font. Rasterizers use combinations of data from the tables contained in the font to render the TrueType or PostScript glyph outlines. Some of this supporting data is used no matter which outline format is used; some of the supporting data is specific to either TrueType or PostScript. OTF specification also differs with Windows version, as due to changing standards due to emerging technologies. Hence, Windows 8 has better compatibility and rendering of OTF than Windows 7. So some OTF are much more compatible Windows 8, being rendering the font as TrueType, whereas in Windows 7, such fonts may still be rendered as PostScript throwing error which you see.

    The following links will be helpful:

    https://www.microsoft.com/typography/otspec/otff.htm

    https://www.microsoft.com/typography/otspec/

    https://en.wikipedia.org/wiki/OpenType

    For more information on modifying your code, kindly post your query at the MSDN forums.


    Balaji Kundalam


    Wednesday, September 9, 2015 5:10 AM

All replies

  • VS 2012 is neither a part of Windows nor a feature of Windows.  VS 2012 is a stand alone application with its own dedicated support forums.

    Start by going to the Visual Studio 2012 webpage and post in the appropriate support forum for assistance with your application development. 


    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”

    • Proposed as answer by _Charles_ Friday, September 4, 2015 2:34 AM
    • Unproposed as answer by isaxlj Sunday, September 6, 2015 9:41 AM
    Wednesday, September 2, 2015 11:40 AM
  • An OpenType font (OTF) file contains data, in table format, that comprises either a TrueType or a PostScript outline font. Rasterizers use combinations of data from the tables contained in the font to render the TrueType or PostScript glyph outlines. Some of this supporting data is used no matter which outline format is used; some of the supporting data is specific to either TrueType or PostScript. OTF specification also differs with Windows version, as due to changing standards due to emerging technologies. Hence, Windows 8 has better compatibility and rendering of OTF than Windows 7. So some OTF are much more compatible Windows 8, being rendering the font as TrueType, whereas in Windows 7, such fonts may still be rendered as PostScript throwing error which you see.

    The following links will be helpful:

    https://www.microsoft.com/typography/otspec/otff.htm

    https://www.microsoft.com/typography/otspec/

    https://en.wikipedia.org/wiki/OpenType

    For more information on modifying your code, kindly post your query at the MSDN forums.


    Balaji Kundalam


    Wednesday, September 9, 2015 5:10 AM