Solved

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

Posted on 2001-08-20
6
759 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
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 

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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Here we come across an interesting topic of coding guidelines while designing automation test scripts. The scope of this article will not be limited to QTP but to an overall extent of using VB Scripting for automation projects. Introduction Now…
This article will show, step by step, how to integrate R code into a R Sweave document
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 …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

760 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now