<% if (obj.fonts.length) { %>

Your fonts

<%= obj.fonts.length %> <%= obj.fonts.length > 1 ? 'fonts' : 'font' %>
<% obj.fonts.forEach(function(font) { %> <% }); %>
<% } else { %>
To embed your own fonts in your style, add them to the style's project folder and set a font directory on the Map element.
Example:
Map { font-directory: url("fonts/"); }
<% } %>