我们正计划将Adobe Typekit Futura PT字体用于Web项目,看来重做方面存在问题。
我试图在https://fonts.adobe.com/fonts/futura-pt的Windows 10(Chrome)和MacOS Catalina(Safari和Chrome)上进行测试,并且“字体粗细”看起来是如此不同。
我检查 Futura PT书与正常的$(document).on('select2:open','.select2', function (e) {
$('input.select2-search__field').off();
});
。
我尝试添加一些CSS,但看起来还是不一样
$('body').on('keyup', 'input.select2-search__field', function(event) {
var value = $('.select2-search__field')[0].value;
var resultsId = $(this).parents('span').next().find('ul').attr('id');
if (value != "") {
// trigger search after the 'enter' key has been pressed
if (event.which == 13) {
if(resultsId.match(/SomeId/)){
// other select2 with custom ajax search
} else if (resultsId.match(/SpecificSelect2/)) {
// this won't work since the event is already unbind
$(this).trigger('input');
}
}
}
});
我附上了2张屏幕截图供参考。