You may encounter an error when using certain fond commands if you do not have the relevant LaTeX font packages installed. You should ensure these are added and called out in your preamble before compiling your code.