Embedding fonts in custom components

Hey there, just a quick question that im having trouble find answers for…

Im currently writing a component for work but i need to embed a font in it somehow and be able to access it in code when creating text formats.

How do i go about doing this :o?

Thx in advance!