Last edited by megamein on June 18th 2023, 9:56 pm; edited 3 times in total
This is a Hitskin.com skin preview
Install the skin • Return to the skin page
This is a Hitskin.com skin preview
Install the skin • Return to the skin page
TonnyKamper likes this post
TonnyKamper likes this post
Ape likes this post
@font-face {
font-family: 'FONT NAME';
src: url("FONT LINK");
}
Ape and TonnyKamper like this post
megamein wrote:
but some fonts don't work.
like pirulen, interdimensional, pokemon, cyberpunk
Niko wrote:Coucou @megamein
you can look for new fonts to install on GoogleFonts (https://fonts.google.com/)
You need to retrieve the font URL, similar to this one:
After that, go to ACP > Display > Images & Colors > Colors > CSS stylesheet and add this code, replacing the name and font link
- Code:
@font-face {
font-family: 'FONT NAME';
src: url("FONT LINK");
}
This resource may help you in understanding how to do that: https://fonts.google.com/knowledge/using_type/using_web_fonts_from_a_font_delivery_service
Have a nice day
@font-face {
font-family: 'Henny Penny';
src: url("Henny Penny");
@font-face {
font-family: 'Henny_Penny';
src: url("Henny_Penny".woff2) format('woff2');
Administration Panel > Modules > JavaScript codes management > new script.
Title : Your choice
Placement : In all the pages
Paste the code below :
$(function(){$(function() {
$('.sceditor-button-font').click(function() {
addFont('Calibri');
addFont('Papyrus');
addFont('Avantgarde');
$('.sceditor-font-option.new-font').click(function(e){$('#text_editor_textarea').sceditor('instance').insertText('[font='+$(this).attr('data-font')+']','[/font]');$('.sceditor-font-picker').remove();e.preventDefault()})
});
function addFont(font){$('.sceditor-font-picker div').append('<a unselectable="on" class="sceditor-font-option new-font" href="#" data-font="'+font+'"><font unselectable="on" face="'+font+'">'+font+'</font></a>')}
})});
megamein wrote:so let's say I want this font:
https://fonts.google.com/specimen/Henny+Penny
the code should be
- Code:
@font-face {
font-family: 'Henny Penny';
src: url("Henny Penny");
or
?
- Code:
@font-face {
font-family: 'Henny_Penny';
src: url("Henny_Penny".woff2) format('woff2');
|
|
Niko wrote:megamein wrote:so let's say I want this font:
https://fonts.google.com/specimen/Henny+Penny
the code should be
- Code:
@font-face {
font-family: 'Henny Penny';
src: url("Henny Penny");
or
?
- Code:
@font-face {
font-family: 'Henny_Penny';
src: url("Henny_Penny".woff2) format('woff2');
No, the CSS code should be something like the one contained here (for the font you mentioned)
So you can copy-paste the content of the page in your CSS and save. Then the Font name will be the one you see in the code, so for- it is
- Code:
font-family: 'Inter', sans-serif;
- Code:
Inter
@import url('https://fonts.googleapis.com/css2?family=Henny+Penny&display=swap');
font[face="Henny Penny"] {
font-family: 'Henny Penny', cursive;
}
$(function(){$(function() {
$('.sceditor-button-font').click(function() {
addFont('Henny Penny');
$('.sceditor-font-option.new-font').click(function(e){$('#text_editor_textarea').sceditor('instance').insertText('[font='+$(this).attr('data-font')+']','[/font]');$('.sceditor-font-picker').remove();e.preventDefault()})
});
function addFont(font){$('.sceditor-font-picker div').append('<a unselectable="on" class="sceditor-font-option new-font" href="#" data-font="'+font+'"><font unselectable="on" face="'+font+'">'+font+'</font></a>')}
})});
Niko, TonnyKamper and Razor12345 like this post
font-family: 'Henny Penny', cursive;
font-size: 1.25rem;
Niko likes this post
tikky wrote:@megamein: Probably is the text size. In the CSS code findbelow add as a new line
- Code:
font-family: 'Henny Penny', cursive;
- Code:
font-size: 1.25rem;
https://www.yotamarker.com/t468-henny-penny-test#1235tikky wrote:Yes, that is the font being used. What is your forum? Can I see a thread that has a font to see the problem? Thanks
/* Henny Penny font */
@font-face {
font-family: 'Henny Penny';
font-style: normal;
font-weight: 400;
src: url(https://fonts.gstatic.com/s/hennypenny/v17/wXKvE3UZookzsxz_kjGSfPQtvXIZt9DS.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
font[face="Henny Penny"] {
font-family: 'Henny Penny', serif;
font-weight: 400;
}
megamein, TonnyKamper and tikky like this post
@import url('https://fonts.googleapis.com/css2?family=Henny+Penny&display=swap');
|
<link href="https://fonts.googleapis.com/css2?family=Henny+Penny&display=swap" rel="stylesheet">
Niko likes this post
Problem solved & topic archived.
|