46ff6457c895cdf0c4f16142414c8f12f692f025
braney
  Tue Jun 3 15:27:14 2025 -0700
fix bug with very small fonts

diff --git src/hg/hgTracks/lollyTrack.c src/hg/hgTracks/lollyTrack.c
index 8542c2fc4ed..de5f9a42dbe 100644
--- src/hg/hgTracks/lollyTrack.c
+++ src/hg/hgTracks/lollyTrack.c
@@ -53,31 +53,31 @@
 int cmpY(const void *va, const void *vb)
 // sort the lines by y value
 {
 const struct yLabel *a = *((struct yLabel **)va);
 const struct yLabel *b = *((struct yLabel **)vb);
 return a->y - b->y;
 }
 
 // font heights available to the user
 unsigned fontHeights[] = { 6,8,10,12,14,18,24 ,34 };
 
 unsigned findBiggest(unsigned num)
 /* find biggest font not bigger than num */
 {
 int ii;
-unsigned prev = 0;
+unsigned prev = 6;
 
 for (ii=0; ii < ArraySize(fontHeights); prev = fontHeights[ii], ii++)
     if (fontHeights[ii] > num)
         return prev;
 
 return 34;
 }
 
 void doYLabels(struct track *tg, struct hvGfx *hvg, int width, int height, struct lollyCartOptions *lollyCart, int xOff, int yOff, Color color, MgFont *font, boolean doLabels )
 /* parse lines like yAxisLabel <y offset> <draw line ?>  <R,G,B> <label>
  * Draw labels or lines for labels. */
 {
 struct hashEl *hel = trackDbSettingsLike(tg->tdb, "yAxisLabel*");
 
 if (hel == NULL)