This issue happens for both "Activity names auto-linking" and "Glossary auto-linking". This is because the html link tags the filters adds around the text are included when getting the string width to calculate the positioning.
Testing instructions:
Have a course with the "Activity names auto-linking" filter turned on
Add any activity called "Foo"
Add a custom certificate activity
Add two text elements
One "Foo" and the other "Bar"
"Reference point location" set to "Center"
"Alignment" set to anything other than "Center"
Reposition the elements to be in line with each other
View the certificate
Note that "Foo" is now misaligned and moved to the left
This issue happens for both "Activity names auto-linking" and "Glossary auto-linking". This is because the html link tags the filters adds around the text are included when getting the string width to calculate the positioning.
Testing instructions: