diff --git a/frappe/public/html/print_template.html b/frappe/public/html/print_template.html
index e2ff9c9c76..80069f4bf3 100644
--- a/frappe/public/html/print_template.html
+++ b/frappe/public/html/print_template.html
@@ -27,9 +27,11 @@
{% endif %}
-
20 %}
- style="font-size: 4.0pt"
+ {% if can_use_smaller_font %}
+ style="font-size: 4.0pt"
+ {% endif %}
{% endif %}
>
{% if print_settings.letter_head %}
diff --git a/frappe/public/js/frappe/views/reports/query_report.js b/frappe/public/js/frappe/views/reports/query_report.js
index 9f81f9f6f1..46c407cba1 100644
--- a/frappe/public/js/frappe/views/reports/query_report.js
+++ b/frappe/public/js/frappe/views/reports/query_report.js
@@ -1371,6 +1371,7 @@ frappe.views.QueryReport = class QueryReport extends frappe.views.BaseList {
columns: this.get_columns_for_print(print_settings, custom_format),
original_data: this.data,
report: this,
+ can_use_smaller_font: this.report_doc.is_standard === "Yes" && custom_format ? 0 : 1,
});
}
@@ -1407,6 +1408,7 @@ frappe.views.QueryReport = class QueryReport extends frappe.views.BaseList {
columns: columns,
lang: frappe.boot.lang,
layout_direction: frappe.utils.is_rtl() ? "rtl" : "ltr",
+ can_use_smaller_font: this.report_doc.is_standard === "Yes" && custom_format ? 0 : 1,
});
let filter_values = [],
diff --git a/frappe/public/js/frappe/views/reports/report_view.js b/frappe/public/js/frappe/views/reports/report_view.js
index 5e76d61c09..dd7a64a130 100644
--- a/frappe/public/js/frappe/views/reports/report_view.js
+++ b/frappe/public/js/frappe/views/reports/report_view.js
@@ -1415,6 +1415,7 @@ frappe.views.ReportView = class ReportView extends frappe.views.ListView {
print_settings: print_settings,
columns: this.columns,
data: rows_in_order,
+ can_use_smaller_font: 1,
});
});
},