IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 39576


Ignore:
Timestamp:
May 13, 2016, 12:03:57 PM (10 years ago)
Author:
eugene
Message:

add comments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/libkapa/src/RotFont.c

    r39457 r39576  
    3838  int i, nsize, msize, bsize, bigger, dsize, match, good;
    3939
     40  // fprintf (stderr, "SetRotFont %s @ %d\n", name, size);
     41
    4042  InitRotFonts();
    4143
     
    4547  for (i = 0; i < Nrotfonts; i++) {
    4648    if (!strcasecmp (RotFonts[i].name, name)) {
     49      // fprintf (stderr, "match name: %s %d\n", RotFonts[i].name, RotFonts[i].size);
    4750      good = i;
    4851      nsize = abs (RotFonts[i].size - size);
     
    5962  }
    6063 
     64  // fprintf (stderr, "matched: %d %d %d\n", bigger, match, good);
     65
    6166  if ((match == -1) && (good != -1)) match = good;
    6267  if (bigger != -1) match = bigger;
     68
     69  // fprintf (stderr, "finally: %d %d %d\n", bigger, match, good);
    6370  if (match != -1) {
    6471    currentfont = RotFonts[match].font;
Note: See TracChangeset for help on using the changeset viewer.