Skip to content

Font fallback should allow selection of a Mul font #75

Open

Description

@r12a

This issue is applicable to Khmer script orthographies.

Modern Khmer has several distinct styles of font, each of which is used for different purposes. The round style (អក្សរមូល /ʔɑːksɑː muːl/) has heavier, more rounded letter shapes, and includes more ligated forms. It is commonly used for titles and headings in Cambodian documents, books, or currency, as well as on shop signs or banners. It may also be used to emphasise important names or nouns. The regular font weight looks like bolded text in comparison to the upright font style.

Authors using a Mul font in their text should be able to indicate that any font fallback picks a Mul font, rather than a random Khmer font. Otherwise, the distinctions between certain types of text on a page may be lost.

More:

The original GAP

Currently there is no way to tell the browser to fall back to a Mul font, rather than another font.

Neither Gecko, Blink, nor Webkit support this. Before they can, CSS needs to provide a way for authors to indicate that a khmer mul generic font should be used.

Priority

This is a useful feature for Khmer, which uses the Mul style frequently in documents and signage. Marking as Advanced, since there is not the imperative to use such a font (unlike some other font styles). Some may see this as Basic, given the prevalence of this convention.

Tests & results

Interactive test, font-family:generic(khmer-mul) will apply a Mul font in Khmer

The following pages may be useful for checking the test results:

Action taken

Discussion document: Generic font families

CSS discussion threads:

Browser bug reports: Gecko • Blink • WebKit

Platform Status: Blink

Outcomes

The CSS Fonts 4 spec now defines a generic(ident) syntax which will be used for newly-introduced, and especially for script-specific, generics.

The CSS WG resolved to add this as a new generic font family, and generic(khmer-mul) is now in CSS Fonts 4.

Browsers are not yet supporting it.

Activity

  1. r12a commented on Mar 14, 2024

    @r12a
    ContributorAuthor

    The first comment in this issue contains text that will automatically appear in one or more gap-analysis documents as a subsection with the same title as this issue. Any edits made to that comment will be immediately available in the Editor's draft of the document. Proposals for changes or discussion of the content can be made by adding comments below this point.

    Relevant gap analysis documents include:
    Khmer

  2. moved this to Awaiting spec text in Gap-analysis pipelineon Jun 20, 2024
  3. svgeesus commented on Jan 23, 2025

    @svgeesus

    Currently there is no way to tell the browser to fall back to a Mul font, rather than another font.
    generic(mul) has not yet been added as one of the generic family names.

    The CSS WG resolved to add this as a new generic font family, and generic(khmer-mul) is now in CSS Fonts 4

  4. moved this from Awaiting spec text to Spec ready, pending bug report in Gap-analysis pipelineon Jan 31, 2025
  5. xfq commented on Sep 1, 2026

    @xfq
    Member

    Added links to browser bug reports.

  6. svgeesus commented on Sep 4, 2026

    @svgeesus

    Tests & results

    Interactive test, font-family:generic(mul) will apply a Mul font in Khmer

    It would be helpful to update this old test to use what is in the CSS Fonts 4 specification: generic(khmer-mul) rather than the old, pre-standardization generic(mul).

    Meanwhile, WPT shows `generic(khmer-mul) implemented in four browsers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions