{"id":3666,"date":"2018-08-30T10:46:44","date_gmt":"2018-08-30T17:46:44","guid":{"rendered":"http:\/\/mattfife.com\/?p=3666"},"modified":"2018-08-30T10:48:58","modified_gmt":"2018-08-30T17:48:58","slug":"signed-distance-fields","status":"publish","type":"post","link":"https:\/\/mattfife.com\/?p=3666","title":{"rendered":"Signed Distance Fields"},"content":{"rendered":"<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"3669\" data-permalink=\"https:\/\/mattfife.com\/?attachment_id=3669\" data-orig-file=\"https:\/\/i0.wp.com\/mattfife.com\/wp-content\/themes\/mattTheme\/headerimgs\/2018\/08\/distance-field-fonts.png?fit=865%2C384&amp;ssl=1\" data-orig-size=\"865,384\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"distance-field-fonts\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/mattfife.com\/wp-content\/themes\/mattTheme\/headerimgs\/2018\/08\/distance-field-fonts.png?fit=640%2C284&amp;ssl=1\" class=\"alignnone size-full wp-image-3669\" src=\"https:\/\/i0.wp.com\/mattfife.com\/wp-content\/themes\/mattTheme\/headerimgs\/2018\/08\/distance-field-fonts.png?resize=640%2C284&#038;ssl=1\" alt=\"\" width=\"640\" height=\"284\" srcset=\"https:\/\/i0.wp.com\/mattfife.com\/wp-content\/themes\/mattTheme\/headerimgs\/2018\/08\/distance-field-fonts.png?w=865&amp;ssl=1 865w, https:\/\/i0.wp.com\/mattfife.com\/wp-content\/themes\/mattTheme\/headerimgs\/2018\/08\/distance-field-fonts.png?resize=300%2C133&amp;ssl=1 300w, https:\/\/i0.wp.com\/mattfife.com\/wp-content\/themes\/mattTheme\/headerimgs\/2018\/08\/distance-field-fonts.png?resize=768%2C341&amp;ssl=1 768w, https:\/\/i0.wp.com\/mattfife.com\/wp-content\/themes\/mattTheme\/headerimgs\/2018\/08\/distance-field-fonts.png?resize=604%2C268&amp;ssl=1 604w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p>Signed distance field rendering is a technique used in Team Fortress 2, and documented by Chris Green of Valve in the SIGGRAPH 2007 paper\u00a0<a href=\"http:\/\/www.valvesoftware.com\/publications\/2007\/SIGGRAPH2007_AlphaTestedMagnification.pdf\" rel=\"nofollow\">Improved Alpha-Tested Magni\ufb01cation for Vector Textures and Special Effects.<\/a>\u00a0It allows you to render bitmap fonts without jagged edges even at high magnifications. <a href=\"https:\/\/github.com\/libgdx\/libgdx\/wiki\/Distance-field-fonts\" target=\"_blank\" rel=\"noopener\">This article describes how to implement the technique in libgdx.<\/a><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Signed distance field rendering is a technique used in Team Fortress 2, and documented by Chris Green of Valve in the SIGGRAPH 2007 paper\u00a0Improved Alpha-Tested Magni\ufb01cation for Vector Textures and Special Effects.\u00a0It allows you to render bitmap fonts without jagged edges even at high magnifications. This article describes how to implement the technique in libgdx. &nbsp;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[9,6,7,5],"tags":[],"class_list":["post-3666","post","type-post","status-publish","format-standard","hentry","category-cool","category-technicalproblemsolutions","category-technicalprogramming","category-technical"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4WECr-X8","jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/mattfife.com\/index.php?rest_route=\/wp\/v2\/posts\/3666","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mattfife.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mattfife.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mattfife.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mattfife.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3666"}],"version-history":[{"count":3,"href":"https:\/\/mattfife.com\/index.php?rest_route=\/wp\/v2\/posts\/3666\/revisions"}],"predecessor-version":[{"id":3670,"href":"https:\/\/mattfife.com\/index.php?rest_route=\/wp\/v2\/posts\/3666\/revisions\/3670"}],"wp:attachment":[{"href":"https:\/\/mattfife.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3666"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mattfife.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3666"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mattfife.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3666"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}