Support community for TTG plugins and products.
NOTICE
The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.
This forum is now closed, and exists here as a read-only archive.
You are not logged in.
Pages: 1
I have chosen inherit font family Lato to be used as my font of choice in the typography section of my design template, but what is displayed is times new roman on my logo how can I rectify this?
Last edited by powerfulphotography (2018-02-28 23:02:05)
If at first, you don't succeed try, try then go to the forum.
https://powerfulphotography.co.uk/
Offline
Isn’t Lato a Google font? Have you added the Google Fonts statement?
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
Correct it is a google font but I have not posted a statement, I wasn't sure what that was
If at first, you don't succeed try, try then go to the forum.
https://powerfulphotography.co.uk/
Offline
The Google fonts statement is what you get from the Google Fonts site. Copy and paste it into the Google Fonts Statement field.
http://community.theturninggate.net/vie … p?id=6382\
you may need to clear template and browser cache after making the change.
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
also, just noticed this, but "inherit" is not a font-family, it's a css value. I don't think it should be in the drop-down list; it's inclusion causes an error that shows up in the browser inspector (probably because it's in the body css and there's nothing above that for inheritance to work??). I think you found a bug, but Matt will need to look into that.
Instead, choose a real font-family from the drop-down and put "lato" in the Prepend font-family field.
(don't choose the blank option in the font-family list, that throws an error too)
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
"Inherit" is not a bug; it's a documented CSS value for the font-family property, and allows the the element's font-family to be inherited from its parent.
Offline
But in this case, it's throwing an error in the inspector. Is that because it's in the body css and there's nothing to inherit from?
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
Inserting the font statement and changing the font family to Gill Sans, sans-serif did the job for me thank you
If at first, you don't succeed try, try then go to the forum.
https://powerfulphotography.co.uk/
Offline
You can use any font-family you want. Gill Sans is a decent enough backup to Lato.
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
Looking for an indication about a font I'm trying to use, I came across this posting.
My problem is that I chose the font Kabel LT Pro Book and it looks good on my display but, of course with all others, it's Helvetica Neue that's seen. I understand the whole websafe font thing but was wondering if there was a way to use this and any other "personal" font?
Offline
Sure. You can use Google Fonts, and Backlight is already set up for that. Or you can embed your own fonts:
https://ttg-tips-and-tricks.barbeephoto … ight-site/
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
Well, I tried...
Put the Kabel LT Pro folder in Backlight>Custom>Fonts and then I wrote this CSS:
@font-face {
font-family: 'Kabel LT Pro';
src: url('/backlight/custom/fonts/Kabel LT Pro.eot'); /* IE9 Compat Modes */
src: url('/backlight/custom/fonts/Kabel LT Pro.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('/backlight/custom/fonts/Kabel LT Pro-Regular.woff') format('woff'), /* Modern Browsers */
url('/backlight/custom/fonts/Kabel LT Pro-Regular.ttf') format('truetype'), /* Safari, Android, iOS */
url('/backlight/custom/fonts/Kabel LT Pro-Regular.svg#svgFontName') format('svg'); /* Legacy iOS */
}
body {
font-family: 'Kabel LT Pro', Fallback, sans-serif;
I then proceeded to put Kabel LT Pro in the Prepend Font-family w/boxes.
Looks great on my machine...only!
Granted it's a weird font but I think it looks great. But I guess nobody will ever see it.
Offline
which site is this on?
double check the name of the font files. my guess is that there shouldn't be any spaces in the font file name.
also, if the font files are in a folder, be sure to include that folder name in the path.
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
I changed the name of the font to Kabel_LT_Pro_Book.ttf The CSS now reads
@font-face {
font-family: 'Kabel_LT_Pro_Book';
src: url('/backlight/custom/fonts/Kabel_LT_Pro_Book.eot'); /* IE9 Compat Modes */
src: url('/backlight/custom/fonts/YourFont.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('/backlight/custom/fonts/Kabel_LT_Pro_Book-Regular.woff') format('woff'), /* Modern Browsers */
url('/backlight/custom/fonts/Kabel_LT_Pro_Book-Regular.ttf') format('truetype'), /* Safari, Android, iOS */
/*url('/backlight/custom/fonts/Kabel_LT_Pro_Book-Regular.svg#svgFontName') format('svg'); /* Legacy iOS */
}
What about the .woff format? Do I need it?
Should I include this php code:
function head() {
echo ‘
<link rel=”stylesheet” type=”text/css” href=”/backlight/fonts/Kabel_LT_Pro_Book.ttf”>
‘;
}
Also, in Backlight, in the TYPOGRAPHY section, as a Prepend Font-family w/, I have Kabel LT Pro This works on my machine but not elsewhere.
Last edited by pideja (2020-02-21 22:15:37)
Offline
Can you post a link to the site using this font?
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
I purchased the Webkit font "Kabel LT Book Pro" and installed the Webkit folder within the FONTS folder. Then, using their instructions (placed a link to their CSS:
<link rel="stylesheet" type="text/css" href="MyFontsWebfontsKit.css">
and your suggested CSS...
body { font-family: KabelLTPro-Book; }
/* custom font */
@font-face {
font-family: 'KabelLTPro-Book';
src: url('/backlight/custom/fonts/KabelLTPro-Book.eot'); /* IE9 Compat Modes */
src: url('/backlight/custom/fonts/KabelLTPro-Book.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('/backlight/custom/fonts/KabelLTPro-Book-Regular.woff') format('woff'), /* Modern Browsers */
url('/backlight/custom/fonts/KabelLTPro-Book-Regular.ttf') format('truetype'), /* Safari, Android, iOS */
url('/backlight/custom/fonts/KabelLTPro-Book-Regular.svg#svgFontName') format('svg'); /* Legacy iOS */
}
I then changed the Prepend Font-family w/ to KabelLTPro-Book
On my machine: still have the Kabel font displayed;
on other stations: type reverted to some kind of Serif font!
Last edited by pideja (2020-02-21 23:05:30)
Offline
href="MyFontsWebfontsKit.css" assumes that you've placed the css file in same folder as every page and album. Make sure there's a complete url to the font kit css file. If you've placed it in the /backlight/custom/fonts/ folder (you would need to create this folder on the server), then the link to it should be:
href="/backlight/custom/fonts/name-of-folder/MyFontsWebfontsKit.css"
again, a link to the site might help
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
The site in question: pideja.ca
I adjusted the Google Fonts Statement (optional) to
<link rel="stylesheet" type="text/css" href="/backlight/custom/css/MyFontsWebfontsKit.css">
Having put that css file in the CSS folder.
Maybe I'm not putting this statement where it should be...Or, should I put the WebfontKit.CSS within the Fonts folder.
Still no Kabel displaying.
Last edited by pideja (2020-02-21 23:29:37)
Offline
SUCCESS!
Having re-read carefully the MyFonts instructions and keeping in mind that most mistakes come from syntax or address errors, I corrected the opening statement in my CSS file to read:
@font-face {font-family: 'KabelLTPro-Book';src: url('/backlight/custom/fonts/webfonts/3B0CE6_0_0.eot');src: url('/backlight/custom/fonts/webfonts/3B0CE6_0_0.eot?#iefix') format('embedded-opentype'),url('/backlight/custom/fonts/webfonts/3B0CE6_0_0.woff2') format('woff2'),url('/backlight/custom/fonts/webfonts/3B0CE6_0_0.woff') format('woff'),url('/backlight/custom/fonts/webfonts/3B0CE6_0_0.ttf') format('truetype');}
Just needed to indicate correctly where the Webfont folder was residing.
Now look very good with that slightly strange Kabel font face.
Offline
Pages: 1