Solved

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

Posted on 2001-08-20
6
761 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
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 

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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

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.
Computer science students often experience many of the same frustrations when going through their engineering courses. This article presents seven tips I found useful when completing a bachelors and masters degree in computing which I believe may he…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

803 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