Hey my website is in php. I wanna have a section where there are two fields, field 1: The user can enter a string of characters field 2: Drop down selection of different fonts. i wanna be able to display a sample of the font similar to dafont but for only a very small selection of fonts. are there any online video or website tutorials or code that can help me? Thank you in advance.
https://www.w3schools.com/jsref/prop_style_font.asp Once the selection changes, you just trigger (JS) the font change.
Thank you so much. Is there a good way to get the fonts without having the user to download them all? There are 14 different fonts and the total ttf of all 14 files is 1.3 MB in size.
Can they be found on https://fonts.google.com/? User himself won't need to do anything. You just include the necessary fonts and they'll work.
Put each webfont declaration in their own separate CSS file, then dynamically load them into <head> from JavaScript by creating the appropriate <link> tag.