you should start by trying. if that fails, you should come back and ask for help by showing what you tried, and what the result was. and probably not a horrible idea to show the string in question. If you want someone to do your homework you should at least show them the question.
.....I have a string containing characters with 7 different fonts. How do I make a list of the characters in each font? Is this possible to do in PHP?....
Not a slap..... BUT you should first understand what you are trying to do.
PHP is a server side scripting langauge and the issues related to font happen on the client side, on the presentation side - in your browser.
your best options are either to look for a way to read rich text with php as suggested before, or open it in word and save it out to html. if it preserves your formatting as it should, there are several easy ways to go from there
Thanks for the input. The characters of different font are not on a webpage -- they are in a Word file. The php program loads the contents of the file. As it loads the characters I want it to sort them by their font.
your best options are either to look for a way to read rich text
style='font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";mso-fareast-theme-font:minor-fareast;
"Times New Roman";mso-fareast-theme-font:minor-fareast;color:black'>R</span><span
... I was looking for (and still am looking for) a method that reads the character in a .doc file (or .rtf file) recognises the font and puts the character in an array of that type of font. I think I have to repeat my earlier assertion that I believe such a method must exist but nobody can tell me what it is....
Users browsing this forum: Xenoforeks, Yahoo [Bot] and 2 guests