I'm saving richtexts to files and load them again.
If I load a file on another system, I have to check, if the containing fonts exists on this system.
Then a Message shall be shown, like Font x and y is missing on this system.
My Question:
Is there an easy way to check if some Fonts missing,
or have i get through the whole richtext and check for every font, if it exists?
load richtexts and get missing fonts
-
- In need of some credit
- Posts: 7
- Joined: Wed Jun 10, 2015 9:32 pm
-
- Earned some good credits
- Posts: 113
- Joined: Sat Sep 24, 2011 9:32 pm
- Location: Poland
Re: load richtexts and get missing fonts
I suppouse you are looking for following function:
Here you can find some example with this function:
http://src.gnu-darwin.org/ports/x11-too ... tspage.cpp
regards, Jarek
Code: Select all
wxArrayString facenames = wxRichTextCtrl::GetAvailableFontNames();
http://src.gnu-darwin.org/ports/x11-too ... tspage.cpp
regards, Jarek
-
- In need of some credit
- Posts: 7
- Joined: Wed Jun 10, 2015 9:32 pm
Re: load richtexts and get missing fonts
Thank you very much.
I hoped there's a function to get all used Font from a richtext-buffer.
Oh, maybe I found it:
wxRichTextBuffer::GetFontTable()
I only have to compare the fontnames from the buffer to the available fonts.
then i can show a message like:
"Missing Fonts: ..."
I hoped there's a function to get all used Font from a richtext-buffer.
Oh, maybe I found it:
wxRichTextBuffer::GetFontTable()
I only have to compare the fontnames from the buffer to the available fonts.
then i can show a message like:
"Missing Fonts: ..."