Issue 2192 - Embed truetype fonts in word documents.
Summary: Embed truetype fonts in word documents.
Status: CLOSED WONT_FIX
Alias: None
Product: utilities
Classification: Unclassified
Component: code (show other issues)
Version: 641
Hardware: PC All
: P5 (lowest) Trivial with 3 votes (vote)
Target Milestone: ---
Assignee: caolanm
QA Contact: issues@sw
URL:
Keywords:
: 4387 (view as issue list)
Depends on:
Blocks:
 
Reported: 2001-11-13 11:54 UTC by caolanm
Modified: 2003-11-04 16:40 UTC (History)
2 users (show)

See Also:
Issue Type: ENHANCEMENT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Stage 1: Bullet mapping (11.50 KB, application/octet-stream)
2002-06-04 14:46 UTC, caolanm
no flags Details
Does it look like this... (6.60 KB, image/jpeg)
2002-06-04 15:49 UTC, caolanm
no flags Details
how about this one ? (11.50 KB, application/octet-stream)
2002-06-05 12:09 UTC, caolanm
no flags Details
another attempt... (8.50 KB, application/octet-stream)
2002-06-05 13:42 UTC, caolanm
no flags Details
isn't this fun... (8.50 KB, application/octet-stream)
2002-06-06 11:28 UTC, caolanm
no flags Details
.doc with embedded starsymbol --> readonly in word (319.50 KB, application/octet-stream)
2002-10-25 12:09 UTC, caolanm
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description caolanm 2001-11-13 11:54:47 UTC
We have an interesting problem with exporting math objects in writer document to
word format (93691) . Word requires a preview snapshop image of the object which
it displays before the object is edited. For math objects we mostly use the
starsymbol font, this font is a unicode font, the preview we generate is the
standard wmf that word uses for previews. wmf's can only store 8bit characters
:-(, generally this is not a big problem as we can convert to an 8 bit string
for most text, but for the starsymbol font its often not possible.

I believe that it might be possible in theory to use emf previews instead, emfs
can store 16bit unicode strings I think and that would sort out the conversion
to 8 bit text problem for starsymbol characters in general. There would still be
one issue, and that is that the starsymbol font uses a lot of characters in the
private area which make no sense unless you actually have the starsymbol font
installed. Something that wouldn't be typical for ordinary word users. 

But again it is possible ( in theory, I have no idea how yet :-) ) to embed
truetype fonts in word documents. So if we were able to embed the starsymbol
font in our word documents that use math, then we would be able to store emf
previews of our math objects that use the starsymbol font and our previews would
actually look like the original object. 

