Jump to content

Recommended Posts

Posted

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.

 

 

 

 

 

  • 8 years later...
Posted

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 ........

image.thumb.png.633f70480c5e7f083c148cf2002e4c2f.png

image.png.998d5bf291de838a70c8236b3e65fe43.png

  • Like 2

Join the conversation

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

Guest
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...