Skip to content

Commit 659949d

Browse files
author
marmayogi
committed
Comments Correction
1 parent 7734d4a commit 659949d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -514,8 +514,8 @@ char* strps(const ELang pLan, const EFont pFont, const char* pUTF8InString, char
514514
Label_Repeat:
515515
//printf("before: ii=%d cnt=%d\n", (short)ii, cntUnicode);
516516
const short cntUnicodeSave = cntUnicode; // Take a copy.
517-
const short cntCID = up2cid(pLan, pFont, unicodeQuad, cntUnicode, cid); // Count of CIDs present in the cid array. This value could be either 1, 2, 3 or 4.
518-
if (!cntCID) break; // Error. Mostly pFontName does not match with registered font names.
517+
const short cntCID = up2cid(pLan, pFont, unicodeQuad, cntUnicode, cid); // Returns Count of CIDs present in the cid array. This value varies from 1 to 3.
518+
if (!cntCID) break; // Error occurs mostly due to pFontName did not find a match with registered font names.
519519
for (short kk = 0; kk < cntCID; kk++) {
520520
if ((len + 2) >= pPSOutputStringSize) break; // Insufficient pPSOutputStringSize to store character code. Stop processing and return already processed string.
521521
sprintf_s(pPSOutString+len, pPSOutputStringSize-len, "%04x", cid[kk]); len = strlen(pPSOutString);

0 commit comments

Comments
 (0)