invalid fontsets added to map lead to unnecessary overhead during text rendering #1182

springmeyer opened this Issue Apr 19, 2012 · 0 comments


None yet

1 participant


Take a fontset like:

<FontSet name="fontset-name">
  <Font face-name="Some font not found on system"/>
  <Font face-name="Another font not found on system"/>
  <Font face-name="Yet another font not found on system"/>
  <Font face-name="DejaVu Sans Book"/>

Even though the first three fonts are unable to be found on a given users system, they are still added to the map_parser::fontsets_ list:

and then passed to the text handling code at:

such that for every character ultimately rendered there are N (in this case three) failed attempts to pull font data from empty pointers at:

@springmeyer springmeyer pushed a commit that closed this issue Apr 19, 2012
Dane Springmeyer optimize font rendering with fontsets in the case of some fontset fon…
…ts not being available on the users system - closes #1182
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment