ما هو WOFF2؟ شرح تنسيق الخط المفتوح على الويب 2.0

WOFF2 هو تنسيق خط ويب من W3C يستخدم ضغط Brotli لتقليل حجم خطوط TrueType/OpenType أكثر من WOFF. تعرف على كيفية عمل WOFF2 وفوائده.

أداة تحويل ملفات مجانية عبر الإنترنت. تعمل على Chrome وFirefox وSafari وEdge وOpera والمتصفحات الحديثة الأخرى على Windows وmacOS وLinux وAndroid وiOS. لا حاجة لتثبيت برامج أو تسجيل. تتم جميع التحويلات مباشرة في متصفحك، لذا لا تغادر ملفاتك جهازك. مجانية للاستخدام بدون حساب.

Font

ما هو WOFF2؟ شرح تنسيق الخط المفتوح على الويب 2.0

تنسيق خط ويب من W3C يستخدم ضغط Brotli لأصغر تنزيلات للخطوط.

آخر تحديث:

Year2018
TypeWeb font wrapper
UsageModern web fonts

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

DeveloperW3C (reference implementation by Google)
File Extension.woff2
MIME Typefont/woff2
Released2018 (W3C Recommendation)
TypeBrotli-compressed web font wrapper (SFNT-based)

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.

يتطلب أدوات Brotli

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

Windows, macOS, LinuxFree (GPL)

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

All (browser)Free / Paid

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

macOSOne-time $299

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

All (browser)Free / Paid

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

References

  1. WOFF File Format 2.0 - W3C
  2. WOFF 2.0 improves compression - W3C Press Release
  3. Web Open Font Format - Wikipedia
  4. font/woff2 media type - IANA