core icon indicating copy to clipboard operation
core copied to clipboard

the use of fonts.googleapis.com makes it internet-dependent

Open DiegoJArg opened this issue 7 years ago • 10 comments

Hi, I am trying to use formtools in intranet. I found that the reason of very slow access through WiFi is due to some fonts being loaded through googleapis, and those terminals do not have internet.

Is it possible to dissable them?

They are set up in FormBuilder -> PlaceHolders

DiegoJArg avatar Jun 26 '18 16:06 DiegoJArg

You cant just dl the fonts? I think it might works.

nelsondcosta23 avatar Jun 26 '18 16:06 nelsondcosta23

DiegoJArg avatar Jun 26 '18 16:06 DiegoJArg

link href='http://fonts.googleapis.com/css?family=Droid+Sans+Mono' rel='stylesheet' type='text/css'

link href="http://fonts.googleapis.com/css?family=Italianno" rel='stylesheet' type='text/css'

DiegoJArg avatar Jun 26 '18 16:06 DiegoJArg

nelson, where do I delete this? I think this line is generated by some code in formbuilder, I can not find it

DiegoJArg avatar Jun 26 '18 16:06 DiegoJArg

tell me where is the file withthe font code.

/* latin */
@font-face {
  font-family: 'Droid Sans Mono';
  font-style: normal;
  font-weight: 400;
  src: local('Droid Sans Mono Regular'), local('DroidSansMono-Regular'), url(http://fonts.gstatic.com/s/droidsansmono/v9/6NUO8FuJNQ2MbkrZ5-J8lKFrp7pRef2r.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Italianno';
  font-style: normal;
  font-weight: 400;
  src: local('Italianno'), local('Italianno-Regular'), url(http://fonts.gstatic.com/s/italianno/v7/dg4n_p3sv6gCJkwzT6RXhpwocwM.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Italianno';
  font-style: normal;
  font-weight: 400;
  src: local('Italianno'), local('Italianno-Regular'), url(http://fonts.gstatic.com/s/italianno/v7/dg4n_p3sv6gCJkwzT6RXiJwo.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

nelsondcosta23 avatar Jun 26 '18 16:06 nelsondcosta23

Solved.. After searching thourhg all files and found nothing I realised that it was in the databaser. Therefore, I performed a search for "googleapis" in phpmyadmin and removed all occurences.

DiegoJArg avatar Jun 26 '18 17:06 DiegoJArg

Glad :) you can close.

nelsondcosta23 avatar Jun 27 '18 08:06 nelsondcosta23

I'm kind of on the fence about this issue, about whether we should embrace the idea that out-the-box FT should be able to be run entirely offline. The thing is, certain features will always be internet dependant: the maps data type, for instance - and soon the installation and upgrade features.

I can certainly see it being useful (I get hit by this occasionally when I'm working without internet) but overall I think I'm going to keep it as is & permit internet-dependent features. It's just too useful.

Glad you found a fix though Diego.

benkeen avatar Aug 18 '18 16:08 benkeen

Ok. It is understood, but Ithink that nothing stops a plan B for offline tasks... becouse I work in an intranet with lots of machines involved and company policies, I will not be able to use it ever. But I know that those fonts can be downloaded from google, there is no need to link to them by url

DiegoJArg avatar Aug 18 '18 18:08 DiegoJArg

Ah, yeah fair point! Sorry, didn't realize they were downloadable. I'll put this as a Feature Request. I rather suspect I'll get to this in FT 3.2 when I revise the rest of the interface. Thanks!

benkeen avatar Aug 18 '18 18:08 benkeen