Lines 396-402
Link Here
|
396 |
KernSubtable kst = kern.getSubtable(0); |
396 |
KernSubtable kst = kern.getSubtable(0); |
397 |
PostTable post = (PostTable) font.getTable(Table.post); |
397 |
PostTable post = (PostTable) font.getTable(Table.post); |
398 |
for (int i = 0; i < kst.getKerningPairCount(); i++) { |
398 |
for (int i = 0; i < kst.getKerningPairCount(); i++) { |
399 |
ps.println(getKerningPairAsSVG(kst.getKerningPair(i), post)); |
399 |
int left = kst.getKerningPair(i).getLeft(); |
|
|
400 |
int right = kst.getKerningPair(i).getRight(); |
401 |
boolean left_in_range = (first <= left && left <= last); |
402 |
boolean right_in_range = (first <= right && right <= last); |
403 |
if (left_in_range && right_in_range) { |
404 |
ps.println(getKerningPairAsSVG(kst.getKerningPair(i), post)); |
405 |
} |
400 |
} |
406 |
} |
401 |
} |
407 |
} |
402 |
} catch (Exception e) { |
408 |
} catch (Exception e) { |