tracker issue : CF-3041294

select a category, or use search below
(searches all categories and all time range)
Title:

Bug 82644:(Watson Migration Closure)In CSS3 the "@font-face" construct is used to embed a custom font and give an alias, and then a CSS class can later refer to the custom font alias fo r use in the font-family property

| View in Tracker

Status/Resolution/Reason: Closed/Won't Fix/LowImpact

Reporter/Name(from Bugbase): Steven Erat / Steven Erat (StevenErat)

Created: 04/07/2010

Components: Document Management, PDF generation

Versions: 9.0

Failure Type: Unspecified

Found In Build/Fixed In Build: 0000 /

Priority/Frequency: Normal / Unknown

Locale/System: English / Platforms All

Vote Count: 1

Problem:

In CSS3 the "@font-face" construct is used to embed a custom font and give an alias, and then a CSS class can later refer to the custom font alias fo r use in the font-family property.  This looks like the following: <style>@font-face {font-family: 'MyEurostileRegular';src: url('eurostile.ttf') format('truetype');}.myEurostileRegularFontFamily{font-family: 'MyEurostileRegular', "Eurostile LT", "Times New Roman";}</style>When this font embedding technique is used in the HTML/CSS the fonts display correctly even on systems that do not have those fonts installed locally.  However, even when the custom fonts are registered in the CFAdmin, they do not render with  CFDOCUMENT .  Some font types work while others do not.  Each font family has different font faces (Bold, Italic, UltraThin, etc), and for a given font not all font faces can be rendered via CFDOCUMENT.For example, the Benton font seems to work, but the Eurostile font does not.  (Make sure you disable these fonts if they are installed on the systems you are testing with).  A full test case with example fonts is here:http://talkingtree.com/blog/downloads.cfm?item=fontface%5Fissue%2Ezip
Method:

1) Disable test fonts on your systems (server & client) before starting tests.2) Download test files from http://talkingtree.com/blog/downloads.cfm?item=fontface%5Fissue%2Ezip3) unzip test files in webroot4) Add User Defined Fonts to CF Admin, pointing to the two example fonts provided (Benton, Eurostile)5) Run the *.html files and you should see the fonts correctly displayed6) Run the *.cfm files and you will see that Eurostile does not render at all, even tho the Benton font does render using the same syntax.Here is text example of code: <cfdocument fontembed="true" format="PDF"><html><head><style>@font-face {font-family: 'MyEurostileRegular';src: url('eurostile.ttf') format('truetype');}/*   CF Administrator > Server Settings > Font Management > User Defined Fonts:    Font Family   Font Face     Postscript Name   Font Type   Useable In   Eurostile LT Eurostile LT Roman EurostileLT TRUETYPE PDF/FlashPaper Below, the second parameter should be one of the names that the font is registered with in CF Admin.*/.myEurostileRegularFontFamily{font-family: 'MyEurostileRegular', "Eurostile LT", "Times New Roman";}.myEurostileRegularFontFace{font-family: 'MyEurostileRegular', "Eurostile LT Roman", "Times New Roman";}s.myEurostileRegularPostScript{font-family: 'MyEurostileRegular', EurostileLT, "Times New Roman";}</style></head><body> <p><strong>Use Font Family:</strong></p><p class="myEurostileRegularFontFamily">eurostileRegular.... Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo.</p><br/><p><strong>Use Font Face:</strong></p><p class="myEurostileRegularFontFace">eurostileRegular.... Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo.</p><br/><p><strong>Use PostScript:</strong></p><p class="myEurostileRegularPostScript">eurostileRegular.... Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo.</p></body></html></cfdocument>
Result:

NA

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3041294

External Customer Info:
External Company:  
External Customer Name: Steven Erat
External Customer Email: 722B2D4444633DB6992016B6
External Test Config: 04/07/2010

Attachments:

Comments: