Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

190
Visualizações
Get specific Glyphs affected by OpenType feature

I am currently trying to create an overview for typefaces, displaying all glyphs and their alternatives. For this I am using opentype.js to extract all necessary information. I've been looking into these featureLists and lookups but I can't yet wrap my head around how they work.

Specifically, for example, I want to get all glyphs that change when "ss01" is enabled.

Any pointers where that information is stored or if there are any libraries that can help me with that are greatly appreciated!

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

Within the font, that date is stored in the GSUB table, specifically within lookup subtables. The lookup subtables can be of different types, which are different kinds of substitutions (see the GSUB lookup type enumeration at https://docs.microsoft.com/en-us/typography/opentype/spec/gsub#table-organization), and which use different formats for representing the data.

A feature like 'ss01' will often use type 1 lookup subtables, which are single substitutions: replace one glyph with one glyph. Type 1 lookup subtables are represented using two simple formats (the simplest formats among GSUB lookup types). The two formats differ in how they represent what glyphs are output by the substitution; both use a coverage subtable to describe the inputs—the set of glyphs that get substituted. Coverage tables can be represented using two formats, but both formats represent the same conceptual info: a set of glyphs. So, getting the glyphs in the coverage table for type 1 lookup subtables would answer your question... for that lookup type.

There's nothing preventing a font developer from using other basic lookup types for 'ss01'—multiple substitution (one to many, type 2), alternate substitution (one to one of many, type 3), or ligature substitution (many to one, type 4)—though for 'ss01' that's probably not likely. However, there are also contextual substitution types (substitute glyphs if in a matching glyph-sequence context), and in those cases the formats are more complex and it will be less simple to get the info you want. All these types have coverage tables that indicate the first glyph in the input sequence that is acted on, though that glyph might not actually be acted upon. Unless you can find a library that has already solved this, you'll need to get familiar with all of these lookup subtable types.

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda