Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2001-08-20
6
Medium Priority
?
767 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 1200 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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
In this post we will learn different types of Android Layout and some basics of an Android App.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
Six Sigma Control Plans

916 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