1
There is a possibility in javascript or other language to list the fonts installed on the system or inside a directory and drop down?
function changeFont(font){
document.getElementById("preview").style.fontFamily = font.value;
}
<select id="input-font" class="input" onchange="changeFont (this);">
<option value="Arial">Arial</option>
<option value="Sans Serif" selected>Sans Serif</option>
<option value="Comic Sans MS">Comic Sans MS</option>
<option value="Times New Roman">Times New Roman</option>
<option value="Courier New">Courier New</option>
<option value="Verdana">Verdana</option>
<option value="Trebuchet MS">Trebuchet MS</option>
<option value="Arial Black">Arial Black</option>
<option value="Impact">Impact</option>
<option value="Bookman">Bookman</option>
<option value="Garamond">Garamond</option>
<option value="Palatino">Palatino</option>
<option value="Georgia">Georgia</option>
</select>
<br>
<div id="preview" style="margin:auto;width:50%;height:40px;font-size:32px;text-align:center;background-color:black;color:#fff;">Seu
Texto</div>
You have no control over these fonts in your css or dir?
– Max Ferreira
no, the intention is only to get the same sources of the system
– Arsom Nolasco
this system is made with which framework?
– Max Ferreira
Take a look in that reply Soen. There are other answers in the same question, but from what I read, this seemed the best way. @Edit: I got the wrong question, the answer I mentioned does not check a directory, but the system sources.
– Rafael Tavares