Quantcast
Channel: GoJS - Northwoods Software
Viewing all articles
Browse latest Browse all 6969

GOJS texteditor - Apply fonts which are not installed in client machine

$
0
0

@A.John wrote:

In my web application the NotoSansCJK JP font is correctly applied all html elements. Noto font is not installed in my machine. This font is loading from server using @font-face in css. but in the GOJS texteditor the Noto font is not applied.
Can you please provide a solution.

CSS snippet is as below:

@font-face {
    font-family: noto_sans;
    src: url(NotoSansCJKjp-Regular.otf);
}

the nodeTemplate code is as below:

							 GO(go.TextBlock,
										 {
											 margin : 5,
				                             maxSize: new go.Size(280, NaN),
				                             width: 280,
				                             textAlign: 'left',
				                             name:'ParentText',
				                             alignment: go.Spot.Bottom,
				                             editable: true,
				                             isMultiline: true

				                         },
										 new go.Binding("text").makeTwoWay(),
										 new go.Binding("font", "font").makeTwoWay(),
										 new go.Binding("stroke", "stroke").makeTwoWay(),
										 new go.Binding("background", "lightgreen"))
										));

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 6969

Trending Articles