UI: Allow Separate Configuration of Subpixel Antialiasing #113027

Merged
Harley Acheson merged 3 commits from Harley/blender:ConfigureSPAA into blender-v4.0-release 2023-09-29 19:02:32 +02:00
Member

Separate user configuration of subpixel antialiasing from the hinting
options. For example, this allows turning this on while hinting is
"None", or off when hinting is "Full".


When adding the new text output features in #105441 I got a bit lazy in not adding any new configuration. I was hoping to make everyone happy by only adding subpixel AA to the Slight and Full hinting modes. My thought was that by selecting "None" users could see an output as close as possible to what we got with prior Blender versions.

But I am finding some people not liking this feature, especially at small sizes. That was expected, but I didn't expect to find some people who want it off while using Full hinting and others who want it on with hinting set to None. This PR fixes this in way that I think is as simple and obvious as possible.

SPAAConfig.gif

Separate user configuration of subpixel antialiasing from the hinting options. For example, this allows turning this on while hinting is "None", or off when hinting is "Full". --- When adding the new text output features in #105441 I got a bit lazy in not adding any new configuration. I was hoping to make everyone happy by only adding subpixel AA to the Slight and Full hinting modes. My thought was that by selecting "None" users could see an output as close as possible to what we got with prior Blender versions. But I am finding some people not liking this feature, especially at small sizes. That was expected, but I didn't expect to find some people who want it off while using Full hinting and others who want it on with hinting set to None. This PR fixes this in way that I think is as simple and obvious as possible. ![SPAAConfig.gif](/attachments/116fdb8a-49a0-4fa9-a096-968138e9b2c9)
Harley Acheson added 1 commit 2023-09-28 18:38:19 +02:00
buildbot/vexp-code-patch-coordinator Build done. Details
476bcd50d9
UI: Allow Separate Configuration of Subpixel Antialiasing
Separate user configuration of subpixel antialiasing from the hinting
options. For example, this allows turning this on while hinting is
"None", or off when hinting is "Full".
Harley Acheson added this to the User Interface project 2023-09-28 18:38:31 +02:00
Harley Acheson requested review from Brecht Van Lommel 2023-09-28 18:38:58 +02:00
Harley Acheson requested review from Pablo Vazquez 2023-09-28 18:39:12 +02:00
Harley Acheson changed title from UI: Allow Separate Configuration of Subpixel Antialiasing to UI: Allow Separate Configuration of Subpixel Antialiasing 2023-09-28 18:40:30 +02:00
Harley changed target branch from main to blender-v4.0-release 2023-09-28 18:40:32 +02:00
Author
Member

@blender-bot package

@blender-bot package
Member

Package build started. Download here when ready.

Package build started. [Download here](https://builder.blender.org/download/patch/PR113027) when ready.
Brecht Van Lommel requested changes 2023-09-29 17:10:25 +02:00
Brecht Van Lommel left a comment
Owner

Functionality seems fine.

Functionality seems fine.
@ -232,9 +232,10 @@ class USERPREF_PT_interface_text(InterfacePanel, CenterAlignMixIn, Panel):
flow = layout.grid_flow(row_major=False, columns=0, even_columns=True, even_rows=False, align=False)
flow.prop(view, "use_text_antialiasing", text="Anti-Aliasing")

It seems we use the hyphen in most places, with the exception being some grease pencil settings that should probably be fixed.

It seems we use the hyphen in most places, with the exception being some grease pencil settings that should probably be fixed.
Harley marked this conversation as resolved
@ -5174,6 +5174,12 @@ static void rna_def_userdef_view(BlenderRNA *brna)
prop, "Text Anti-Aliasing", "Smooth jagged edges of user interface text");
RNA_def_property_update(prop, 0, "rna_userdef_text_update");
prop = RNA_def_property(srna, "text_render_subpixelaa", PROP_BOOLEAN, PROP_NONE);

use_ prefix is the convention for booleans

`use_` prefix is the convention for booleans
Harley marked this conversation as resolved
@ -5177,0 +5177,4 @@
prop = RNA_def_property(srna, "text_render_subpixelaa", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, nullptr, "text_render", USER_TEXT_RENDER_SUBPIXELAA);
RNA_def_property_ui_text(
prop, "Text Subpixel AA", "Render text for optimal horizontal placement");

Don't abbreviate as UI name as AA

Don't abbreviate as UI name as AA
Harley marked this conversation as resolved
Harley Acheson added 1 commit 2023-09-29 18:26:26 +02:00
Author
Member

@brecht - It seems we use the hyphen in most places

Yes, you are not only right there but Wikipedia agrees too with using "anti-aliasing". I swear I did a search and saw otherwise; I must have been sleeping.

> @brecht - It seems we use the hyphen in most places Yes, you are not only right there but Wikipedia agrees too with using "anti-aliasing". I swear I did a search and saw otherwise; I must have been sleeping.
Brecht Van Lommel approved these changes 2023-09-29 18:33:56 +02:00
Brecht Van Lommel left a comment
Owner

One comment that can be fixed without me re-reviewing.

One comment that can be fixed without me re-reviewing.
@ -5177,0 +5177,4 @@
prop = RNA_def_property(srna, "use_text_render_subpixelaa", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, nullptr, "text_render", USER_TEXT_RENDER_SUBPIXELAA);
RNA_def_property_ui_text(
prop, "Text Anti-Aliasing", "Render text for optimal horizontal placement");

Text Anti-Aliasing -> Text Subpixel Anti-Aliasing

Text Anti-Aliasing -> Text Subpixel Anti-Aliasing
Harley marked this conversation as resolved
Harley Acheson added 1 commit 2023-09-29 18:52:07 +02:00
Harley Acheson merged commit 82bfc41d0c into blender-v4.0-release 2023-09-29 19:02:32 +02:00
Harley Acheson deleted branch ConfigureSPAA 2023-09-29 19:02:34 +02:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#113027
No description provided.