So, do we have complete control over the starsymbol font licensing to be allowed
to embed it in word documents.
Comment 1 falko.tesch 2002-01-02 10:47:26 UTC
This issue is re-assigned to Christian Jansen for further evaluation.
Comment 2 christian.jansen 2002-01-14 10:00:30 UTC
Hi Falko,
This is a filter issue.
Comment 3 falko.tesch 2002-01-31 15:27:16 UTC
If your last sentence is a question my answer is yes ;o)
Comment 4 sven.jacobi 2002-03-13 14:01:27 UTC
Hi Caolán,
If there is no licensing problem that prevents us from embedding our 
StarSymbol and StarMath fonts, I would also like to see this feature 
within the PowerPoint filter. I think it will be really easy to 
implement this into the PPT filter, and if it is no problem for our 
other Microsoft filter, it should been considered to add this feature 
optionally for all our filter.
Comment 5 caolanm 2002-03-14 10:39:02 UTC
Do you already know how ppt embeds its fonts ? For word I only have
one known bit "fEmbedFonts", which just says that it contains fonts or
not. It'd quite a bit of work to figure it all out for .doc so I
haven't been able to get around to it yet.
Comment 6 caolanm 2002-05-13 15:50:14 UTC
*** Issue 4387 has been marked as a duplicate of this issue. ***
Comment 7 caolanm 2002-05-14 15:32:30 UTC
Technote: rtf can contain truetype \fttruetype. Investigate this.
Comment 8 caolanm 2002-05-17 11:53:20 UTC
*** Issue 3839 has been marked as a duplicate of this issue. ***
Comment 9 caolanm 2002-05-17 11:53:24 UTC
*** Issue 3839 has been marked as a duplicate of this issue. ***
Comment 10 caolanm 2002-05-22 09:33:04 UTC
*** Issue 5140 has been marked as a duplicate of this issue. ***
Comment 11 caolanm 2002-05-22 10:31:31 UTC
*** Issue 2261 has been marked as a duplicate of this issue. ***
Comment 12 caolanm 2002-06-04 14:46:57 UTC
Created attachment 1857 [details]
Stage 1: Bullet mapping
Comment 13 caolanm 2002-06-04 14:50:26 UTC
Oky doky: Could those users who reported the problem of not being able
to see bullets in documents exported to word .doc in word itself
please look at the last attached document in word to confirm that it
works on virgin copies of word on machines that have never had the
{open|star}symbol font installed.
Comment 14 t8m 2002-06-04 15:18:42 UTC
It seems to work fine. :-)
However the first bullet is a little bit strange (rather a little bit
distorted circle - not like the third one).
Comment 15 t8m 2002-06-04 15:19:27 UTC
I forgot to mention that I opened it in the Word 2000.
Comment 16 caolanm 2002-06-04 15:49:01 UTC
Created attachment 1859 [details]
Does it look like this...
Comment 17 t8m 2002-06-04 16:13:41 UTC
No, the first one looks different. It looks like empty ellipse which
is more tall than wide.
Comment 18 caolanm 2002-06-05 09:45:15 UTC
That's *exactly* what I didn't want to hear. Some more tweaking
obviously required.
Comment 19 caolanm 2002-06-05 12:09:16 UTC
Created attachment 1865 [details]
how about this one ?
Comment 20 t8m 2002-06-05 12:23:01 UTC
I'm sorry but it's just the same :-(
Comment 21 caolanm 2002-06-05 13:42:43 UTC
Created attachment 1866 [details]
another attempt...
Comment 22 caolanm 2002-06-05 13:44:10 UTC
If this last attempt still doesn't work can you tell me what clicking
on word's tools->options->compatability->font substitution says ?
Comment 23 t8m 2002-06-05 14:32:37 UTC
No :-( it still doesn't work.
Here is the table:

output100.doc:

Andale Sans UI -> Times New Roman
StarSymbol     -> default (Wingdings)
Thorndale      -> Times New Roman

output200.doc:
StarSymbol -> default (Wingdings)
StarSymbolArial Unicode MS -> Arial       (exactly that - strange)

example.doc:
StarSymbol -> default (Wingdings)

Comment 24 caolanm 2002-06-06 11:28:43 UTC
Created attachment 1871 [details]
isn't this fun...
Comment 25 caolanm 2002-06-06 11:32:38 UTC
This is a real "works for me" kind of thing. If the last one doesn't
work could I get the version of windows you have, and the font list in
your
fonts dir under windows. Perhaps I misunderstand what the default
installed fonts of windows/word are and what they contain. The font
substition is now supposed to be starsymbol -> arial according to that
compatability option. (I hope you didn't press "Convert permanantly" ?)
Comment 26 t8m 2002-06-06 12:06:23 UTC
Two things with the latest try output.doc:

No, the bullet is still empty ellipse :-(

Yes, the font substitution table is:

Andale Sans UI -> Times New Roman
StarSymbol     -> Arial
Thorndale      -> Times New Roman

So at least something is fine ;-)
Comment 27 caolanm 2002-06-06 14:33:39 UTC
What version of windows (and of word) are we talking about here ?. I'm
baffled, can you use their character map program and chose the "Arial"
font and select "advanced" view.  Choose a character set of "unicode"
and examine the arial font to confirm that there actually is a bullet
character at position 0x2022.
Comment 28 t8m 2002-06-06 15:08:32 UTC
Windows 2000 CZ , Word 2000 CZ (but it shouldn't matter that it's
czech version)

I am not sure if the character in the 0x2022 is exactly the bullet
Word uses as default but it is definitely a small filled circle not
anything like I see in the .doc files you've attached here.
There is another (bigger) filled circle at position 0x25CF.

I've zoomed the view of the .doc file to max and now I see that the
character is really strange - it seems to be something like 'O'
character of some outline font (without black filling of stems).
Comment 29 caolanm 2002-06-14 12:06:18 UTC
I'm going to hold onto this idea as an enhancement to implement font
embedding, and the interim resolution of most peoples problems should
occur with font substitution as in issue 3839.
Comment 30 caolanm 2002-06-14 12:09:17 UTC
And I'm not going to implement font embedding for a while.
Comment 31 caolanm 2002-10-25 12:09:45 UTC
Created attachment 3348 [details]
.doc with embedded starsymbol --> readonly in word
Comment 32 caolanm 2002-10-25 12:12:50 UTC
reopen with new developments.
Comment 33 caolanm 2002-10-25 12:14:02 UTC
cmc->ft: There's a snag with embedding our starsymbol font in word
documents...

If you delete starsymbol font from a windows test machine,(a reboot
seems required afterwards to update this despite being removed through
the control panel font dialog) and open the last attached document in
word then the document is readonly because of the use of a readonly
embedded font, i.e. starsymbol!

This is a property of the font, I was able to check it out with a demo
version of "FontLab" from
http://www.fontlab.com/html/fontlab.html#downloads

The starsymbol font has its embedding settings set to "only printing
and previewing of the document is allowed (read-only)" which means
that if the embedded font is used then the document cannot be edited
:-(, so embedding this font is a waste of time. We would need the
embedding information to be changed to "Editing of the document is
allowed" if we are to have any chance of making this work appropiately.
Comment 34 falko.tesch 2003-10-27 09:52:31 UTC
FT->AMA: Wrong owner, I am not on top of MS filter project anymore.
Please take over, thx.
Comment 35 andreas.martens 2003-11-04 16:37:08 UTC
You've solved the problem or at least found a workaround?
Comment 36 caolanm 2003-11-04 16:40:27 UTC
With issue 3839 we worked around most of these problems, and sj in the
graphic team came up with a workaround for using starsymbol in wmf
files, so while it is interesting that we cannot embed starsymbol
without the destination document being readonly, its no longer
required for us to solve the original set of problems associated with
this document.
Comment 37 caolanm 2003-11-04 16:40:41 UTC
Closed.