=== Use Any Font | Custom Font Uploader ===
Contributors: dnesscarkey
Tags: custom fonts, font embed, font uploader, typography, install font 
Requires at least: 3.0
Tested up to: 6.1
Stable tag: 6.2.98

Embed any custom font using font uploader and assign to elements. Upload font in 1 format and other needed formats are auto converted even woff2.

== Description ==
Upload any custom fonts you wish and give your site a elegant look. Quickly change font without need of css knowledge. Or you can select from our 23,871+ predefined font collection to add in your site. It even has google fonts which you can store in your own server. 

Click <a href="https://dineshkarki.com.np/use-any-font/demo" target="_blank">HERE</a> for Use Any Font working demo.

Use Any Font gives you freedom to intall custom fonts in your wordpress website. It is different than other font embed services which gives you countable number of fonts to select from neither the one that stores your custom font in remote server. You can use any custom fonts if you have its font format (ttf,otf,woff) without being dependent to other's server uptime. You can just upload one format and the rest needed formats to work in all browsers are automatically converted even in woff2 compressed format for latest browsers and faster load time.

<strong>Features</strong>

* Quick and easy to setup. Change font with ease.
* Support all major browsers including IE, Edge, Firefox, Chrome, Safari, IOS, Andriod, Opera and more.
* Font conversion within the font uploader and quick font assign interface. You can select pre defined html tags or assign it to custom css.
* Use uploaded custom fonts directly from Wordpress Editor, Gutenberg Editor, 
<a href="http://www.elegantthemes.com/affiliates/idevaffiliate.php?id=39880" title="custom font in Divi builder" target="_blank">Divi Builder</a>, 
<a href="https://wordpress.org/plugins/siteorigin-panels/" title="Custom font in Site Origin Page Buider" target="_blank">Site Origin Page Buider</a>, 
<a href="https://wordpress.org/plugins/elementor/" title="Elementor Page Builder" target="_blank">Elementor Page Builder</a>,
<a href="https://www.wpbeaverbuilder.com/?fla=2054&campaign=use-any-font" title="custom font in Beaver Builder" target="_blank">Beaver Builder</a>, 
<a href="https://themify.me/member/aff/go/dnesscarkey/?cr=aHR0cHM6Ly90aGVtaWZ5Lm1lL2J1aWxkZXI=" title="custom font in Themify Builder" target="_blank">Themify Builder</a>,
<a href="https://wordpress.org/themes/kadence/" title="custom font in Kadence Theme and Kadence Blocks" target="_blank">Kadence Theme and Blocks</a>,
<a href="https://oxygenbuilder.com/" title="custom font in Oxygen Builder" target="_blank">Oxygen Builder</a>,
<a href="https://wordpress.org/themes/generatepress/" title="custom font in Generate Press" target="_blank">Generate Press</a>,
<a href="https://wordpress.org/themes/astra/" title="custom font in Astra Theme" target="_blank">Astra Theme</a>,
<a href="https://wordpress.org/themes/oceanwp/" title="custom font in Revolution Slider" target="_blank">Ocean WP Theme</a>,
<a href="https://bit.ly/3auJKzt" title="custom font in Revolution Slider" target="_blank">Revolution Slider</a>,
<a href="https://wpbakery.com/" title="custom font in WPBakery Page Builder" target="_blank">WPBakery Page Builder ( Js Composer )</a>,
and any visual builder using the class. 
* Custom fonts uploaded can be directly used from Theme options panel for major themeforest themes like <a href="https://bit.ly/3auJKzt" target="_blank">Avada, X Theme, Flatsome, Salient, Porto, Shopkeeper, Oshine, WPLMS Learning Management System Theme, KLEO, WoodMart, ListingPro, SimpleMag, ROSA 1, 907, Voice, Grand Restaurant, LeadEngine, Service Finder, MagPlus, Hostiko, Adifier, Puca, GreenMart, Reco, VidoRev, Halena and many more known themes. (1000+). Check out full list here.</a>
* Supports font format including ttf, otf, woff but you only need to upload font in 1 format. Other required fonts are converted automatically by our font convertor.
* Accepts custom font file upto 25 MB.
* Embed fonts using @font-face css. SEO friendly and quick loading due to woff2 compression.
* Multiple custom fonts can be used.
* Faster load time as your custom fonts are stored on your own server.
* Supports font assign based on language for WPML and Polylang multi language plugin.
* Added font display property in @font-face

