Did the imperial examination papers in Tang and Song Dynasties have standard fonts?

There is no mandatory calligraphy restriction, as long as it looks good and clear.

But in fact, the Ming and Qing dynasties did not say that everyone should write pavilion style, but writing pavilion style may be more easily praised. But if calligraphy is really good, it is not impossible to have a legacy of Tang Kai or something. And some people just can't write pavilion style well, so they don't take part in the imperial examination. It's just that it may not rank high, or it's just Sun Shan.