Any app that support OpenType "rand" feature?

2»

Comments

  • Roel Nieskens

    You're right!
    The 'rand' function is enabled by default.
    I did not use the font-feature-settings property.
    In Windows, everything works according to the specification: https://learn.microsoft.com/ru-ru/typography/opentype/spec/features_pt#rand



    HTML Code Example:

    <!DOCTYPE html>
    <html lang="en">
    <head>  
    <meta charset="UTF-8" />
    <title>Test</title>
    <style>
    @font-face {
        font-family: 'FeatureSans';
        src: url('FeatureSans-Regular.ttf') format('truetype');
        font-style: normal;
        font-weight: normal;
        text-rendering: optimizeLegibility;
    }
    body { font-size: 36px; font-family: "FeatureSans"; }
    </style>
    </head>
    <body>
    <p contenteditable="true">AAA The quick brown fox jumps over the lazy dog. 1234567890</p>
    </body>
    </html>

    John Butler
    I think that browser support is implemented by WPF, but I can't say for sure.


  • Roel Nieskens
    Roel Nieskens Posts: 188
    I wanted to add an issue to @Simon Cozens's repo when I found more info in this existing issue: https://github.com/simoncozens/feature-tags/issues/9

    If you do set it through `font-feature-settings`, a value of `255` works too (still not in Safari though).