Khaled Hosny
Khaled Hosnykhaled@typo.social
2025-06-11

@ohbendy May be try doing it in a simpler lookup. E.g. without context and no mark filtering to see if deletion works or not. @simoncozens

Khaled Hosnykhaled@typo.social
2025-06-04

@TiroTypeworks I can’t really tell if it is a TeX code issue or a font issue without seeing both.

Khaled Hosnykhaled@typo.social
2025-06-04

@TiroTypeworks Depends on how the symbol is used. If the integral is used as a big operator then it would be the advance width of the integral. If it is used as a regular symbol then it would be like any another symbol (advance width + italic correction + math cut ins). This is determined by the macro (TeX command) that the symbol.

Khaled Hosnykhaled@typo.social
2025-06-04

@iorsh MicroTeX seems to hard-code Computer Modern fonts and does not support OpenType MATH or even changing the font at all.

There are several math renderers that support OpenType MATH and can be more suitable for such project, but I have not tested most of them myself:

github.com/cdelker/ziamath
github.com/math-blocks/math-bl
github.com/mgriebling/SwiftMat

@elih @TiroTypeworks

Khaled Hosnykhaled@typo.social
2025-06-04

@rajeesh Yes, I don’t think any work have been done to support COLRv1. But better ask on luaotfload tracker as I’m not currently closely involved with the project.

Khaled Hosnykhaled@typo.social
2025-06-02

@iorsh FontForge has complete support for editing MATH table. The UI is clumsy at places, but no more clumsier than FontForge UI in general. I used it to build several math fonts, and I think a few open source font projects still use it. @TiroTypeworks

Khaled Hosnykhaled@typo.social
2025-06-02

@TiroTypeworks It might depend on how the symbol is used (it might be explicitly asking to not stretch the anchor), but the engine has no restrictions in this area AFAIK @iorsh

Khaled Hosnykhaled@typo.social
2025-05-31

@iorsh TeX engines in general don’t provide APIs, they are monolithic command line tools. People come up with ways to run TeX as some long running process and feed it code snippets and get DVI in return. I’m not very familiar with this and whether it can be done with XeTeX or not. @TiroTypeworks @rajeesh

Khaled Hosnykhaled@typo.social
2025-05-31

@TiroTypeworks No worries. The original cut-ins implementation was indeed buggy (partly my fault, and partly the spec’s). David M. Jones did a great job fixing it, including inferring the actual intent of the spec. @iorsh

Khaled Hosnykhaled@typo.social
2025-05-31

@TiroTypeworks I wrote some of the MATH support in XeTeX when I was the maintainer, but most of the MATH support (like the rest of XeTeX) was written by Jonathan Kew. Some of the recent fixes are by David M. Jones. @iorsh

Khaled Hosnykhaled@typo.social
2025-05-30

@TiroTypeworks as for the subscript j moving down, it might be caused by subscriptTopMax or subscriptBaselineDropMin constants (github.com/notofonts/math/blob), you can confirm by observing if other glyphs with ascenders move down too @iorsh

Khaled Hosnykhaled@typo.social
2025-05-30

@TiroTypeworks I’m afraid neither LuaTeX, XeTeX, or Word apply math cut-ins for large operators. @iorsh

Khaled Hosnykhaled@typo.social
2025-05-25

@moyogo @anselmschueler HarfBuzz will enable also frac on the number-fraction slash-number string, so a font with only frac feature will also work.

Khaled Hosnykhaled@typo.social
2025-05-02

Any one else seeing weird glyph placement (as in glyphs being displaced up and down left and right) when using Arabic color (OT-SVG) fonts in InDesign?

I tried reporting it but it didn't get any response, and now I wonder if it is a general issue or something in my fonts is triggering it: indesign.uservoice.com/forums/

Arabic text showing a bug in Adobe InDesign.
Khaled Hosnykhaled@typo.social
2025-04-28

@jenskutilek Not sure if that is what you are looking for, but Knuth wrote an article on generating halftone images using METAFONT fonts: Fonts for Digital Halftones (tug.org/TUGboat/tb08-2/tb18knu)

(His Digital Typography book has an updated version of the article, in case you have access to the book)

Khaled Hosny boosted:
2025-04-04

#HarfBuzz 11.0.0 is out with lots of goodies. Among them is integration with the Fontations / Skrifa Rust font library, lots of optimizations, and new APIs:

github.com/harfbuzz/harfbuzz/r

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst