TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Steve Stovold
NA
3
0
Using GetCharABCWidthsFloatA
Apr 28 2008 4:36 PM
Ok, so basically I am trying to retrieve character metrics from a font so I can perform a number of calculations on this.
I have found this in the API documentation:
[DllImport("gdi32", EntryPoint = "GetCharABCWidthsFloat")]
public static extern bool GetCharABCWidthsFloatA(int hDC, int iFirstChar, int iLastChar, ref ABCFLOAT lpABCF);
My question is, how exactly do I tell this function what font I want it to look at, and what characters I want the metrics for. I'm using VS C#.NET 2005, first time i've had to call an external API though. A code snippet would be much appreciated.
Reply
Answers (
0
)
Form with Master and detail
Problem using webclient : (illegal characters in Path) error