Example #1
0
        bool TextOut(void *dc, int xStart, int yStart, byte *pStr, int strLen)
        {
            WCString InStr = pStr;

            InStr.FixedLength = (uint)strLen;

            InStr = EntryPoint.Process((WCString)(string)InStr);//Ensure Null-Terminated

            if (Config.Default.TextOutWUndoRemap)
            {
                InStr = Remaper.Default.Restore(InStr);
            }

            return(Bypass(dc, xStart, yStart, InStr, InStr.Count()));
        }
        uint hGetCharacterPlacement(void *hdc, byte *lpString, int nCount, int nMexExtent, GCP_RESULTSW *lpResult, uint dwFlags)
        {
            WCString InStr = lpString;

            InStr.FixedLength = (uint)nCount;

            InStr = EntryPoint.ProcessW((WCString)(string)InStr);//Ensure Null-Terminated

            if (Config.Default.GetCharacterPlacementWUndoRemap)
            {
                InStr = Remaper.Default.Restore(InStr);
            }

            if (Config.Default.GetCharacterPlacementWRemapAlt)
            {
                InStr = RemaperAlt.Default.Apply(InStr, null);
            }

            return(Bypass(hdc, InStr, InStr.Count(), nMexExtent, lpResult, dwFlags));
        }
Example #3
0
        private unsafe bool hGetTextExtendPoint32(void *hdc, byte *lpString, int c, SIZE *psize)
        {
            WCString InStr = lpString;

            InStr.FixedLength = (uint)c;

            InStr = EntryPoint.ProcessW((WCString)(string)InStr);//Ensure Null-Terminated

            if (Config.Default.GetTextExtentPoint32WUndoRemap)
            {
                InStr = Remaper.Default.Restore(InStr);
            }

            if (Config.Default.GetTextExtentPoint32WRemapAlt)
            {
                InStr = RemaperAlt.Default.Apply(InStr, null);
            }

            return(Bypass(hdc, InStr, InStr.Count(), psize));
        }