{"action":"created","issue":{"url":"https://api.github.com/repos/SFML/SFML/issues/928","labels_url":"https://api.github.com/repos/SFML/SFML/issues/928/labels{/name}","comments_url":"https://api.github.com/repos/SFML/SFML/issues/928/comments","events_url":"https://api.github.com/repos/SFML/SFML/issues/928/events","html_url":"https://github.com/SFML/SFML/pull/928","id":96369648,"number":928,"title":"Added a method to set and get additional spacing between characters.","user":{"login":"Foaly","id":1014762,"avatar_url":"https://avatars.githubusercontent.com/u/1014762?v=3","gravatar_id":"","url":"https://api.github.com/users/Foaly","html_url":"https://github.com/Foaly","followers_url":"https://api.github.com/users/Foaly/followers","following_url":"https://api.github.com/users/Foaly/following{/other_user}","gists_url":"https://api.github.com/users/Foaly/gists{/gist_id}","starred_url":"https://api.github.com/users/Foaly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Foaly/subscriptions","organizations_url":"https://api.github.com/users/Foaly/orgs","repos_url":"https://api.github.com/users/Foaly/repos","events_url":"https://api.github.com/users/Foaly/events{/privacy}","received_events_url":"https://api.github.com/users/Foaly/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/SFML/SFML/labels/feature","name":"feature","color":"23BA35"},{"url":"https://api.github.com/repos/SFML/SFML/labels/m:sfml-graphics","name":"m:sfml-graphics","color":"cccccc"},{"url":"https://api.github.com/repos/SFML/SFML/labels/s:undecided","name":"s:undecided","color":"ffe20a"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":18,"created_at":"2015-07-21T17:15:20Z","updated_at":"2015-07-26T20:04:32Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/SFML/SFML/pulls/928","html_url":"https://github.com/SFML/SFML/pull/928","diff_url":"https://github.com/SFML/SFML/pull/928.diff","patch_url":"https://github.com/SFML/SFML/pull/928.patch"},"body":"This is my code, that I promised in [this forum thread](http://en.sfml-dev.org/forums/index.php?topic=18635.0).\r\nIt is pretty straight forward. Here is some example code to test with:\r\n```cpp\r\n#include <SFML/Graphics.hpp>\r\n#include <iostream>\r\n\r\nint main()\r\n{\r\n    sf::RenderWindow window(sf::VideoMode(800, 600), \"Character Spacing Example\");\r\n    window.setFramerateLimit(60);\r\n\r\n    // load font\r\n    sf::Font font;\r\n    if(!font.loadFromFile(\"BilboSwashCaps-Regular.otf\"))\r\n    {\r\n        std::cerr << \"Failed to load font!\" << std::endl;\r\n        return 1;\r\n    }\r\n\r\n    // setup the texts\r\n    sf::Text normalText(\"SFML rocks! 123\", font);\r\n    normalText.setCharacterSize(100);\r\n    normalText.setPosition(30, 10);\r\n    normalText.setStyle(sf::Text::Style::Bold);\r\n\r\n    sf::Text smallText(\"SFML rocks! 123\", font);\r\n    smallText.setCharacterSize(30);\r\n    smallText.setPosition(30, 150);\r\n    smallText.setStyle(sf::Text::Style::Bold);\r\n\r\n    sf::Text stretchedText(\"SFML rocks! 123\", font);\r\n    stretchedText.setCharacterSize(100);\r\n    stretchedText.setPosition(30, 200);\r\n    stretchedText.setStyle(sf::Text::Style::Bold);\r\n    stretchedText.setLetterSpacing(6.f);\r\n\r\n    sf::Text smallStretchedText(\"SFML rocks! 123\", font);\r\n    smallStretchedText.setCharacterSize(30);\r\n    smallStretchedText.setPosition(30, 350);\r\n    smallStretchedText.setStyle(sf::Text::Style::Bold);\r\n    smallStretchedText.setLetterSpacing(1.f);\r\n\r\n\r\n    // run the program as long as the window is open\r\n    while (window.isOpen())\r\n    {\r\n        // check all the windows events\r\n        sf::Event event;\r\n        while (window.pollEvent(event))\r\n        {\r\n            // \"close requested\" event: we close the window\r\n            if (event.type == sf::Event::Closed)\r\n                window.close();\r\n\r\n            else if (event.type == sf::Event::KeyReleased) {\r\n                // close if escape key was pressed\r\n                if (event.key.code == sf::Keyboard::Escape) {\r\n                    window.close();\r\n                }\r\n            }\r\n        }\r\n\r\n        // clear the window to black\r\n        window.clear();\r\n\r\n        // draw text\r\n        window.draw(normalText);\r\n        window.draw(smallText);\r\n        window.draw(stretchedText);\r\n        window.draw(smallStretchedText);\r\n\r\n        // display the windows content\r\n        window.display();\r\n    }\r\n    return 0;\r\n}\r\n```\r\n![letter-spacing](https://cloud.githubusercontent.com/assets/1014762/8810496/a9c169fc-2fef-11e5-93d9-7329b3846102.png)\r\nThe font Bilbo Swash Caps Regular is taken from [here](http://openfontlibrary.org/en/font/bilbo)."},"comment":{"url":"https://api.github.com/repos/SFML/SFML/issues/comments/125034046","html_url":"https://github.com/SFML/SFML/pull/928#issuecomment-125034046","issue_url":"https://api.github.com/repos/SFML/SFML/issues/928","id":125034046,"user":{"login":"zsbzsb","id":3647990,"avatar_url":"https://avatars.githubusercontent.com/u/3647990?v=3","gravatar_id":"","url":"https://api.github.com/users/zsbzsb","html_url":"https://github.com/zsbzsb","followers_url":"https://api.github.com/users/zsbzsb/followers","following_url":"https://api.github.com/users/zsbzsb/following{/other_user}","gists_url":"https://api.github.com/users/zsbzsb/gists{/gist_id}","starred_url":"https://api.github.com/users/zsbzsb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zsbzsb/subscriptions","organizations_url":"https://api.github.com/users/zsbzsb/orgs","repos_url":"https://api.github.com/users/zsbzsb/repos","events_url":"https://api.github.com/users/zsbzsb/events{/privacy}","received_events_url":"https://api.github.com/users/zsbzsb/received_events","type":"User","site_admin":false},"created_at":"2015-07-26T20:04:32Z","updated_at":"2015-07-26T20:04:32Z","body":"As I already refactored the code to add a line to an external method in #840 I'm not sure why you did it again."}}