Bug 92949 - kerning does not work when referencing an SVG font using @font-face in HTML
Summary: kerning does not work when referencing an SVG font using @font-face in HTML
Status: RESOLVED DUPLICATE of bug 117540
Alias: None
Product: WebKit
Classification: Unclassified
Component: SVG (show other bugs)
Version: 525.x (Safari 3.2)
Hardware: Unspecified Unspecified
: P2 Major
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-01 23:34 PDT by tonyiiitm
Modified: 2013-06-13 03:25 PDT (History)
4 users (show)

See Also:


Attachments
Attachment contains sample source html and svg files to reproduce this bug (3.59 KB, application/octet-stream)
2012-08-02 01:26 PDT, tonyiiitm
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description tonyiiitm 2012-08-01 23:34:36 PDT
I created a SVG font file and wanted to try kerning between two glyphs (V and G in the attached file).
The kerning works when open the SVG file directly in browser but does not work if i include it in HTML styles using @font-face
The same SVG file I converted to ttf and included in html file works in firefox.
Steps to reporduce (attached sample files in .zip file): 
1. Create a svg font file with kerning pair defined using hkern
2. create a HTML file which reference SVG fonts using 
@font-face{
    font-family: kern;
    src:url(font01.svg) format('svg');
}

Expected result:
Expected kerning to occur between the kern pair

Actual Results:
No Kerning visible. Although the text was displayed using font defined in SVG
Comment 1 tonyiiitm 2012-08-02 01:26:14 PDT
Created attachment 156003 [details]
Attachment contains sample source html and svg files to reproduce this bug
Comment 2 tonyiiitm 2012-08-02 09:23:35 PDT
Just to more pinpoint the problem.
Kerning does not work in webkit only when referring to a svg font file in @font-face 
Kerning does work in webkit when using ttf/woff font in @font-face
Comment 3 Allan Sandfeld Jensen 2013-06-13 03:25:26 PDT

*** This bug has been marked as a duplicate of bug 117540 ***