<strong>Support</strong>

* <a href="https://wordpress.org/support/plugin/use-any-font/" target="_blank">Support Forum</a> to quickly resolve your issues.
* Or you can also send msg using Facebook Msg widget from our website. <a href="https://dineshkarki.com.np">https://dineshkarki.com.np</a>

<strong>Font Conversion API Usage</strong>

* You need API key to connect to our server for font conversion. Our server converts your font and sends it back. You can get key from <a href="https://dineshkarki.com.np/use-any-font/api-key" target="_blank">here</a>. You can also generate Lite / Test API key from button at top of the plugin page. <strong>Note : </strong> Lite / Test API only allow single font conversion.
* Use Any Font uses Font Conversion API developed by Dnesscarkey. Font conversion API helps the plugin to convert the font files in different format (woff, woff2 but not limited to) for faster loading, and multiple browser support. Plugins sends the request to Font conversion server with font files, font conversion server converts it and returns the converted files. Once the conversion is completed, font files are automatically deleted.
* We don't store your fonts in our server neither any of your information except the API key details. Our server deletes the temporary file after the font upload is complete. Your font files are served from your own server.
* For font conversion, our plugin uses server2.dnesscarkey.org and server3.dnesscarkey.org and it is only dedicated to Use Any Font plugin.
* For Font Conversion API terms and condition. Please visit <a href="https://dineshkarki.com.np/use-any-font/terms-conditions">here</a>.


