71339ec8afb5bbcaac8922ef4538f1c9ac944e5a jnavarr5 Fri Jun 26 11:58:46 2026 -0700 Reword the intro to the add-a-font steps in the mirror manual, refs #37698 diff --git src/hg/htdocs/goldenPath/help/mirrorManual.html src/hg/htdocs/goldenPath/help/mirrorManual.html index a6e8fdaaf33..71ea09c4652 100755 --- src/hg/htdocs/goldenPath/help/mirrorManual.html +++ src/hg/htdocs/goldenPath/help/mirrorManual.html @@ -2192,31 +2192,35 @@ e97c9af68414fabe157af711b7691df7 n022004l.pfb f13fb8e581426a1ffa5fc12b10ad0f34 n022023l.pfb f3cd9244150f086434b62d5c5bb559b0 n022024l.pfb 30aef717b7c68a6b6b7760b764fbd01c z003034l.pfb</code></pre> <a name='adding-a-new-font-to-the-genome-browser-display'></a> <h2>Adding a new font to the Genome Browser display</h2> <p> The fonts offered in the hgTracks "configure" page Font menu are defined in a table in the source code: the <code>freeTypeFonts[]</code> array in <code>src/hg/hgTracks/config.c</code> (<a href='https://raw.githubusercontent.com/ucscGenomeBrowser/kent/refs/heads/master/src/hg/hgTracks/config.c' title=''>view on GitHub</a>). Adding a font is therefore a source code change, and you will need to rebuild the CGIs afterward (see the <a href='#building-the-kent-source-tree' title=''>Building the kent source tree</a> -section below). There are two steps. +section below). +</p> + +<p> +Once you have a font file in hand, adding it takes just two steps: </p> <ol> <li><p> Put the font file where the rendering engine can find it. At run time the file is looked up under the directory given by the <code>freeTypeDir</code> setting in hg.conf, which defaults to <code>../htdocs/urw-fonts</code>. That path is relative to the CGI working directory, so it resolves to the shared <code>htdocs/urw-fonts</code> directory even when you run from a per-user sandbox; you do not need a copy under your own htdocs. Both Type1 (<code>.pfb</code>) and TrueType (<code>.ttf</code>) font files are supported. </p></li> <li><p> Add a row to the <code>freeTypeFonts[]</code> table in <code>src/hg/hgTracks/config.c</code>, giving the name to display and the font file name, for example: