ASF Bugzilla – Attachment 26077 Details for
Bug 50006
[PATCH] ttf2svg outputs hkern elements outside (user-provided) glyph range
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to only dump kerning table elements requested by the user
kerning_range.diff (text/plain), 971 bytes, created by
Charles Huber
on 2010-09-26 23:08:10 UTC
(
hide
)
Description:
Patch to only dump kerning table elements requested by the user
Filename:
MIME Type:
Creator:
Charles Huber
Created:
2010-09-26 23:08:10 UTC
Size:
971 bytes
patch
obsolete
>Index: SVGFont.java >=================================================================== >--- SVGFont.java (revision 1001571) >+++ SVGFont.java (working copy) >@@ -396,7 +396,13 @@ > KernSubtable kst = kern.getSubtable(0); > PostTable post = (PostTable) font.getTable(Table.post); > for (int i = 0; i < kst.getKerningPairCount(); i++) { >- ps.println(getKerningPairAsSVG(kst.getKerningPair(i), post)); >+ int left = kst.getKerningPair(i).getLeft(); >+ int right = kst.getKerningPair(i).getRight(); >+ boolean left_in_range = (first <= left && left <= last); >+ boolean right_in_range = (first <= right && right <= last); >+ if (left_in_range && right_in_range) { >+ ps.println(getKerningPairAsSVG(kst.getKerningPair(i), post)); >+ } > } > } > } catch (Exception e) {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 50006
:
26077
|
26082
|
26087
|
26103