ما هو WOFF2؟ شرح تنسيق الخط المفتوح على الويب 2.0
تنسيق خط ويب من W3C يستخدم ضغط Brotli لأصغر تنزيلات للخطوط.
آخر تحديث:
What is it?
WOFF2 (Web Open Font Format 2.0) is the successor to WOFF, published as a W3C Recommendation in March 2018. Like WOFF, it wraps SFNT-based TrueType or OpenType fonts, but it achieves substantially smaller file sizes.
WOFF2 replaces WOFF's zlib compression with the Brotli algorithm and adds font-specific preprocessing of the glyph tables. This typically yields around 30% better compression than WOFF, while supporting the full TrueType/OpenType feature set including variable fonts and font collections.
Technical Specifications
Pros & Cons
Advantages
WOFF2 uses Brotli plus glyph-table preprocessing, typically about 30% smaller than WOFF for faster loading.
It supports the entire TrueType/OpenType spec, including variable fonts, color fonts, and font collections.
WOFF2 is implemented in all major modern browsers and is widely used in production.
Brotli decoding is designed to be fast and memory-friendly even on lower-end mobile devices.
Disadvantages
Legacy browsers that predate WOFF2 require a WOFF or TTF fallback.
WOFF2 is designed for web delivery and is not used for desktop installation or print.
Creating WOFF2 requires Brotli-capable tools, though these are now widely available.
When to Use It
WOFF2 is the default modern format for serving custom web fonts.
تسليم الخط الرئيسي على الويب
Sites serve WOFF2 first via @font-face to give most visitors the smallest, fastest fonts.
نشر الخط المتغير
WOFF2 efficiently delivers variable fonts, packing many weights and styles into one compressed file.
تحسين الأداء
Developers adopt WOFF2 to reduce page weight and improve Core Web Vitals on font-heavy pages.
How to open a WOFF2 file
Software for working with WOFF2 files can be categorized into professional tools, free/open-source options, browser-based utilities, and built-in applications. Professional tools often cater to designers and developers needing advanced features, while free/open-source options are suitable for users on a budget. Browser-based utilities provide quick access without installation, making them ideal for casual users. Built-in applications may offer basic functionality for users who need minimal editing or viewing capabilities.
When choosing software for WOFF2, key factors include feature fidelity, whether editing or viewing is required, cost model, and platform compatibility. Users should consider if they need robust editing features or simple viewing capabilities. Export needs are also crucial, as some tools may offer limited output formats. In cases where extensive editing is unnecessary, converting WOFF2 to other formats might be a more efficient solution.
FontForge 2023
FontForge is a free and open-source font editor that supports WOFF2 files. It allows users to view and edit font glyphs, making it suitable for detailed font design work.
- Full glyph editing and manipulation
- Support for multiple font formats
- OpenType and TrueType support
- Kerning and hinting adjustments
- Comprehensive editing capabilities for fonts
- Supports a wide range of font formats
- Active community and extensive documentation
- Steeper learning curve for beginners
- User interface can be less intuitive
يصدّر إلى: TTF, OTF, WOFF, WOFF2, SVG
الأفضل لـ: FontForge is ideal for users needing a powerful, free tool for comprehensive WOFF2 font editing.
زيارة FontForge →Transfonter 2023
Transfonter is a web-based service that allows users to convert WOFF2 files into various web font formats. It is user-friendly and focuses on quick conversions rather than extensive editing.
- Batch conversion of font files
- Options for font subsetting
- Custom CSS generation for web use
- Preview of converted fonts
- Quick and easy to use online tool
- No installation required
- Supports multiple font formats
- Limited editing capabilities
- Dependent on internet connection
يصدّر إلى: WOFF, TTF, EOT, SVG
الأفضل لـ: Transfonter is perfect for users needing fast and simple WOFF2 conversions without installation.
زيارة Transfonter →Glyphs 3.0
Glyphs is a professional font creation tool that supports WOFF2 files, offering advanced features for type designers. It allows for precise control over font design and export options.
- Advanced glyph editing tools
- Multiple master and variable font support
- Extensive OpenType feature support
- Export to multiple web font formats
- Highly professional and feature-rich
- Intuitive interface for designers
- Strong support for modern font technologies
- High cost may deter casual users
- macOS only limits accessibility
يصدّر إلى: TTF, OTF, WOFF, WOFF2, SVG
الأفضل لـ: Glyphs is best for professional type designers who require a comprehensive and powerful tool for WOFF2 font creation.
زيارة Glyphs →Webfont Generator 2023
Webfont Generator is an online tool that converts fonts, including WOFF2, into web-friendly formats. It is designed for web developers looking to optimize font delivery for websites.
- Upload and convert multiple font formats
- Generate CSS for web integration
- Options for font subsetting
- Preview fonts before download
- Simple and effective web-based tool
- No software installation required
- Generates necessary CSS automatically
- Limited editing features
- Free version has some restrictions
يصدّر إلى: WOFF, TTF, EOT, SVG
الأفضل لـ: Webfont Generator is ideal for web developers needing a straightforward solution for converting WOFF2 fonts for online use.
زيارة Webfont Generator →Convert WOFF2 Files Free
Use our free online converter to convert WOFF2 and other formats - no signup, no watermarks.
Try Font Converter Free