I have an emoji inside a paragraph.
#set text(font: "New Computer Modern", size: 10pt)
#lorem(50) 😂 #lorem(50)
And the problem is that it increases line spacing. How to prevent this from happening?

I have an emoji inside a paragraph.
#set text(font: "New Computer Modern", size: 10pt)
#lorem(50) 😂 #lorem(50)
And the problem is that it increases line spacing. How to prevent this from happening?

you can set the text top-edge and bottom-edge to be e.g. "ascender" (or a fixed length) to make line spacing more consistent:
#set text(
font: "New Computer Modern",
size: 10pt,
top-edge: "ascender"
)
#lorem(50) 😂 #lorem(50)

Alternatively you can define a command to change text edges just for the emojis, for example:
#let emoji = text.with(top-edge: "bounds")
#lorem(50) #emoji[😂] #lorem(50)
