Click here to Skip to main content
15,894,410 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Font Pin
kumar sanghvi29-Jul-09 18:42
kumar sanghvi29-Jul-09 18:42 
GeneralRe: Font Pin
CPallini29-Jul-09 22:33
mveCPallini29-Jul-09 22:33 
QuestionResizing animations/images Pin
m_1729-Jul-09 2:44
m_1729-Jul-09 2:44 
AnswerRe: Resizing animations/images Pin
Maximilien29-Jul-09 2:57
Maximilien29-Jul-09 2:57 
GeneralRe: Resizing animations/images Pin
m_1729-Jul-09 3:12
m_1729-Jul-09 3:12 
AnswerRe: Resizing animations/images [modified] Pin
Adam Roderick J29-Jul-09 3:11
Adam Roderick J29-Jul-09 3:11 
GeneralRe: Resizing animations/images Pin
m_1729-Jul-09 18:50
m_1729-Jul-09 18:50 
QuestionHow do I get the correct font height in Hindi fonts? Pin
Gywox29-Jul-09 2:11
Gywox29-Jul-09 2:11 
Hi, I want to draw a Hindi text with a bounding box around. Sample text "मैं हिन्दी नहीं बोल सकता हूँ।".
The problem is the last character with dependent vowel sign, the method misses the bottom part of the text.
0x0939, 0x0942, 0x0901 (devanagari letter ha, vowel sign uu, sign candrabindu)

C# code sample
string text = "मैं हिन्दी नहीं बोल सकता हूँ।";
Font font = new Font("Tahoma", 20.0f, FontStyle.Regular);
SizeF layoutArea = new SizeF(1000, 1000);
StringFormat stringFormat = new StringFormat();
SizeF measure = g.MeasureString(text, font, layoutArea, stringFormat);
g.DrawRectangle(Pens.Red, new Rectangle(50, 50, (int)measure.Width, (int)measure.Height));
g.DrawString(text, font, Brushes.Black, 50, 50);

I have also tried C++ functions GetTextExtentPoint32(), GetTextMetrics() and GetOutlineTextMetrics() to get the correct height but failed.

Any suggestions?
Thanks in advance,
Gywox
AnswerRe: How do I get the correct font height in Hindi fonts? [modified] Pin
Adam Roderick J29-Jul-09 2:27
Adam Roderick J29-Jul-09 2:27 
AnswerRe: How do I get the correct font height in Hindi fonts? Pin
Iain Clarke, Warrior Programmer29-Jul-09 2:54
Iain Clarke, Warrior Programmer29-Jul-09 2:54 
GeneralRe: How do I get the correct font height in Hindi fonts? Pin
Adam Roderick J29-Jul-09 3:03
Adam Roderick J29-Jul-09 3:03 
GeneralRe: How do I get the correct font height in Hindi fonts? Pin
Gywox29-Jul-09 4:42
Gywox29-Jul-09 4:42 
QuestionHow to GetHandle of Windows from Resource ID in ATL COM Pin
am 200929-Jul-09 1:43
am 200929-Jul-09 1:43 
AnswerRe: How to GetHandle of Windows from Resource ID in ATL COM Pin
Adam Roderick J29-Jul-09 1:55
Adam Roderick J29-Jul-09 1:55 
AnswerRe: How to GetHandle of Windows from Resource ID in ATL COM Pin
Iain Clarke, Warrior Programmer29-Jul-09 2:55
Iain Clarke, Warrior Programmer29-Jul-09 2:55 
QuestionHow to control other non-focus application? Pin
audi0229-Jul-09 1:12
audi0229-Jul-09 1:12 
AnswerRe: How to control other non-focus application? Pin
Adam Roderick J29-Jul-09 1:41
Adam Roderick J29-Jul-09 1:41 
GeneralRe: How to control other non-focus application? Pin
audi0229-Jul-09 9:59
audi0229-Jul-09 9:59 
QuestionRe: How to control other non-focus application? Pin
audi023-Aug-09 22:49
audi023-Aug-09 22:49 
QuestionCreating a Data stream Pin
VCProgrammer29-Jul-09 0:55
VCProgrammer29-Jul-09 0:55 
AnswerRe: Creating a Data stream Pin
Iain Clarke, Warrior Programmer29-Jul-09 2:59
Iain Clarke, Warrior Programmer29-Jul-09 2:59 
QuestionHow to display the OpenCV image in CView (MFC) PinPopular
Sonhye Aui28-Jul-09 23:56
Sonhye Aui28-Jul-09 23:56 
QuestionHow to set proxy with xmlhttprequest Pin
Ash_VCPP28-Jul-09 23:30
Ash_VCPP28-Jul-09 23:30 
QuestionCHttpFile::SendRequest problem Pin
msn9228-Jul-09 22:29
msn9228-Jul-09 22:29 
AnswerRe: CHttpFile::SendRequest problem Pin
msn9228-Jul-09 22:58
msn9228-Jul-09 22:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.