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 |
// check if left and right are both in range |
402 |
if ( (first <= left && left <= last) && (first <= right && right <= last) ) { |
403 |
ps.println(getKerningPairAsSVG(kst.getKerningPair(i), post)); |
404 |
} |
400 |
} |
405 |
} |
401 |
} |
406 |
} |
402 |
} catch (Exception e) { |
407 |
} catch (Exception e) { |