I saw a post saying something like:
GUIStyle is for normal font tho, not imGUI
GUIStyle myStyle = new GUIStyle();
myStyle.fontStyle = GTicker.GetComponent().fontStyle;
myStyle.fontSize = GTicker.GetComponent().fontSize;
myStyle.font= GTicker.GetComponent().font);//This line doesn’t work with Imgui
Vector2 size = myStyle.CalcSize(new GUIContent(GTicker.GetComponent().text));