CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

Add New Font

Questions & Answers about IWCGJQuery Suite.

by ariopax » 09 Dec 2015 17:45

Hi

How to add new font to font family property?
I want add Persian font to font family property.




Best Regards.
ariopax
 
Posts: 123
Joined: 07 Dec 2014 21:09
Location: Tehran,Iran

by Alexander Bulei » 09 Dec 2015 17:49

Hi ariopax,

How to add new font to font family property?


By using the Intraweb Font property or by our Style property.

Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by aftabgardan2006 » 12 Jan 2016 21:56

Hi
Please explain more ,how to use you'r Style property.
Best Regards
aftabgardan2006
 
Posts: 3
Joined: 24 Nov 2015 10:52

by Alexander Bulei » 13 Jan 2016 10:24

Hi aftabgardan2006,

Please explain more ,how to use you'r Style property.


If you want custom font-family, you need load the font by using ContentFiles, and then add the style via Style.

e.g:

css code
font-famaly: "Roboto"


Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by ariopax » 18 Jan 2016 06:47

Hi

Where need load ContentFiles? by what command?
Where need copy font files,in any arbitrary folder in wwwroot?
Where need use css code?

Have you any example for it?


Best Regards.
ariopax
 
Posts: 123
Joined: 07 Dec 2014 21:09
Location: Tehran,Iran

by Alexander Bulei » 18 Jan 2016 16:21

Hi ariopax,

Where need load ContentFiles? by what command?


About the new fonts: http://www.w3schools.com/css/css3_fonts.asp

Where need copy font files,in any arbitrary folder in wwwroot?


Yes, the font files should be in wwwroot folder.

Where need use css code?


Where you want..in certain component or whole region.

Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by ariopax » 19 Jan 2016 14:23

Hi

I create a testcase,create a Setfont folder in wwwroot folder,and then create a fonts folder in Setfont folder and a css file that its name is css1.
Image

Now in ServerController use below code:
Code: Select all
procedure TIWServerController.IWServerControllerBaseCreate(Sender: TObject);
begin
  ContentFiles.Add('Setfont/css1');
end;

and then put a IWCGJQLabelEx in iwform1,then in style property i write

Image

but dont apply my font!

What is my erroe?

Best Regards.
ariopax
 
Posts: 123
Joined: 07 Dec 2014 21:09
Location: Tehran,Iran

by Jorge Sousa » 19 Jan 2016 15:17

Hi

then create a fonts folder in Setfont folder and a css file that its name is css1.


ok, but you're link should be like

src: url(SetFont/fonts/BBadr.woff)
src: url(SetFont/fonts/BBadr.eot)
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by assapan » 19 Jan 2016 15:38

is this property name really font-famaly ? not font-family ?
Want to visit Ardeche http://leclosdelarc.fr/index.php
The Pont d’Arc Cavern http://en.cavernedupontdarc.fr
Image
User avatar
assapan
 
Posts: 600
Joined: 16 Dec 2013 12:04
Location: France

by ariopax » 19 Jan 2016 15:44

HI


Tankssssssssssssssssssss!


Best Regards.
ariopax
 
Posts: 123
Joined: 07 Dec 2014 21:09
Location: Tehran,Iran

Next

Return to Q & A

cron

Who is online

Users browsing this forum: No registered users and 1 guest

Contact Us.