Forum Discussion
Drogon365
Nov 15, 2021Copper Contributor
JSON to change font from Times to anything else - Syntax??
Using SharePoint Online, and we have a list with a column that is formatted as a clickable email address. While all the other columns are some nice font, like Segoe or something, this email column is...
ganeshsanap
Nov 16, 2021MVP
Drogon365 I have used below JSON & it is working fine for me.
Example:
{
"$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
"elmType": "a",
"txtContent": "@currentField",
"attributes": {
"target": "_blank",
"href": "https://google.com/"
},
"style": {
"font-family": "Segoe UI"
}
}
Output:
Try using similar JSON styles & let me know if it works for you.
Also, are you using column formatting as well as view formatting in the same list?
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.