Browse Source

设置字号

jsonwang 3 years ago
parent
commit
4c15e03d52
1 changed files with 3 additions and 1 deletions
  1. 3 1
      BFFramework/Classes/PModels/PQVideoListModel.swift

+ 3 - 1
BFFramework/Classes/PModels/PQVideoListModel.swift

@@ -271,7 +271,9 @@ open class PQVideoListModel: PQBaseModel {
         itemHeight = (cScreenWidth - cDefaultMargin * 3) / 2 * originImageH / originImageW + tempTitleH + cDefaultMargin * 4.5
         itemHeight = (cScreenWidth - cDefaultMargin * 3) / 2 * originImageH / originImageW + tempTitleH + cDefaultMargin * 4.5
 
 
         if title != nil, (title?.count ?? 0) > 0 {
         if title != nil, (title?.count ?? 0) > 0 {
-            titleH = sizeWithText(text: title ?? "", font: UIFont.systemFont(ofSize: 16, weight: .bold), size: CGSize(width: cScreenWidth - cDefaultMargin * 2, height: CGFloat.greatestFiniteMagnitude)).height + cDefaultMargin
+ 
+            titleH = sizeWithText(text: title ?? "", font: UIFont.systemFont(ofSize: 26, weight: .medium), size: CGSize(width: cScreenWidth - cDefaultMargin * 2, height: CGFloat.greatestFiniteMagnitude)).height + cDefaultMargin
+
         }
         }
         if titleH > 70 {
         if titleH > 70 {
             titleH = 70
             titleH = 70