Jean-Marc Kiener Posted January 23, 2015 Posted January 23, 2015 Hi uniguys (-and girls) ;-) I have here a little app writen in unigui. The app should run in a iframe of a html page. The html page has a big css file declaring the view of the obejcts used on the html page. In the header of the html page it loads the following font: <link href='http://fonts.googleapis.com/css?family=Titillium+Web:400,400italic,300italic' rel='stylesheet' type='text/css' /> Is there a chance that i can use the same font and css in my unigui app? If yes, how can that be done? I tryed it with TuniHTMLFrame, setting the html property: <!DOCTYPE html><html><head> <link href='http://fonts.googleapis.com/css?family=Titillium+Web:400,400italic,300italic' rel='stylesheet' type='text/css' /></head><body></body></html> But if i firebug the app, i cannot see the link to the font in my app. Any help would be great. Quote
Jean-Marc Kiener Posted January 23, 2015 Author Posted January 23, 2015 Found the solution.. CustomMeta and CustomCSS property from TUniServerModule are the candidats. CustomMeta: <link href='http://fonts.googleapis.com/css?family=Titillium+Web:400,400italic,300italic' rel='stylesheet' type='text/css' /> Add CustomCSS as you need. Quote
Sherzod Posted January 23, 2015 Posted January 23, 2015 Hi,You can also add in CustomFiles: http://fonts.googleapis.com/css?family=Titillium+Web:400,400italic,300italic.css Best regards. Quote
Jean-Marc Kiener Posted January 30, 2015 Author Posted January 30, 2015 Is there a way to change the font type and size of a TUniCombobox popup list? Quote
mofareh Posted January 4, 2024 Posted January 4, 2024 no need to use google font , use any font in server , add this code in uniservermodule>css first line copy the font to the files folder : files/JF-Flat-Regular.ttf @font-face { font-family: 'mof'; src: url(files/JF-Flat-Regular.ttf); } then use the font-family 'mof' in any uni control unilable> font> name = mof , uniedit>font>name= mof ........ 2 Quote
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.