Click here to Skip to main content
14,325,629 members

C / C++ / MFC

 
AnswerRe: Break when address reading Pin
leon de boer10-Sep-18 2:12
memberleon de boer10-Sep-18 2:12 
GeneralRe: Break when address reading Pin
Member 1308136910-Sep-18 15:49
memberMember 1308136910-Sep-18 15:49 
AnswerRe: Break when address reading Pin
Richard Andrew x6410-Sep-18 8:17
professionalRichard Andrew x6410-Sep-18 8:17 
GeneralRe: Break when address reading Pin
Member 1308136910-Sep-18 15:50
memberMember 1308136910-Sep-18 15:50 
AnswerRe: Break when address reading Pin
«_Superman_»23-Sep-18 22:30
professional«_Superman_»23-Sep-18 22:30 
Questionconfusion about fonts in Windows Pin
Alexander Kindel6-Sep-18 8:43
memberAlexander Kindel6-Sep-18 8:43 
AnswerRe: confusion about fonts in Windows Pin
leon de boer6-Sep-18 17:12
memberleon de boer6-Sep-18 17:12 
GeneralRe: confusion about fonts in Windows Pin
Alexander Kindel6-Sep-18 18:21
memberAlexander Kindel6-Sep-18 18:21 
This does clarify some of the questions I would otherwise have asked already. With that, I'll go into the specific scenario I'm dealing with: I'm working on a music notation program, which will be getting its music symbols from a font. (For now it will involve drawing symbols to the screen, so looks like that makes display device contexts the relevant ones.) I have installed the Bravura font, and would like to use it for this purpose. The first difficulty is the proper way to select it. My understanding is that what I installed is an example of what MSDN calls a physical font, and there is no way to select a physical font directly, all font selection instead involving specifying a set of properties one wants the font to have, then allowing Windows to find the physical font that most closely matches those properties from among those available to the device in question. Is that right?

I had no idea what values I would need to specify for most of the parameters of CreateFont in order for the font mapper to find Bravura as a match. The cHeight and cWidth parameters are especially confusing for reasons I'll get back to, but many of the other parameters are too, given that they seem to be text-specific, while my font isn't used for text. So instead I called EnumFonts. I assume it's possible for this function to find more than one match for the given typeface name, but am unsure about the implications of the number of matches it finds. I believe my font should be one that can be scaled freely to different sizes. Would one expect EnumFonts to call the callback specified by the lpProc parameter once for every possible size such a font can be rendered in? Or, if it calls the callback only once (which is what happened for me), what do the lfHeight and lfWidth fields of the LOGFONT struct passed to it indicate, if not that the font can only be rendered at that one (logical-unit) size after all?

I have still more questions after this, but it will be easier to check whether I'm in the right ballpark with what I've said so far first.

modified 7-Sep-18 0:32am.

GeneralRe: confusion about fonts in Windows Pin
leon de boer7-Sep-18 8:41
memberleon de boer7-Sep-18 8:41 
GeneralRe: confusion about fonts in Windows Pin
Alexander Kindel11-Sep-18 13:24
memberAlexander Kindel11-Sep-18 13:24 
AnswerRe: confusion about fonts in Windows Pin
Richard Andrew x649-Sep-18 8:17
professionalRichard Andrew x649-Sep-18 8:17 
GeneralRe: confusion about fonts in Windows Pin
leon de boer9-Sep-18 18:04
memberleon de boer9-Sep-18 18:04 
Questionneed help with unix commands Pin
Member 139744595-Sep-18 13:24
memberMember 139744595-Sep-18 13:24 
AnswerRe: need help with unix commands Pin
Peter_in_27805-Sep-18 19:49
professionalPeter_in_27805-Sep-18 19:49 
AnswerRe: need help with unix commands Pin
Richard MacCutchan5-Sep-18 21:59
protectorRichard MacCutchan5-Sep-18 21:59 
QuestionRe: need help with unix commands Pin
David Crow6-Sep-18 5:45
memberDavid Crow6-Sep-18 5:45 
AnswerRe: need help with unix commands Pin
jeron16-Sep-18 6:31
memberjeron16-Sep-18 6:31 
AnswerRe: need help with unix commands Pin
Richard MacCutchan6-Sep-18 7:04
protectorRichard MacCutchan6-Sep-18 7:04 
QuestionUnable to receive custom Ethernet frame Pin
Donnie_Song1-Sep-18 16:45
memberDonnie_Song1-Sep-18 16:45 
SuggestionRe: Unable to receive custom Ethernet frame Pin
Richard MacCutchan1-Sep-18 21:58
protectorRichard MacCutchan1-Sep-18 21:58 
GeneralRe: Unable to receive custom Ethernet frame Pin
Donnie_Song1-Sep-18 22:04
memberDonnie_Song1-Sep-18 22:04 
GeneralRe: Unable to receive custom Ethernet frame Pin
Richard MacCutchan1-Sep-18 22:43
protectorRichard MacCutchan1-Sep-18 22:43 
GeneralRe: Unable to receive custom Ethernet frame Pin
Donnie_Song1-Sep-18 23:06
memberDonnie_Song1-Sep-18 23:06 
GeneralRe: Unable to receive custom Ethernet frame Pin
Victor Nijegorodov1-Sep-18 23:19
memberVictor Nijegorodov1-Sep-18 23:19 
GeneralRe: Unable to receive custom Ethernet frame Pin
Richard MacCutchan1-Sep-18 23:25
protectorRichard MacCutchan1-Sep-18 23:25 

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.