Jump to content

How to use google webfonts with uniGUI ?


erich.wanker

Recommended Posts

Google deliveres a lot of webfonts to developers : http://www.google.com/fonts/

 

and Google creates Javascript code to use the selected font: 

<script type="text/javascript">
  WebFontConfig = {
    google: { families: [ 'Roboto+Slab::latin' ] }
  };
  (function() {
    var wf = document.createElement('script');
    wf.src = ('https:' == document.location.protocol ? 'https' : 'http') +
      '://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js';
    wf.type = 'text/javascript';
    wf.async = 'true';
    var s = document.getElementsByTagName('script')[0];
    s.parentNode.insertBefore(wf, s);
  })(); </script>

How can i use different webfonts with DelphiXE3 and uniGUI 

 

Thanks for helping

Erich

 

 

 

 

P.S.:  ...and another logistic-question:

  • what is the best way to create a multilanguage project  ... 

 

Thanks for suggestions 

 

 

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...