Solved

Getting Unicode from Glyph Index in Win 2K printer device driver.

Posted on 2001-08-20
6
762 Views
Last Modified: 2013-12-02
In Windows 2K Printer Device Driver I am getting Glyphs Index from ?DrvTextOut?. Is it possible to get Unicode directly instead of Glyph Index?

If we can?t get the Unicode directly is there a way of converting the Glyph Index to Unicode.

I have done conversion of the Glyph Index to Unicode in Win 9x Printer Driver by opening the font file and then going to ?cmap? table and doing the conversion. This is a tedious process.

Is there a better way of doing this in Win 2k? Are there some new functions / DDI which will facilitate my work. Basically I want to use the new functionality given by Win 2K printer Device Driver. Please reply ASAP. Its Urgent.
0
Comment
Question by:amitd
6 Comments
 

Expert Comment

by:shuklasunil
ID: 6420784
I want the font file name associated with the glyph is there a way of doing it, please help.
0
 
LVL 5

Expert Comment

by:FengYuan
ID: 6425957
amitd: if you already have the code, use it in Windows 2K too.

shulasunil: Use GetFontData to query the whole font, you donot need the font name. If you readlly need the font name, enumate all physical fonts instead, get a checksum for each, and compare with the data returned by GetFontData.

www.fengyuan.com
0
 

Accepted Solution

by:
shuklasunil earned 300 total points
ID: 6473230
Hey Guys I found the font file name and amitd you can directly get the character from "STROBJ" structure passed as a parameter. In this structure pwszOrg gives you UNICODE string. All the best!!!!
0
Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

 

Author Comment

by:amitd
ID: 6473676
Thanks a lot shuklasunil
0
 

Author Comment

by:amitd
ID: 6473679
Thanks a lot shuklasunil
0
 

Expert Comment

by:tmccotter
ID: 12536765
Hello!

I'm working on the same type of thing you were doing in 2001 and I have a similar problem.  Doesn't seem like pwszOrg always has Unicode, seems to be an index of some sort.  Any ideas?
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question