erich.wanker Posted July 8, 2013 Share Posted July 8, 2013 Hello, 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 Erich Quote Link to comment Share on other sites More sharing options...
erich.wanker Posted July 8, 2013 Author Share Posted July 8, 2013 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') + '://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> and in uniLabel.font.name manualy write "Denk One, Tahome" .. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.