gm-docs-parser 1.0.0

A collection of typings for GameMaker Studio 2 manual pages
Documentation
<?xml version="1.0" encoding="utf-8" ?>

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"><head>

  <script type="text/javascript" language="JavaScript">
    //<![CDATA[
    function reDo() {
      if (innerWidth != origWidth || innerHeight != origHeight)
        location.reload();
    }
    if ((parseInt(navigator.appVersion) == 4) && (navigator.appName == "Netscape")) {
      origWidth = innerWidth;
      origHeight = innerHeight;
      onresize = reDo;
    }
    onerror = null;
  //]]>
  </script>
  <style type="text/css">/*<![CDATA[*/

    < !-- div.WebHelpPopupMenu {
      position: absolute;
      left: 0px;
      top: 0px;
      z-index: 4;
      visibility: hidden;
    }

    p.WebHelpNavBar {
      text-align: right;
    }

    -->
  
/*]]>*/</style>

  <script type="text/javascript">//<![CDATA[

    gRootRelPath = "../../../..";
    gCommonRootRelPath = "../../../..";
    gTopicId = "9.2.2.10";
  
//]]></script>

  <script type="text/javascript" src="../../../../template/scripts/rh.min.js"></script>
  <script type="text/javascript" src="../../../../template/scripts/common.min.js"></script>
  <script type="text/javascript" src="../../../../template/scripts/topic.min.js"></script>
  <script type="text/javascript" src="../../../../template/scripts/topicwidgets.min.js"></script>
<script type="text/javascript" src="../../../../whxdata/projectsettings.js"></script>
  <link rel="stylesheet" type="text/css" href="../../../../template/styles/topic.min.css"/>
  <link rel="stylesheet" type="text/css" href="../../../../template/Charcoal_Grey/topicheader.css"/>
  <meta name="topic-status" content="Draft"/>

  <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  <title>Fonts</title>
  <meta name="generator" content="Adobe RoboHelp 2019"/>
  <link rel="stylesheet" href="../../../../assets/css/default.css" type="text/css"/>
  <meta name="rh-authors" content="Mark Alexander"/>
  <meta name="topic-comment" content="Page outlining the different functions and variables associated with Fonts"/>
  <meta name="rh-index-keywords" content=""/>
  <meta name="search-keywords" content="Fonts"/>
</head>

<body>
  <div class="topic-header rh-hide" id="rh-topic-header" onclick="rh._.goToFullLayout()">
    <div class="logo">
    </div>
    <div class="nav">
      <div class="title" title="Fonts">
        <span>Fonts</span>
      </div>
      <div class="gotohome" title="Click here to see this page in full context">
        <span>Click here to see this page in full context</span>
      </div>
    </div>
  </div>
  <div class="topic-header-shadow rh-hide" id="rh-topic-header-shadow"></div>



  <!--<div class="body-scroll" style="top: 150px;">-->
  <h1>Fonts</h1>
  <p>GameMaker Studio 2 has a number of functions that can be used to get information about the included font assets, as well as a further set of functions that can be used to change, add or remove fonts from your game at run-time. In particular the function
    <tt>font_add()</tt> can be used to add non-standard fonts, like Asian glyph fonts, in <tt>*.ttf</tt> format.</p>
  <p>It is worth noting is that if you add a font to your game that doesn&#39;t have the glyphs required by the text you wish to write, then the unicode character 9647 (▯) is used to substitute those missing glyphs when rendering it in the draw event. So
    if your font doesn&#39;t have, for example, the º symbol, then writing 90º will actually produce 90▯.</p>
  <p> </p>
  <p>The following functions can be used to get information about font resources:</p>
  <p> </p>
  <ul class="colour">
    <li><a href="font_get_name.htm">font_get_name</a></li>
    <li><a href="font_get_fontname.htm">font_get_fontname</a></li>
    <li><a href="font_get_first.htm">font_get_first</a></li>
    <li><a href="font_get_last.htm">font_get_last</a></li>
    <li><a href="font_get_italic.htm">font_get_italic</a></li>
    <li><a href="font_get_bold.htm">font_get_bold</a></li>
    <li><a href="font_get_size.htm">font_get_size</a></li>
    <li><a href="font_get_texture.htm">font_get_texture</a></li>
    <li><a href="font_get_uvs.htm">font_get_uvs</a></li>
  </ul>
  <p> </p>
  <p>The following functions can be used to change and manipulate fonts during a game:</p>
  <p> </p>
  <ul class="colour">
    <li><a href="font_exists.htm">font_exists</a></li>
    <li><a href="font_set_cache_size.htm">font_set_cache_size</a></li>
    <li><a href="font_add_enable_aa.htm">font_add_enable_aa</a></li>
    <li><a href="font_add_get_enable_aa.htm">font_add_get_enable_aa</a></li>
    <li><a href="font_add.htm">font_add</a></li>
    <li><a href="font_add_sprite.htm">font_add_sprite</a></li>
    <li><a href="font_add_sprite_ext.htm">font_add_sprite_ext</a></li>
    <li><a href="font_replace.htm">font_replace</a></li>
    <li><a href="font_replace_sprite.htm">font_replace_sprite</a></li>
    <li><a href="font_replace_sprite_ext.htm">font_replace_sprite_ext</a></li>
    <li><a href="font_delete.htm">font_delete</a></li>
    <li><a href="font_texture_page_size.htm">font_texture_page_size</a></li>
  </ul>
  <p> </p>
  <p> </p>
  <p> </p>
  <p> </p>
  <div class="footer">
    <div class="buttons">
      <div class="clear">
        <div style="float:left">Back: <a href="../Asset_Management.htm">Asset Management</a></div>
        <div style="float:right">Next: <a href="../Timelines/Timelines.htm">Timelines</a></div>
      </div>
    </div>
    <h5>© Copyright YoYo Games Ltd. 2020 All Rights Reserved</h5>
  </div>
  <!-- KEYWORDS
Fonts
-->
  <!-- TAGS
font_functions
-->

</body></html>