Click here to Skip to main content
16,007,843 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: VC7 compiled projects still work on 98/ME? Pin
RickGavin9-Sep-05 8:06
RickGavin9-Sep-05 8:06 
GeneralRe: VC7 compiled projects still work on 98/ME? Pin
David Crow9-Sep-05 8:35
David Crow9-Sep-05 8:35 
GeneralRe: VC7 compiled projects still work on 98/ME? Pin
RickGavin9-Sep-05 9:00
RickGavin9-Sep-05 9:00 
AnswerRe: VC7 compiled projects still work on 98/ME? Pin
PJ Arends9-Sep-05 9:09
professionalPJ Arends9-Sep-05 9:09 
GeneralRe: VC7 compiled projects still work on 98/ME? Pin
Anonymous9-Sep-05 20:25
Anonymous9-Sep-05 20:25 
QuestionTurning win app into console still using cdocument Pin
Anna Anna9-Sep-05 5:40
Anna Anna9-Sep-05 5:40 
QuestionGDI, ScriptTextOut & printing (&preview) Pin
Super Lloyd9-Sep-05 3:53
Super Lloyd9-Sep-05 3:53 
AnswerRe: GDI, ScriptTextOut & printing (&preview) Pin
Super Lloyd5-Apr-06 14:21
Super Lloyd5-Apr-06 14:21 
Someone email that directly:
----------------------------
Hi,
I am facing a smiliar problem.
Detecting a "Missing Character Glyph" without looking at a window

I am developing a dialog similar to Windows Word - Insert - Symbol Table Dialog.
For this all the charaters have to be displayed for the selected font (from all the existing fonts) and subsets which support the current font.
I am able to display the characters but some are appearing blank. These are the characters which are not supported by the the current font.
Can anyone tell me how to detect missing glyphs?
Till now I have tried with WideCharToMultiByte and GetCharacterPlacement.
But nothing seems to work.
I thought of using uniscribe function ScriptStringAnalyse.
Is this the correct function I should use?
Also I dont have Usp10.h and Usp10.lib on my system. Though I do have Usp10.dll
I thought of downloading same but looks like it comes as SDK package.
I just need this .h and .lib file.
Can you send me these two files?
----------------------------

1.
This is not at all the same problem!
Anyway Uniscribe informs you about such issue most of the time (I found 1 case where it doesn't Frown | :( )
But it requires a bit of work.... and a bit of understanding Uniscribe..
(There might be an easier way, but I'm not of aware of it).
ScriptShape will analyze a SCRIPT_ITEM (which you create from a wchar_t* & Script_Itemize() function)
And returns you a glyph arry. If you're glyph is 0 that is the current font doesn't support the current characters.

Then you could use the COM interface IMLanFontLink2 to find an appropriate font.
Here is my wrapper's code for this COM interface:
FontFallback::FontFallback()
{
IMLangFontLink2* pfl;
HRESULT result = CoCreateInstance(
CLSID_CMultiLanguage,
NULL,
CLSCTX_ALL,
IID_IMLangFontLink2,
(void**)&pfl);
if(!SUCCEEDED(result))
throw Script::ErrorResult(result);

langfont = pfl;
}

2. I won't send you Uniscribe.lib or .h , it's a bad idea. Better you get yourself the windows SDK (which is included in VisulatStudio), but if you only have express you'll have to download the windows SDK. it's free and it's big.
the appropriate headers and lib will be in the relevant directory of the SDK
Questionioctl() function Pin
rolati9-Sep-05 3:51
rolati9-Sep-05 3:51 
AnswerRe: ioctl() function Pin
Super Lloyd9-Sep-05 3:54
Super Lloyd9-Sep-05 3:54 
AnswerRe: ioctl() function Pin
David Crow9-Sep-05 4:21
David Crow9-Sep-05 4:21 
GeneralRe: ioctl() function Pin
rolati11-Sep-05 22:09
rolati11-Sep-05 22:09 
GeneralRe: ioctl() function Pin
David Crow12-Sep-05 2:30
David Crow12-Sep-05 2:30 
GeneralRe: ioctl() function Pin
rolati12-Sep-05 2:43
rolati12-Sep-05 2:43 
AnswerRe: ioctl() function Pin
markkuk10-Sep-05 3:04
markkuk10-Sep-05 3:04 
QuestionAbout System Tray Icon Menu -Plz Help Pin
parims9-Sep-05 3:24
parims9-Sep-05 3:24 
AnswerRe: About System Tray Icon Menu -Plz Help Pin
David Crow9-Sep-05 4:16
David Crow9-Sep-05 4:16 
QuestionHeader file update Pin
sunit59-Sep-05 2:56
sunit59-Sep-05 2:56 
AnswerRe: Header file update Pin
prasad_som9-Sep-05 3:05
prasad_som9-Sep-05 3:05 
GeneralRe: Header file update Pin
sunit59-Sep-05 3:10
sunit59-Sep-05 3:10 
AnswerRe: Header file update Pin
David Crow9-Sep-05 4:11
David Crow9-Sep-05 4:11 
GeneralRe: Header file update Pin
sunit59-Sep-05 4:39
sunit59-Sep-05 4:39 
QuestionRe: Header file update Pin
David Crow9-Sep-05 4:56
David Crow9-Sep-05 4:56 
AnswerRe: Header file update Pin
sunit510-Sep-05 0:40
sunit510-Sep-05 0:40 
AnswerRe: Header file update Pin
sunit516-Sep-05 21:35
sunit516-Sep-05 21:35 

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.