Duospaced font

Visual comparison of a duospaced CJK font (Migu 2M) versus a monospaced font (Consolas).

A duospaced font (also called a duospace font) is a fixed-width font whose letters and characters occupy either of two integer multiples of a specified, fixed horizontal space. Traditionally, this means either a single or double character width,[1] although the term has also been applied to fonts using fixed character widths with another simple ratio between them.[2]

These dual character widths are also referred to as half-width and full-width, where a full-width character occupies double the width of a half-width character. This contrasts with variable-width fonts, where the letters and spacings have more than two different widths. And, unlike monospaced fonts, this means a character can occupy up to two effective character widths instead of a single character width. This extra horizontal space allows for the accommodation of wider glyphs, such as large ideographs, that cannot reasonably fit into the single character width of strictly uniform, monospaced font.

In CJK typography

The idea of a "duospaced" font came from East Asian typography, where the local scripts of CJK characters simply cannot fit into a narrow column used in Latin fixed-pitch fonts.[1] Note that this "duospace" name is mostly a historical (c. 1990) Western distinction; Asian typefaces with such characteristics simply call themselves "monospaced" or "fixed-pitch".[3]

CJK monospace fonts typically include halfwidth and fullwidth forms of characters that provide different widths for typesetting. In addition to East Asian characters and such forms, it is common for other technical and pictographic symbols to become duospaced in some East Asian fonts, a phenomenon known as "ambiguous width".[3]

It is a common pitfall for Western programmers to neglect support for such fonts:

  • Terminal applications may have misaligned output due to assuming all character "pitch" to be 1 column wide. The wcwidth() function, originally part of POSIX, is available for querying the width of characters.[4]
  • Qt has a bug where it fails to list CJK monospaced fonts because the underlying fontconfig defined "monospace" as "fixed-pitch" fonts.[5]

باستثناء بعض الخطوط اليابانية أحادية المسافة مثل Source Han Code JP ، حيث يُستخدم عرض 1.5× كعرض للرمز ، [ 6 ] فإن جميع الخطوط الصينية واليابانية والكورية أحادية المسافة تقريبًا تستخدم عرض 2× كعرض للرمز. [ 3 ] (في حالة اللغة الكورية ، تُصمم أحرف الهانغول، التي عادةً ما تكون أضيق قليلاً من الرموز، لتتناسب معها).

بعض خطوط CJK أحادية المسافة ذات عرضين أو أكثر هي:

في الطباعة الغربية

تتشابه الخطوط الغربية ذات المسافات المزدوجة في الغرض مع الخطوط الصينية واليابانية والكورية ذات المسافات المزدوجة، لكنها أقل شيوعًا وأقل دعمًا. ويبدو أن الفكرة تقتصر على خط iA Writer حيث يبلغ عرض الأحرف اللاتينية wmWM1.5 ضعف عرض الأحرف اللاتينية التقليدية، مما يحافظ على شكل الحرف التقليدي بشكل أفضل. [ 2 ]

انظر أيضاً

ملحوظات

  1. 1 2 3 رسميًا "خط أحادي المسافة".

مراجع

  1. 1 2 "خصائص تباعد الخطوط" . مركز معارف IBM . شركة IBM. 1990. تم الاطلاع عليه بتاريخ 17-09-2017 .
  2. 1 2 أبهيمانيو غوشال. "خط 'Duospace' الخاص بـ iA Writer: انسيابية أفضل مع الحفاظ على مزايا خط 'Monospace'"" . The Next Web .
  3. 1 2 3 "UAX #11: عرض شرق آسيا" . unicode.org . بالنسبة للخطوط ذات المسافة الثابتة بين الأحرف، يُترجم هذا العرض إلى عرض عرض إما نصف وحدة أو وحدة كاملة. [...] تتصرف بعض الأحرف بشكل مختلف في سياق شرق آسيا عنه في المحتوى غير الآسيوي. تُعتبر خاصية العرض الافتراضية غامضة، ويجب تحديدها كخاصية عرض فعلية بناءً على السياق.
  4. "تقديم حل لمشاكل الأحرف العريضة في الطرفية · مقالات" . jeffquast.com .
  5. "إعادة النظر في اكتشاف المسافات: عرض مزدوج => عرض متعدد (#176) · المشكلات · fontconfig / fontconfig" . GitLab .
  6. ^ هاتوري ، ماساتاكا (11/06/2015). "مقدمة عن مصدر هان كود JP" . مدونة نوع CJK . كين لوند / أدوبي .
  7. "الخطوط المُعرّفة مسبقًا" . أوراكل . تم الاسترجاع في 17-09-2017 .
  8. 1 2 "خطوط TrueType و OpenType" . مركز معارف IBM . شركة IBM . تم الاطلاع عليه بتاريخ 17-09-2017 .
  9. 1 2 "جداول ملخص لخطوط WorldType" . مركز معارف IBM . شركة IBM . تم الاسترجاع في 17-09-2017 .
  10. ^ هاتوري ، ماساتاكا (11/06/2015). "مقدمة عن مصدر هان كود JP" . مدونة نوع CJK . كين لوند / أدوبي .