Fix error: conversion from ‘int’ to ‘short int’ #120880

Closed
Giang-Chaebol wants to merge 1 commits from Giang-Chaebol/blender:FixConversionBlfFont into blender-v4.1-release

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
1 changed files with 1 additions and 1 deletions

View File

@ -1515,7 +1515,7 @@ static void blf_font_metrics(FT_Face face, FontMetrics *metrics)
if (metrics->descender == 0) {
/* Set a sane value for descender if not set in the font. */
metrics->descender = metrics->ascender - metrics->units_per_EM;
metrics->descender = short(metrics->ascender - metrics->units_per_EM);
}
if (metrics->weight == 400 && face->style_flags & FT_STYLE_FLAG_BOLD) {