Click here to Skip to main content
15,861,168 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Break when address reading Pin
Member 1308136910-Sep-18 15:45
Member 1308136910-Sep-18 15:45 
AnswerRe: Break when address reading Pin
leon de boer10-Sep-18 2:12
leon de boer10-Sep-18 2:12 
GeneralRe: Break when address reading Pin
Member 1308136910-Sep-18 15:49
Member 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
Member 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
Alexander Kindel6-Sep-18 8:43 
AnswerRe: confusion about fonts in Windows Pin
leon de boer6-Sep-18 17:12
leon de boer6-Sep-18 17:12 
This is no standard use of what the word font means, it means different things to different people. Typeface is a term with far more precision because it comes from the print industry and the general public would rarely use the word.

That said, Windows deals with two main classes of fonts by which they really mean file types. They have bitmap fonts (sometimes called screen fonts or raster fonts) and they have scaleable fonts (sometimes called vector fonts).

So specifically when you are installing a font either of your statements could be true. If you are installing a raster/bitmap font file then you will get the size it represents as pixels in the file and optionally a limited number of scaled sizes. If you are installing a truetype, adobe or postscript vector font you get full the typeface and the ability to scale any size you like.

To make matters more confusing Windows carries a system called cleartype which may or may not be in use by a program. Cleartype is a subpixel render that when you re-scale a font and it is converted to raster (bitmap) for the final display, it makes decisions about those pixels on the boundary that are partially in and out. It doesn't make the crass blank decision that if 50% or more is inside then it turns the pixel on. It uses shading and hints built into the font to make the decision instead.

Then finally in windows there is a further complication that all of what we have discussed is meaningless without knowing which device context we are talking about. A screen device context is very different to a printer device context, as an example there is no cleartype on any printer device driver I know of. Some printer drivers may not even support every font size and type and they are allowed to silently pull a font substitution. So anything we discuss may be wrong on a different device context.

A lot of this is historic and even now largely unavoidable Windows for device drivers is not a closed system. Any manufacturer or developer can write and install a device driver. Linux is even more uncontrolled in many ways because the O/S sourecode can be changed by anyone and there are even more options and differences there.

At the moment you haven't dealt with one of the huge variations which is what characters are represented in the font or in your terms you would probably say how many glyphs are represented in the typeface. This leads into what keys maps to what glyphs which is called mapping or encoding by the O/S. Even the display direction is not set in stone unlike English many languages go right to left and it is supported. Being able to type vertically may or may not be supported the usual problem it throws up is condensing and proportionality rules get thrown into chaos.

If you want more precision around things you are going to also give us precision that is what device context are we talking about when you ask the question. Device context here as a very precise meaning on windows
About Device Contexts | Microsoft Docs[^]

In a programming sense to do anything with a font, you first create a device context and every operation on a font requires you to send the device context as part of that call. So I can't answer much without knowing what device context you are talking about.
In vino veritas


modified 6-Sep-18 23:24pm.

GeneralRe: confusion about fonts in Windows Pin
Alexander Kindel6-Sep-18 18:21
Alexander Kindel6-Sep-18 18:21 
GeneralRe: confusion about fonts in Windows Pin
leon de boer7-Sep-18 8:41
leon de boer7-Sep-18 8:41 
GeneralRe: confusion about fonts in Windows Pin
Alexander Kindel11-Sep-18 13:24
Alexander 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
leon de boer9-Sep-18 18:04 
Questionneed help with unix commands Pin
Member 139744595-Sep-18 13:24
Member 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
mveRichard MacCutchan5-Sep-18 21:59 
QuestionRe: need help with unix commands Pin
David Crow6-Sep-18 5:45
David Crow6-Sep-18 5:45 
AnswerRe: need help with unix commands Pin
jeron16-Sep-18 6:31
jeron16-Sep-18 6:31 
AnswerRe: need help with unix commands Pin
Richard MacCutchan6-Sep-18 7:04
mveRichard MacCutchan6-Sep-18 7:04 
QuestionUnable to receive custom Ethernet frame Pin
Donnie_Song1-Sep-18 16:45
Donnie_Song1-Sep-18 16:45 
SuggestionRe: Unable to receive custom Ethernet frame Pin
Richard MacCutchan1-Sep-18 21:58
mveRichard MacCutchan1-Sep-18 21:58 
GeneralRe: Unable to receive custom Ethernet frame Pin
Donnie_Song1-Sep-18 22:04
Donnie_Song1-Sep-18 22:04 
GeneralRe: Unable to receive custom Ethernet frame Pin
Richard MacCutchan1-Sep-18 22:43
mveRichard MacCutchan1-Sep-18 22:43 
GeneralRe: Unable to receive custom Ethernet frame Pin
Donnie_Song1-Sep-18 23:06
Donnie_Song1-Sep-18 23:06 
GeneralRe: Unable to receive custom Ethernet frame Pin
Victor Nijegorodov1-Sep-18 23:19
Victor Nijegorodov1-Sep-18 23:19 

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.