How to rotate a font 90 degrees

lvgl version is 8.1,screen size is 1920 x 1080.we need roate the screen 90 degrees,but g2d not support,display buffer flush very slow,so we are roate the UI layout 90 degrees, and how to rotate a font 90 degrees?