Projects > cpp > Issues > Bug #1496

We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.

Create Issue on Github

An error of comparing font's face name in CCImage of win32 port.

Bug #1496 [Closed]
dumganhar 2012-10-08 06:50 . Updated about 4 years ago

BitmapDC::setFont

           GetObjectA(m_hFont,  sizeof(tOldFont), &tOldFont);

            if (tOldFont.lfHeight == tNewFont.lfHeight
                && !strcpy(tOldFont.lfFaceName, tNewFont.lfFaceName)) --> 0 == strcmp(..., ...)
            {
                // already has the font 
                bRet = true;
                break;
            }

dumganhar 2012-10-08 06:51
  • Subject changed from An error of comparing font name in CCImage of win32 port. to An error of comparing font's face name in CCImage of win32 port.
dumganhar 2012-10-08 11:40
  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Applied in changeset commit:7a429b067efde72aca0ffe2d6bf88896f66d7ec6.

dumganhar 2012-10-08 11:40

Applied in changeset commit:c0637b349894b654361a799eeb83913b6a693f46.

walzer@cocos2d-x.org 2012-10-09 04:05
  • Status changed from Resolved to Closed

Atom PDF

Status:Closed
Start date:2012-10-08
Priority:Normal
Due date:
Assignee:dumganhar
% Done:

100%

Category:windows
Target version:cocos2d-2.0-x-2.0.4

Sign up for our newsletter to keep up with the latest developments, releases and updates for Cocos2d-x.