Giter Site home page Giter Site logo

Comments (5)

kenmcd avatar kenmcd commented on June 3, 2024

It appears you have applied the Tabular Figures to all the text, not just the figures.
In Inter v4 the tabular figures feature also includes a replacement for the space character (with space.tf which is a bit narrower).
When Affinity applies the OpenType replacement, the space loses its normal line-breaking characteristics.
Sometimes this makes sense.
Sometimes this does not make sense.
This has been discussed in the Affinity forum.
For example here: Justification Not Working

Note: the replacement space is treated like any other visible text character which makes the text have no spaces, so it is effectively one long block of characters - which Affinity then breaks at odd places. Remove all spaces from your text and you will see the same thing.

The work-around is to only apply the Tabular Figures feature to figures - not all the text.

from inter.

apcamargo avatar apcamargo commented on June 3, 2024

That makes sense. Thanks for the clarification.

I guess this is an Affinity Designer/Publisher bug then, not Inter. What is the reason Inter uses space.tf when tabular figures are activated?

from inter.

kenmcd avatar kenmcd commented on June 3, 2024

What is the reason Inter uses space.tf when tabular figures are activated?

So things will line-up when using a plain space.
Some fonts will only use the punctuation space (to replace comma or period) and the figure space to replace figures.
Often international financial reports just use those small punctuation spaces instead of a comma or period to break for 000's.
Avoids the whole commas/period vs. periods/comma issue.

This issue also arose in the Affinity forum when someone was using a font for Latin text and the font was primarily made for Arabic - and by default it had an OpenType replacement for space which was wider - which was then also treated by Affinity as a plain text character.
Messed-up his Latin text.

from inter.

apcamargo avatar apcamargo commented on June 3, 2024

Interesting, this is much more complex than I imagined. Why does Source Sans, for instance, still keeps numbers aligned when using spaces (which, I assume, means it uses punctuation spaces) but doesn't have the same problem in affinity as Inter? Does this mean that Source Sans replaces spaces contextually while Inter replaces all spaces?

from inter.

kenmcd avatar kenmcd commented on June 3, 2024

Source Sans 3 (and Pro) has Tabular Figures by default.
So no need to enable them in Affinity, and no different space character to deal with.
They do have a figurespace of the same width.
No punctuationspace but it does have a thinspace and narrownobreakspace which can also be used.

Some fonts default to Proportional Lining figures (like Inter).
Some fonts default to Tabular Lining figures (like Source Sans).
Some fonts default to Proportional Oldstyle figures (e.g. EB Garamond, Junicode).
So depending on the default figures, a font may or may not also add a tabular figures feature.

from inter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.