{"action":"created","issue":{"url":"https://api.github.com/repos/mono/MonoGame/issues/4061","labels_url":"https://api.github.com/repos/mono/MonoGame/issues/4061/labels{/name}","comments_url":"https://api.github.com/repos/mono/MonoGame/issues/4061/comments","events_url":"https://api.github.com/repos/mono/MonoGame/issues/4061/events","html_url":"https://github.com/mono/MonoGame/issues/4061","id":99748414,"number":4061,"title":"MGCB can't handle malformed Fonts in the Windows Registry","user":{"login":"Flosus","id":4223452,"avatar_url":"https://avatars.githubusercontent.com/u/4223452?v=3","gravatar_id":"","url":"https://api.github.com/users/Flosus","html_url":"https://github.com/Flosus","followers_url":"https://api.github.com/users/Flosus/followers","following_url":"https://api.github.com/users/Flosus/following{/other_user}","gists_url":"https://api.github.com/users/Flosus/gists{/gist_id}","starred_url":"https://api.github.com/users/Flosus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Flosus/subscriptions","organizations_url":"https://api.github.com/users/Flosus/orgs","repos_url":"https://api.github.com/users/Flosus/repos","events_url":"https://api.github.com/users/Flosus/events{/privacy}","received_events_url":"https://api.github.com/users/Flosus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-08-07T23:44:01Z","updated_at":"2015-08-14T23:53:49Z","closed_at":null,"body":"I tried to add a simple font to my project and got errors while building it.\r\nI tracked the issue down to the following [line](https://github.com/mono/MonoGame/blob/develop/MonoGame.Framework.Content.Pipeline/Processors/FontDescriptionProcessor.cs#L208)\r\n\r\nAfter analyzing my registry, i saw that some of my entries have invalid data. All of them have completely uppercase Names, as you can see in the image.\r\n\r\nThe data in these registry entries look like <code>ARIAL.TTF\\00\\0\\0\\0\\0\\0</code> \r\nAs craftworkgames pointed out, these could be some kind of line endings. \r\n\r\nI don't know what made (corrupted?) the data look like this, but i just updated my machine to Windows 10.\r\n\r\nReplacing the invalid characters could solve this, because these fonts exist in my Fonts folder and other programs can access it.\r\n\r\n![corrupted](https://cloud.githubusercontent.com/assets/4223452/9147856/8d880c6a-3d6d-11e5-8e30-77da796a98ce.png)\r\n\r\nHere is the corresponding [Stackoverflow Question]\r\n(http://stackoverflow.com/questions/31886866/invalid-path-while-processing-font-with-mgcb/31887410)\r\n\r\nThe stack trace:\r\n<pre><code>\r\ndefault.spritefont: error: Processor 'FontDescriptionProcessor' had unexpected failure! System.ArgumentException: Illegales Zeichen im Pfad.\r\nbei System.IO.Path.CheckInvalidPathChars(String path, Boolean checkAdditional) bei System.IO.Path.IsPathRooted(String path)\r\nbei Microsoft.Xna.Framework.Content.Pipeline.Processors.FontDescriptionProcessor.FindFontFileFromFontName(String fontName, String fontDirectory)\r\nbei Microsoft.Xna.Framework.Content.Pipeline.Processors.FontDescriptionProcessor.Process(FontDescription input, ContentProcessorContext context)\r\nbei Microsoft.Xna.Framework.Content.Pipeline.ContentProcessor`2.Microsoft.Xna.Framework.Content.Pipeline.IContentProcessor.Process(Object input, ContentProcessorContext context)\r\nbei MonoGame.Framework.Content.Pipeline.Builder.PipelineManager.ProcessContent(PipelineBuildEvent pipelineEvent)</code></pre>\r\n\r\nHow to reproduce:\r\n\r\n* Look inside your registry at SOFTWARE\\\\Microsoft\\\\Windows NT\\\\CurrentVersion\\\\Fonts\r\n* Search for a completely uppercase Entry\r\n* Try to build with this font.\r\n\r\nI'm sorry for my bad English. When i forgot something, please let me know."},"comment":{"url":"https://api.github.com/repos/mono/MonoGame/issues/comments/131268965","html_url":"https://github.com/mono/MonoGame/issues/4061#issuecomment-131268965","issue_url":"https://api.github.com/repos/mono/MonoGame/issues/4061","id":131268965,"user":{"login":"craftworkgames","id":3201643,"avatar_url":"https://avatars.githubusercontent.com/u/3201643?v=3","gravatar_id":"","url":"https://api.github.com/users/craftworkgames","html_url":"https://github.com/craftworkgames","followers_url":"https://api.github.com/users/craftworkgames/followers","following_url":"https://api.github.com/users/craftworkgames/following{/other_user}","gists_url":"https://api.github.com/users/craftworkgames/gists{/gist_id}","starred_url":"https://api.github.com/users/craftworkgames/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/craftworkgames/subscriptions","organizations_url":"https://api.github.com/users/craftworkgames/orgs","repos_url":"https://api.github.com/users/craftworkgames/repos","events_url":"https://api.github.com/users/craftworkgames/events{/privacy}","received_events_url":"https://api.github.com/users/craftworkgames/received_events","type":"User","site_admin":false},"created_at":"2015-08-14T23:53:49Z","updated_at":"2015-08-14T23:53:49Z","body":"For reference, this issue originated from a [stackoverflow question](http://stackoverflow.com/questions/31886866/invalid-path-while-processing-font-with-mgcb)"}}