<strong>Installation Video</strong>
[youtube http://www.youtube.com/watch?v=QzGaWIPVwEk]

<strong>Integration for Themes / Plugin Developers</strong>

You can use <strong>uaf_get_font_families();</strong> function to get the list of custom fonts uploaded with Use Any Font. You can add it in your font family select box or list.

<em>if (function_exists('uaf_get_font_families')){
	$uaf_font_families = uaf_get_font_families();	// Returns Array
}</em>

Please do write us after integration and we will add it in our supported list and create a discount code for your users.

== Installation ==

1. Search Use Any Font and click on Install.
1. Activate the use-any-font plugin through the 'Plugins' menu in WordPress.
1. Get the API key and verify it (Needed to connect to server for font conversion).
1. Select Use Any Font under Settings
1. Upload / Add custom font.
1. Assign your custom font to elements.
1. You can also assign the custom font directly from wordpress page/post editor.
1. Your fonts are working in your site now.
1. You may refer to Screenshots tab for visual instructions.

== Frequently Asked Questions ==

= Which font format does plugin accepts and the font size ? =

Currently, ttf, otf, woff font format are accepted but you only need to upload font in 1 format other needed formats to work in all browser are auto generated by our font convertor. Font file upto 25MB is acceptable. However, we suggest you to use smaller ones as far as possible. The font file size directly affects your site load time. 

= From where can i get the font files ? =

Mostly you can download the font files from internet. There are many sites that offer fonts. One of font directory we really like is <a href="https://bit.ly/2wYjOyj" target="_blank">Ultimate Fonts</a>. They only have free fonts which are even free for commercial use. So you can install font and use in any website.

= Does it works with multiple fonts ? =

Ya, it works with multiple fonts. For multiple font conversion request, you need to get the Premium Key.

= Do i need to manually convert fonts ? =

No, you don't need to do it yourself. Just upload your font (supports most of the font format), and the plugin's font convertor does the rest.

= Does it work with Visual Builder like Divi Builder ? =

Ya, it works with any visual builder. For that you can assign class to those elements. Class name are same as font name. Also, we have full support for Divi Builder and SiteOrigin Page Builder. You can assign fonts using their font family dropdown. 

You can check video for more details.
<a href="http://www.elegantthemes.com/affiliates/idevaffiliate.php?id=39880" target="_blank">Divi Builder</a> : https://www.youtube.com/watch?v=Y24TtwNHFMY
<a href="https://wordpress.org/plugins/siteorigin-panels/" target="_blank">Site Origin Page Buider</a> : https://www.youtube.com/watch?v=dA-iXWZSCYs

= Does it works with any theme ? =

Its built-in Font Upload and Font assign section allows you to assign custom fonts to any theme. However, for popular themes like <a href="https://bit.ly/3auJKzt" target="_blank">Avada, X Theme, Flatsome, Salient, Porto, Shopkeeper, Oshine, WPLMS Learning Management System Theme, KLEO, WoodMart, ListingPro, SimpleMag, ROSA 1, 907, Voice, Grand Restaurant, LeadEngine, Service Finder, MagPlus, Hostiko, Adifier, Puca, GreenMart, Reco, VidoRev, Halena and many more known themes. (1000+). Check out full list here.</a>, we have added extra features that allows you to assign the custom font to your theme using the theme options panel.

= Can I assign font based on language ? =

Ya, Our plugin allows you to assign font based on language. It currently supports WPML and Polylang. Quick font changer based on language used. If you are using some others multi lingual plugin, please do contact us and we will try to integrate with our plugin. 

= Where are my fonts stored ? =

All the fonts are stored in your own server. Our server only convert the fonts and sends back. It is stored in wp-content/uploads/useanyfont folder. So there won't be different fonts path and will be indentical to your siteurl.

= Does my font depends upon plugin's server uptime ? =

No, our server is needed during font conversion only. After that all fonts are served from your own server. 

= Not working for me. What can i do ? =

* <a href="https://wordpress.org/support/plugin/use-any-font/" target="_blank">Support Forum</a> to quickly resolve your issues.
* Or you can also send msg using Facebook Msg widget from our website. <a href="https://dineshkarki.com.np">https://dineshkarki.com.np</a>

= How can theme / plugin developer integrate Use Any Font ? =

You can use <strong>uaf_get_font_families();</strong> function to get the list of custom fonts uploaded with Use Any Font. You can add it in your font family select box or list.

<em>if (function_exists('uaf_get_font_families')){
	$uaf_font_families = uaf_get_font_families();	// Returns Array
}</em>

Please do write us after integration and we will add it in our supported list.

== Screenshots ==

1. Screenshot #1. Use Any Font Demo
1. Screenshot #2. Use Any Font Plugin Setup
1. Screenshot #3. Assign font directly from Wordpress Editor
1. Screenshot #4. Font list not showing in editor.
1. Screenshot #5. Disable font list in editor.
1. Screenshot #6. Assign fonts to custom elements.

== Changelog ==

= 6.2.98 =
* Fixed font assign issue in Poly Lang

= 6.2.97 =
* Fixed custom element assign issue.

= 6.2.96 =
* Added woff2 font upload support

= 6.2.95 =
* Fixed cache issue.
* Added Font list for Kadence Theme and Blocks.

= 6.2.94 =
* Fixed Beaver weight selection issue.

= 6.2.93 =
* Fixed Divi Multi Variation Select Issue.
* Fixed Strong & b using dash issue.

= 6.2.92 =
* Fixed language select issue.

= 6.2.91 =
* Fixed warning message close issue.

= 6.2.9 =
* Fixed warning message for font style
* Tested with PHP 8.1

= 6.2.8 =
* Sanitization.

= 6.2.6 =
* Removed use of PHP uploader.

= 6.2.4 =
* Added details about API usage. 

= 6.2.3 =
* Added comment for reasin being using Curl
* Fixed option html issue. 

= 6.2.2 =
* Security Fixes.

= 6.2.1 =
* Fixed warning notice.
* Fixed only 1 font showing in font list
* Security Fixes.

= 6.2 =
* Added multi variation font support.

= 6.1.8 =
* Added wpnonce for forms

= 6.1.7 =
* Fixed rtl issue for Font Search

= 6.1.6 =
* Fixed undefined variable notice.

= 6.1.5 =
* Added custom font support for The7 Theme (https://the7.io/)

= 6.1.4 =
* Added hide key button.
* Fixed cache being cleared for multi language sites when language was changed.

= 6.1.3 =
* Add is_ssl check for Aboslute Font path.

= 6.1.2 =
* Fixed Pagely Cache issue. (https://wordpress.org/support/topic/version-6-1-1-causes-fatal-errors-on-pagely-servers/)

= 6.1.1 =
* Fixed goDaddy Cache flush error.

= 6.1 =
* Added 23,871+ Predefined fonts which are available for both free and commercial use.
* Added auto cache clear for popular cache plugin.

= 6.0.5 =
* Fix WP_Scripts::localize Warning message

= 6.0.4 =
* Fix count warning issue.

= 6.0.3 =
* Fix font not listing in page builders and themes typography.

= 6.0.2 =
* Support for older PHP versions.

= 6.0.1 =
* Builder Font Family missing issue fixed.

= 6.0 =
* New UI interface
* Fixed CDN issue.

= 5.11.5 =
* Remove optional option from font display property

= 5.11.4 =
* Move js code to single file to avoid conflicts.

= 5.11.3 =
* Removed i from italic tags so that it won't affect icons.

= 5.11.2 =
* Extra error handling for font manager. 

= 5.11.1 =
* Added support for WPBakery Page Builder (Js Composer). Adds custom uploaded fonts to WPBakery Typography list.

= 5.11 =
* Added Font demo in admin panel
* Added extra pre defined elements.

= 5.10 =
* Added support for Gutenberg Editor using class.
* Added support for Revolution Slider. Now you can select font family directly from Revolution slider to assign font.

= 5.9 =
* Support for all themes that uses Redux and kirki framework. Full list <a href="https://bit.ly/3auJKzt" target="_blank">here</a>. Custom font now available in Theme Option's typography list that are using these frameworks.

= 5.6 =
* Added support for Generate Press, Astra and Ocean WP Theme.
* Added setting For Font Display (swap, fallback, block) for @font-face

= 5.5 =
* Assign font based on language for WPML & Polylang multi lingual plugins.

= 5.4 =
* Install font upto 25 MB.
* Font convertor uses woff2 compression for better and faster font loading.

= 5.3 =
* Fixed domain verification issue.

= 5.2 =
* Added menu option in elements list.

= 5.1 =
* Fix url issue.

= 5.0 =
* New API Key system, Lite / Test API key generation from plugin page.

= 4.9.2 =
* Adds custom fonts to typography of Themify and Beaver Page Builder

= 4.9.1 =
* Adds custom fonts to typography of Elemenator Page Builder

= 4.7.3 =
* Adds custom fonts to theme options panel for themes like Avada, Salient, Oshine, X Theme, KLEO. (540+ Themes in total)

= 4.7.2 =
* SiteOrigin Page Builder Support

= 4.7.1 =
* Divi Theme Issue Fixes.

= 4.7 =
* Full Support For Divi Admin Visual Builder
* Use of relative path as default nowonwards
* Alternative server selection for font upload and API verification.

= 4.6 =
* Directly assign font to element using the class identical to font name.

= 4.5.1 =
* Fixed form validation js error.

= 4.5 =
* Fixed SSL font loading issue.

= 4.4.4 =
* Font upload issue fixed.

= 4.4.3 =
* Fixed couldn't receive font file issue.

= 4.4.2 =
* Fixed API verification issue

= 4.4.1 =
* Fixed SSL API key issue

= 4.3.7 =
* Secure file upload URL for Default Js font Uploader

= 4.3.6 =
* Fixed validation for PHP font uploader
* Sanitize font name 
* Test with 4.3.1

= 4.3.5 =
* Fixed host name lookup issue
* Added SSL for font upload path
* Test with 4.3

= 4.3.4 =
* License key trim added. 

= 4.3.3 =
* Font convertor url change.

= 4.3.2 =
* Added relative font path settings. 
* Added Css version system.

= 4.3.1 =
* Add js extension validation for font file.

= 4.3 =
* Add font using Ajax Font Upload.
* Fixed Couldn't receive font file for conversion issue.

= 4.2.4 =
* Font size increase upto 10 MB
* Fixed js validation issue.
* Add server side validation for font file.

= 4.2.3 =
* Removed rarely used font formats from being upload. They were making font convertor server down repeatedly.
* Fixed name validation issue

= 4.2.2 =
* Tested to work with wordpress 4.0
* Jquery Validation Plugin Updated

= 4.2.1 =
* Using wp_remote_get inplace of wp_remove_fopen for API Key

= 4.2 =
* Compatible with 3.9
* Fixed font list issue in editor for 3.9

= 4.1.1 =
* Minor update
* Added font formats (dfont, suit)
* Updated FAQ and Screenshots.
* Tested with 3.8.1

= 4.1 =
* Added Support for SSL (https)
* Additional settings to disbale font list in wordpress editor.
* Tested with 3.8

= 4.0 =
* Added Network Site Support
* Assign font directly from Wordpress Editor

= 3.2 =
* Tested with 3.5.2

= 3.1 =
* Minor update
* Add woff and svg font format

= 3.0 =
* Major update
* Supports more font format now.
* Better error handling
* Added hyperlink (a tag) in default element select.

= 2.1 =
* Added file upload validation.

= 2.0 =
* Added server connectivity test.

= 1.1 =
* Fixed font not loading issue when there is space in font file name.
* Added Instructions in Plugin Interface.

= 1.0 =
* First Release