- پشتیبانی از نسخه های
- 2.0
- 2.1
- 2.2


XenForo از فونت آیکون Font Awesome Pro 5 استفاده می کند که حاوی چند هزار آیکون است که XenForo معمولاً فقط از چند صد آیکون استفاده می کند.
اما از آنجایی که تمام نمادها در CSS و فایلهای فونت گنجانده شدهاند، مرورگرها باید فایلهای فونت کامل و CSS را دانلود کنند که در بیشتر موارد باعث سربار قابل توجهی میشود.
با زیرتنظیم فونت به گونهای که فقط آیکونهایی را شامل شود که واقعاً استفاده میشوند، اندازه فایلهای فونت و CSS اغلب میتواند به شدت کاهش یابد که زمان بارگذاری صفحه را بهبود میبخشد.
به طور معمول، اندازه فایل های فونت را می توان بیش از 80٪ کاهش داد.
این افزونه امکان خودکارسازی فرآیند ایجاد زیر مجموعهها را تا حد امکان فراهم میکند:
میتواند بهطور خودکار پایگاه داده و فایلهای PHP را برای منابع نماد فونت عالی اسکن کند
می تواند موجودیت های پایگاه داده (مانند عبارات، الگوها، BB-Codes و غیره) را برای تغییرات نظارت کرده و زیر مجموعه را بر اساس آن تنظیم کند.
میتواند با استفاده از fonttools/pyftsubset یا transfonter.org نصبشده محلی، زیرمجموعهها را انجام دهد.
این به شما امکان می دهد به راحتی آیکون هایی را اضافه کنید که به طور خودکار کشف نمی شوند
این به شما امکان می دهد نمادهایی را که به طور خودکار کشف شده اند اما در واقع استفاده نمی شوند را حذف کنید (مثلاً اگر ویژگی استفاده کننده از آنها استفاده نمی شود)
میتواند الگوها یا فایلهای خاصی را از اسکن شدن حذف کند (که میتواند مفید باشد اگر آن نمادهای مرجع بدون استفاده واقعی از آنها مفید باشد)
استراتژی های مختلفی برای بارگیری زیرمجموعه ها و CSS ارائه می دهد
از AMPXF پشتیبانی می کند
اگر pyftsubset در دسترس نباشد، این افزونه از https://transfonter.org برای ایجاد زیرمجموعه ها استفاده می کند، به عنوان مثال. در حین نصب و عملکرد عادی با این سرویس تماس می گیرد.
این افزونه به اندازه ای که هست قابل استفاده نخواهد بود (خوب حداقل فکر می کنم قابل استفاده است

XenForo uses the icoon font Font Awesome Pro 5 which contains a few thousand icons of which XenForo does usually only use a few hundred.
But as all icons are included in the CSS and font files, browsers have to download the full font files and CSS which does cause a significant overhead in most cases.
By subsetting the font to include only those icons that are actually being used, the size of the font files and CSS can often be drastically reduced which does improve page loading time.
Typically, the size of the font files can be reduced by over 80%.
This Add-on does allow to automate the process of creating subsets as much as possible:
It can automatically scan the database and PHP files for Font Awesome icon references
It can monitor database entities (like Phrases, Templates, BB-Codes, etc.) for changes and adjust the subset accordingly
It can perform subsetting using locally installed fonttools/pyftsubset or transfonter.org
It does allow you to easily add icons that are not discovered automatically
It does allow you to exclude icons that have been discovered automatically but are not actually being used (for example if the feature that uses them is not being used)
It can exclude certain templates or files from being scanned (which can be useful if those reference icons without actually using them)
It does offer various strategies to load subsets and CSS
It does support AMPXF
If pyftsubset is not available, this Add-on does use https://transfonter.org to create the subsets, eg. it does make calls to this service during installation and normal operation.
This Add-on wouldn't be as usable as it is (well at least I think it is usable
) without your feedback!
But as all icons are included in the CSS and font files, browsers have to download the full font files and CSS which does cause a significant overhead in most cases.
By subsetting the font to include only those icons that are actually being used, the size of the font files and CSS can often be drastically reduced which does improve page loading time.
Typically, the size of the font files can be reduced by over 80%.
This Add-on does allow to automate the process of creating subsets as much as possible:
It can automatically scan the database and PHP files for Font Awesome icon references
It can monitor database entities (like Phrases, Templates, BB-Codes, etc.) for changes and adjust the subset accordingly
It can perform subsetting using locally installed fonttools/pyftsubset or transfonter.org
It does allow you to easily add icons that are not discovered automatically
It does allow you to exclude icons that have been discovered automatically but are not actually being used (for example if the feature that uses them is not being used)
It can exclude certain templates or files from being scanned (which can be useful if those reference icons without actually using them)
It does offer various strategies to load subsets and CSS
It does support AMPXF
If pyftsubset is not available, this Add-on does use https://transfonter.org to create the subsets, eg. it does make calls to this service during installation and normal operation.
This Add-on wouldn't be as usable as it is (well at least I think it is usable
