I am trying to right-align some text with a logo, i.e. I would like to place some text to the left of a logo, and centre this text vertically with respect to the logo.
I’ve attached a pdf to be more clear about what I’m trying to do.

I would like to place the text “Faculty of Science” to the left of the black “logo” in the pdf above. In this example, the blue rectangular border is 1cm from the edge of the page, and the 2.5cm wide square logo is 1.25mm from the blue rectangular border.
I think textpos is the solution to what I’m trying to do, and I came up with the code below.
\documentclass{article}
% ...
\usepackage[absolute]{textpos}
\setlength{\TPHorizModule}{1mm}
\setlength{\TPVertModule}{\TPHorizModule}
\textblockorigin{0mm}{0mm} % start everything at the top-left corner
\begin{document}
% ...
\begin{textblock}{100}[0,0](120, 23.75)
\large \textit{\textbf{Faculty of Science}}
\end{textblock}
% ...
\end{document}
However, I would like something that works whatever the text I wish to place (i.e the right most letter of the last word should always be at the same fixed distance from the logo, say 1cm, and should also be vertically centered with respect to the logo). Here, every time I change the text or its style, I have to fiddle around with the coordinates until I get something that looks right.
Any ideas?


