TsFontStore should load otf files too

Viewing 20 posts - 21 through 40 (of 42 total)
  • Author
    Posts
  • #58143
    Support
    Keymaster

    I have clicked this “List Family Names” button before a screenshoting.

    Please, ignore “Font file” field, this field was used before “List Family Names”clicking.

    Same problem in all directories.

    As I wrote above, these fonts are not working in Win 7 at all (Excel, Word do not work with these fonts).

    #58144
    HeDiBo
    Participant
    'Support' wrote:

    I have clicked this “List Family Names” button before a screenshoting.

    Please, ignore “Font file” field, this field was used before “List Family Names”clicking.

    Same problem in all directories.

    As I wrote above, these fonts are not working in Win 7 at all (Excel, Word do not work with these fonts).

    Does the test program work with other fonts, that will work in Word on Windows 7?

    #58145
    HeDiBo
    Participant

    I checked the fonts you sent me with NexusFont (https://nexusfont.nl.softonic.com/). Most fonts were produced with FontLab. Is it possible FontLab uses features that only windows 10 (or 8) understands?

    #58146
    Support
    Keymaster
    'HeDiBo' wrote:

    Does the test program work with other fonts, that will work in Word on Windows 7?

    All TTF fonts works well.

    Some OTF fonts works, but some OTF fonts are broken under Win 7.

    All OTF fonts works well under Win 10.

    #58147
    HeDiBo
    Participant
    'Support' wrote:

    All TTF fonts works well.

    Some OTF fonts works, but some OTF fonts are broken under Win 7.

    All OTF fonts works well under Win 10.

    Then we don't have a problem have we?

    You should not use the TsCharImageList with fonts you cannot read. That's obvious.

    Maybe we can determine if a font will not work in windows 7 and below. So that using such a font in TsCharImageList will cause problems later on and an appropriate warning could be given.

    But on the other hand, if the character image from the font does not need the actual font anymore, there's no problem at all.

    #58148
    HeDiBo
    Participant

    I found this article: http://www.tomshardw…-opentype-fonts

    It shows how to relieve font problems in Windows 7, that may be related to the graphics card.

    This was also very interesting: https://www.sevenforums.com/general-discussion/65308-opentype-fonts-otf-not-valid-font-2.html

    #58149
    HeDiBo
    Participant

    I completed the test program: [attachment=8819:GetSystemFontInfo.zip]

    It will now show both the font name and the family name of the font file.

    For this I used the undocumented gdi32 call GetFontResourceInfoW. Although it is undocumented, it is already part of the gdi32 dll since Windows 98.

    A good piece of description for this call can be found here: http://www.undocprin…ontresourceinfo

    #58150
    HeDiBo
    Participant

    Apparently the problem with OTF fonts and Windows 7 or 8 has something to do with Microsoft Security Update KB2753842:

    See https://articulate.c…g-or-publishing

    and http://www.pptfaq.co…s-installed.htm

    #58152
    HeDiBo
    Participant

    This is the final version of the Font Info project: [attachment=8820:GetPrivateFontInfo.zip].

    The family name is now retrieved from the LogFont structure, which can be obtained with the undocumented but always present GetFontResourceInfoW Gdi32 call

    The properties from the LogFont structure are also listed.

    The MSDN description of LogFont shows the meaning of the different values.

    #58153
    Support
    Keymaster

    Thank you.

    I'm thinking now: if developer uses Otf font in the project, he will not have guarantee for correct work of the font in all users systems.

    What to do in this case? I can't find a good universal solution.

    #58161
    HeDiBo
    Participant
    'Support' wrote:

    Thank you.

    I'm thinking now: if developer uses Otf font in the project, he will not have guarantee for correct work of the font in all users systems.

    What to do in this case? I can't find a good universal solution.

    It depends a bit on how TsFontStore works. If one of your troublesome fonts is added to the TsFontStore in Windows 10, how does is work in your Windows 7 system?

    By the way, anybody knows that exotic fonts can only be used if tested thoroughly. You cannot prevent a programmer's stupidity.

    Also, did you try the bug fixes that I found for otf fonts in Windows 7. If they work, you could alert when TsFontStore is used, that the program will only work in Windows 7/8 if certain Windows 7/8 patches are applied. There exists no universal solution for buggy Windows versions. So, I wouldn't look for any.

    #58167
    Support
    Keymaster

    I have downloaded and runned this update, but I have received that update can't be applied on my system.

    I can't say why it can't installed, my system Win7 x64, update file name is “Windows6.1-KB2753842-v2-x64.msu”

    I think, I will add a special warning label for developers in the design-time editor, but support of OTF will not be added in the nearest release.

    Latest release will be uploaded today-tomorrow.

    #58168
    HeDiBo
    Participant
    'Support' wrote:

    I have downloaded and runned this update, but I have received that update can't be applied on my system.

    I can't say why it can't installed, my system Win7 x64, update file name is “Windows6.1-KB2753842-v2-x64.msu”

    I think, I will add a special warning label for developers in the design-time editor, but support of OTF will not be added in the nearest release.

    Latest release will be uploaded today-tomorrow.

    Have you checked in installed updates, whether the update KB2753842 was already installed?

    If not, don't you think that your system has developed a problem? Maybe it should not be used then for system critical applications?

    Do you have the possibility to try the questionable fonts on another Windows 7 system with the KB2753842 applied?

    In the meantime I'll try the test program on a very very old Windows XP system, using your problematic fonts. But this takes some time, even starting it up takes several minutes.

    #58169
    HeDiBo
    Participant

    I have some bad news.

    My font program doesn't work at all in Windows XP for otf fonts. Apparently, we need a totally different approach altogether.

    I've included the NexusFont utility: [attachment=8832:Nexus Font Portable Version 2.6.2.zip]. No matter what system and no matter what font (otf or ttf) it will always retrieve the right properties. Might be interesting to test that on your crooked fonts. It might even allow you to install these fonts in Windows 7.

    Unfortunately, although it's free, it's not open source. We cannot have a peek at how this implementation works.

    This is his site: http://www.xiles.net/

    #58182
    Support
    Keymaster

    Thank you, this tool works with all fonts without problems.

    But Word or Excel can't use some Otf fonts. I will research it.

    #58380
    HeDiBo
    Participant
    'Support' wrote:

    Thank you, this tool works with all fonts without problems.

    But Word or Excel can't use some Otf fonts. I will research it.

    Any progress yet ❓

    #58396
    Support
    Keymaster

    Hi

    I see that some Otf fonts doesn't work well under some systems.

    So, correct work of all Otf fonts can't be guaranted.

    I think to add support of Otf fonts soon, but with this warning to developers.

    #58400
    HeDiBo
    Participant
    'Support' wrote:

    Hi

    I see that some Otf fonts doesn't work well under some systems.

    So, correct work of all Otf fonts can't be guaranted.

    I think to add support of Otf fonts soon, but with this warning to developers.

    The original question was about the TsCharImageList.

    Adding additional embedded fonts does not allow to select OTF fonts.

    #58420
    HeDiBo
    Participant

    TsCharImageList cannot handle OTF fonts in 14.02

    #58444
    HeDiBo
    Participant
    'HeDiBo' wrote:

    TsCharImageList cannot handle OTF fonts in 14.02

    Although TsFontStore is able to handle OTF fonts, in 14.03 TsCharImageList still cannot add an OTF font when adding an embedded font.

Viewing 20 posts - 21 through 40 (of 42 total)
  • You must be logged in to reply to this topic.