Modify

#2975 closed Feature Request (No Bug)

_WinAPI_GetFontResourceInfo return only the first 31 characters from font name

Reported by: ffdshow Owned by:
Milestone: Component: AutoIt
Version: Severity: None
Keywords: Cc:

Description

I started to rename some fonts using their name retrieved by _WinAPI_GetFontResourceInfo function. The function returns only the first 31 characters (from the left to the right as I saw when I opened several fonts in Notepad2) and removed the space characters from names. Double clicking on fonts in Windows 8.1, seems to reveal the names with space characters included, but it's incomplete too.
I opened several fonts in Notepad2 and in generally, the font name is on the left of the word 'version'.
This is not a bug report, it's rather a feature request for a complete name of fonts.
Thanks!

Attachments (0)

Change History (6)

comment:1 by TicketCleanup, on Jan 25, 2015 at 12:00:01 AM

Version: 3.3.12.0

Automatic ticket cleanup.

comment:2 by ffdshow, on Jan 25, 2015 at 12:01:41 AM

I just saw that Windows retrieve 31 characters for file name too.

comment:3 by Jpm, on Jan 28, 2015 at 9:14:45 AM

The question is what is the undocumented or perhaps a documented one that can do the job

You may notice that this UDF is using an undocumented API ...

comment:4 by Jpm, on Jan 28, 2015 at 10:28:51 AM

Checking again I don't see your problem as I can list such font
Just run the example from the help file
I get "Copperplate Gothic Bold Condensed BT" from COPGOTBC.TTF Under Windows8.1

comment:5 by anonymous, on Jan 28, 2015 at 7:55:06 PM

It looks like I did a mistake. I downloaded COPGOTBC.TTF, because I didn't have it installed in Windows 8.1 and run the script, which return the full name of the font (37 characters). The problem was that all fonts I have don't have spaces in their internal full names and that gave me doubts regarding _WinAPI_GetFontResourceInfo function.
Thanks!

comment:6 by Jpm, on Feb 15, 2015 at 8:40:31 AM

Resolution: No Bug
Status: newclosed

Modify Ticket

Action
as closed The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.