{"action":"opened","issue":{"url":"https://api.github.com/repos/openframeworks/openFrameworks/issues/3786","labels_url":"https://api.github.com/repos/openframeworks/openFrameworks/issues/3786/labels{/name}","comments_url":"https://api.github.com/repos/openframeworks/openFrameworks/issues/3786/comments","events_url":"https://api.github.com/repos/openframeworks/openFrameworks/issues/3786/events","html_url":"https://github.com/openframeworks/openFrameworks/issues/3786","id":71086404,"number":3786,"title":"ofTrueTypeFont bounding box / string width incorrect for non-ASCII","user":{"login":"kylemcdonald","id":157106,"avatar_url":"https://avatars.githubusercontent.com/u/157106?v=3","gravatar_id":"","url":"https://api.github.com/users/kylemcdonald","html_url":"https://github.com/kylemcdonald","followers_url":"https://api.github.com/users/kylemcdonald/followers","following_url":"https://api.github.com/users/kylemcdonald/following{/other_user}","gists_url":"https://api.github.com/users/kylemcdonald/gists{/gist_id}","starred_url":"https://api.github.com/users/kylemcdonald/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kylemcdonald/subscriptions","organizations_url":"https://api.github.com/users/kylemcdonald/orgs","repos_url":"https://api.github.com/users/kylemcdonald/repos","events_url":"https://api.github.com/users/kylemcdonald/events{/privacy}","received_events_url":"https://api.github.com/users/kylemcdonald/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-26T16:01:51Z","updated_at":"2015-04-26T16:01:51Z","closed_at":null,"body":"```c++\r\n#include \"ofMain.h\"\r\n\r\nvoid drawWithBoundingBox(ofTrueTypeFont& font, string text, float x, float y) {\r\n    ofNoFill();\r\n    ofDrawRectangle(font.getStringBoundingBox(text, x, y));\r\n    font.drawString(text, x, y);\r\n}\r\n\r\nclass ofApp : public ofBaseApp {\r\npublic:\r\n    ofTrueTypeFont font;\r\n    void setup() {\r\n        font.load(OF_TTF_SANS, 24, true, true);\r\n    }\r\n    void update() {\r\n    }\r\n    void draw() {\r\n        drawWithBoundingBox(font, \"äbcdëfghïjklmnöpqrstüvwxÿz\", 24, 48);\r\n        drawWithBoundingBox(font, \"abcdefghijklmnopqrstuvwxyz\", 24, 96);\r\n    }\r\n};\r\nint main() {\r\n    ofSetupOpenGL(640, 200, OF_WINDOW);\r\n    ofRunApp(new ofApp());\r\n}\r\n```\r\n\r\n![screen shot 2015-04-26 at 18 00 16](https://cloud.githubusercontent.com/assets/157106/7338002/1f4b8cc0-ec3e-11e4-8025-6ed7c1bf1aba.png)\r\n"}}