Click here to Skip to main content
15,886,362 members
Home / Discussions / C#
   

C#

 
GeneralRe: Blocking inheritance methods Pin
DaveyM6920-Jul-09 9:25
professionalDaveyM6920-Jul-09 9:25 
AnswerRe: Blocking inheritance methods [modified] Pin
PIEBALDconsult20-Jul-09 4:26
mvePIEBALDconsult20-Jul-09 4:26 
Questioncompressing bytes Pin
shekhar25839520-Jul-09 1:46
shekhar25839520-Jul-09 1:46 
AnswerRe: compressing bytes Pin
stancrm20-Jul-09 1:50
stancrm20-Jul-09 1:50 
GeneralRe: compressing bytes Pin
musefan20-Jul-09 2:15
musefan20-Jul-09 2:15 
QuestionMeasureString returning different heights for different types of text primitives Pin
Raghu56620-Jul-09 1:45
Raghu56620-Jul-09 1:45 
AnswerRe: MeasureString returning different heights for different types of text primitives Pin
Dave Kreskowiak20-Jul-09 4:30
mveDave Kreskowiak20-Jul-09 4:30 
GeneralRe: MeasureString returning different heights for different types of text primitives Pin
Raghu56621-Jul-09 2:43
Raghu56621-Jul-09 2:43 
The height calculated from MeasureString is used to find the font point size with the following formula

font point size = (adjustedPixelsPerInch) * (fontEmHeight / fontAscentAndDescention) );

adjustedPixelsPerInch = height in pixels * 0.75
0.75 is points per pix.

The problem is if i use different text primitives(say Chinese and English) of same size 100 and font type Arial regular.
While trying to render the text primitives the height calculated from MeasureString for Chinese string is higher than the English string. So the font point size that will be calculated while rendering is more than the actual 100 that has been set.
GeneralRe: MeasureString returning different heights for different types of text primitives Pin
Dave Kreskowiak21-Jul-09 14:39
mveDave Kreskowiak21-Jul-09 14:39 
AnswerDo not SPAM PinPopular
Manas Bhardwaj20-Jul-09 0:52
professionalManas Bhardwaj20-Jul-09 0:52 
GeneralRe: Do not SPAM Pin
0x3c020-Jul-09 0:54
0x3c020-Jul-09 0:54 
QuestionHow to code in for USB to serial......sending and receiving communication Pin
pallaka20-Jul-09 0:11
pallaka20-Jul-09 0:11 
AnswerRe: How to code in for USB to serial......sending and receiving communication Pin
Luc Pattyn20-Jul-09 0:40
sitebuilderLuc Pattyn20-Jul-09 0:40 
QuestionEnterprise application Development (MCPD) Pin
Abdul Rahman Hamidy20-Jul-09 0:03
Abdul Rahman Hamidy20-Jul-09 0:03 
QuestionMulti client - Server application Pin
Tej Aj19-Jul-09 23:42
Tej Aj19-Jul-09 23:42 
AnswerRe: Multi client - Server application Pin
stancrm19-Jul-09 23:58
stancrm19-Jul-09 23:58 
QuestionEvent handling Object reference error Pin
gwithey19-Jul-09 22:44
gwithey19-Jul-09 22:44 
AnswerRe: Event handling Object reference error Pin
Uri Lavi19-Jul-09 22:49
Uri Lavi19-Jul-09 22:49 
AnswerRe: Event handling Object reference error Pin
DaveyM6919-Jul-09 23:04
professionalDaveyM6919-Jul-09 23:04 
GeneralRe: Event handling Object reference error Pin
gwithey19-Jul-09 23:24
gwithey19-Jul-09 23:24 
AnswerRe: Event handling Object reference error Pin
Luc Pattyn20-Jul-09 0:46
sitebuilderLuc Pattyn20-Jul-09 0:46 
QuestionImpersonation Pin
arkiboys19-Jul-09 21:37
arkiboys19-Jul-09 21:37 
Questioncompress bytes Pin
shekhar25839519-Jul-09 21:35
shekhar25839519-Jul-09 21:35 
AnswerRe: compress bytes Pin
0x3c019-Jul-09 21:41
0x3c019-Jul-09 21:41 
QuestionMost efficient way of taking a screenshot? [modified] Pin
Trapper-Hell19-Jul-09 21:15
Trapper-Hell19-Jul-09 21:15 

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.