Jump to content

TUniFont.Name property and Webfonts


Recommended Posts



i can manually type "Denk One,Tahoma, Arial" in TUniFont.Name property.


On http://www.google.com/fonts/

you can find a lot of webfonts provided by google.




To use the Webfont, google creats a import funktion (3 differnt ways):

@import url(http://fonts.googleapis.com/css?family=Denk+One);

But where can i store the "@import..." ?

(i tried out ServerModule / CustomMeta.. but didn´t work ..)


Thanks for suggestion





Link to comment
Share on other sites

OK ... it works .. :-)


in MainForm / Script:


     <script type="text/javascript">
  WebFontConfig = {
    google: { families: [ 'Denk+One::latin' ] }
  (function() {
    var wf = document.createElement('script');
    wf.src = ('https:' == document.location.protocol ? 'https' : 'http') +
    wf.type = 'text/javascript';
    wf.async = 'true';
    var s = document.getElementsByTagName('script')[0];
    s.parentNode.insertBefore(wf, s);
  })(); </script>

and in uniLabel.font.name manualy write "Denk One, Tahome"  ..



Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...