Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2001-08-20
6
Medium Priority
?
766 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Technology Partners: 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!

 

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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
What do responsible coders do? They don't take detrimental shortcuts. They do take reasonable security precautions, create important automation, implement sufficient logging, fix things they break, and care about users.
Six Sigma Control Plans
Starting up a Project

670 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