#let glyph-wise-top-align(body) = {
let clusters = body
.children
.map(x => if x.func() == text { x.text.clusters() } else { x })
.flatten()
set text(top-edge: "bounds", weight: "bold")
context {
let max-height = calc.max(..clusters.map(c => measure(c).height))
clusters.map(box.with(height: max-height)).join()
}
}
#let small = text.with(0.5em)
#let my-logo = glyph-wise-top-align[FOO#small[B]AR]
#my-logo
There is metalogo – Typst Universe, but AFAIK it’s not perfect.