John - are you passing a handle to the text object that you wish to open the font selection dialog box for? Or are you trying to use uisetfont to write text on the axes? (Which I don't think is the purpose of this function.) Perhaps you should be using text instead.
Actually I am trying to write on my image loaded on the axes. The reason I picked uisetfont is to give the user flexibility to choose font type, font size and font style which appears in a box for uisetfont. That's what I am trying to do. But somehow, whenever I am using the function, the texts keep moving away, meaning it's not being written on top of the picture.
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
2 Comments
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/560486-how-to-use-uisetfont#comment_927278
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/560486-how-to-use-uisetfont#comment_927278
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/560486-how-to-use-uisetfont#comment_928181
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/560486-how-to-use-uisetfont#comment_928181
Sign in to comment.