特定尺寸下的奇怪字体渲染

时间:2018-04-01 10:52:23

标签: html css fonts font-face

我使用typedef struct node { int data; struct node *next; } nodal; nodal *distance(nodal *start) { int n1, n2, d1 = 0, d2 = 0, length = 0; if (start == NULL) { printf("List is empty\n"); } else { printf("\nEnter the fist node element : "); if (scanf("%d", &n1) != 1) { printf("invalid input\n"); return start; } printf("\nEnter the second node element : "); if (scanf("%d", &n2) != 1) { printf("invalid input\n"); return start; } nodal *ptr = start; for (;;) { length++; if (ptr->data == n1 && !d1) { d1 = length; } else if (ptr->data == n2) { if (d1) { d2 = length; break; } if (!d2) d2 = length; } ptr = ptr->next; if (ptr == start) break; } } if (d1 && d2) { int dist = d2 - d1; if (dist < 0) dist += length; printf("The distance between node(%d) and node(%d) is %d\n", d1, d2, dist); } else { if (d2) printf("node(%d) not found\n", d1); if (d1) printf("node(%d) not found\n", d2); } return start; } rem单位的组合来设置标题的大小,以使它们在任何设备上看起来都非常合适:

vmin

这意味着h5标题至少为1大,加上.25vmin。这被证明是一个很棒的解决方案,适用于IE10及其他最新浏览器。

我面临的问题是,在特定的屏幕分辨率下,字体可能看起来很奇怪:

enter image description here

虽然通常看起来像这样:

enter image description here

上面的示例是HKGrotesk字体,但它也适用于其他字体。

我很确定它必须对值舍入做一些事情,但是AFAIK我不能在calc函数中舍入值。任何帮助将不胜感激!

0 个答案:

没有答案
相关问题