Nevron Forum
Back
Login
Register
Login
Register
Home
»
Nevron Open Vision for NET
»
NOV Text Editor for .NET
»
Changing font globally
Changing font globally
Post Reply
Changing font globally
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
Goto Topics Forum
Author
Message
Neil Turp
Neil Turp
posted 9 Years Ago
ANSWER
Topic Details
Group: Forum Members
Posts: 0,
Visits: 168
I have an app where the user is allowed to change the font name/size of a file completely. I know all formatting is lost but this is what the users want. The code I am using is
NRichTextView mmdv = new NRichTextView()
...
mmdv.Content.Selection.SelectAll();
mmdv.Content.Selection.SetFontSizeToSelectedInLines(24.0);
mmdv.Content.Selection.DeselectAll();
but that doesn't work. I've also tried stepping through the Sections
for (int a = 0; a < mmdv.Content.Sections.Count; a++)
{
mmdv.Content.Sections[a].FontName = "Cochin";
etc
}
Nothing works. Obviously I've misunderstood something somewhere but can anyone throw light on it?
Neil
Tags
Change
Font Name
Font Size
Reply
Like
0
Reply
Nevron Support
Nevron Support
posted 9 Years Ago
ANSWER
Post Details
Group: Administrators
Posts: 3.1K,
Visits: 4.3K
Hi Neil,
We're glad you fixed it. You can also download the latest SP of NOV which features an update the to the font thumbnail combo box with better font measurement. Also the paragraph clipping for certain fonts should be gone. Let us know if you meet any problems or have any questions.
Best Regards,
Nevron Support Team
Reply
Like
0
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Threaded View
Threaded View
Changing font globally
Neil Turp 1
-
9 Years Ago
Hi Neil, We weren't able to replicate that - we tried: NRichTextView...
Nevron Support
-
9 Years Ago
My apologies. After changing the font, I had included a default...
Neil Turp 1
-
9 Years Ago
Hi Here is a follow up on this: I am using a...
Neil Turp 1
-
9 Years Ago
Hi Neil, How do you get the font name from the combo box - we tested...
Nevron Support
-
9 Years Ago
This is C# Xamarin on OSX so it may be an OSX thing. I have a variable...
Neil Turp 1
-
9 Years Ago
Hi Neil, Can you send us a project that replicates that? We checked...
Nevron Support
-
9 Years Ago
I've sorted it. You need to use FamilyName, not DisplayName...
Neil Turp 1
-
9 Years Ago
Hi Neil, We're glad you fixed it. You can also download the latest SP...
Nevron Support
-
9 Years Ago
Post Reply
Similar Topics
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Explore
Messages
Mentions
Search