Home › Forums › Support › Unable to change Lato font size and character spacing This topic has 9 replies, 3 voices, and was last updated 3 years, 8 months ago by David. Viewing 10 posts - 1 through 10 (of 10 total) Author Posts July 23, 2020 at 12:22 pm #1373923 Ben I have loaded Google fonts and am able to select all the sizes and spacing I need in elementor. However, in the GeneratePress customize view, I am only able to select 300, 500, 700 and 900 and increment the character spacing by 1 (not 0.5). Could you please help me with this? I need a font size of 800 and a character spacing of 0.5 for my fonts! July 23, 2020 at 2:44 pm #1374046 TomLead Developer Lead Developer Hi there, You can add to the available variants like this: add_filter( 'generate_google_fonts_array', function( $fonts ) { $fonts['lato']['variants'] = array( '300', '500', '700', '800', '900' ); // Add as many as you like. return $fonts; } ); How are you currently adjusting the letter spacing? July 24, 2020 at 2:34 am #1374501 Ben I am currently changing the character spacing in the typography section on the customize view, using the slider. July 24, 2020 at 2:45 am #1374521 Ben add_filter( ‘generate_google_fonts_array’, function( $fonts ) { $fonts[‘lato’][‘variants’] = array( ‘300’, ‘500’, ‘700’, ‘800’, ‘900’ ); // Add as many as you like. return $fonts; } ); Also this isn’t CSS so I am unable to add it to the Additional CSS section…it’s returning an error. Where am I meant to add this? July 24, 2020 at 2:50 am #1374528 DavidStaff Customer Support Hi there, that code is PHP: https://docs.generatepress.com/article/adding-php/ July 24, 2020 at 3:01 am #1374535 Ben Thanks…could you also let me know about the character spacing? July 24, 2020 at 3:04 am #1374544 Ben Hi – the snippet you’ve given isn’t working. I’ve added the snippet, activated it and it’s not appearing in the typography section of the customize view… July 24, 2020 at 4:09 am #1374582 DavidStaff Customer Support Is it only 800 that is missing? If so thats because it doesn’t exist: https://fonts.google.com/specimen/Lato?query=lato Elementor may be allowing you to set 800 but the browser will just use the closest match. Can you provide a screenshot of the character spacing setting you’re using ? July 24, 2020 at 7:09 am #1374706 Ben Hi here is the link July 24, 2020 at 8:39 am #1374965 DavidStaff Customer Support Thats not GP’s customizer options for typography. Do you have any other plugins installed that would extend those options ? Author Posts Viewing 10 posts - 1 through 10 (of 10 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In