mirror of
https://github.com/reactos/reactos.git
synced 2025-04-05 13:11:22 +00:00
- Add LanguagePack support to GetFontLanguageInfo.
svn path=/trunk/; revision=39839
This commit is contained in:
parent
78b88e1063
commit
7f9d753a27
3 changed files with 15 additions and 1 deletions
|
@ -15,6 +15,7 @@ extern HANDLE hProcessHeap;
|
|||
extern HANDLE CurrentProcessId;
|
||||
extern DWORD GDI_BatchLimit;
|
||||
extern PDEVCAPS GdiDevCaps;
|
||||
extern BOOL gbLpk; // Global bool LanguagePack
|
||||
|
||||
typedef INT
|
||||
(CALLBACK* EMFPLAYPROC)(
|
||||
|
|
|
@ -13,6 +13,7 @@ extern HGDIOBJ stock_objects[];
|
|||
BOOL SetStockObjects = FALSE;
|
||||
PDEVCAPS GdiDevCaps = NULL;
|
||||
PGDIHANDLECACHE GdiHandleCache = NULL;
|
||||
BOOL gbLpk = FALSE;
|
||||
|
||||
/*
|
||||
* GDI32.DLL does have an entry point for disable threadlibrarycall,. The initialization is done by a call
|
||||
|
|
|
@ -914,7 +914,19 @@ GetFontLanguageInfo(
|
|||
HDC hDc
|
||||
)
|
||||
{
|
||||
return GetDCDWord(hDc, GdiGetFontLanguageInfo, GCP_ERROR);
|
||||
DWORD Gcp = 0, Ret = 0;
|
||||
if (gbLpk)
|
||||
{
|
||||
Ret = NtGdiGetTextCharsetInfo(hDc, NULL, 0);
|
||||
if ((Ret == ARABIC_CHARSET) || (Ret == HEBREW_CHARSET))
|
||||
Ret = (GCP_KASHIDA|GCP_DIACRITIC|GCP_LIGATE|GCP_GLYPHSHAPE|GCP_REORDER);
|
||||
}
|
||||
Gcp = GetDCDWord(hDc, GdiGetFontLanguageInfo, GCP_ERROR);
|
||||
if ( Gcp == GCP_ERROR)
|
||||
return Gcp;
|
||||
else
|
||||
Ret = Gcp | Ret;
|
||||
return Ret;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue